I know how to do it in the battery section through the GUI, but I’d like to set it up through a command, for automation purposes, and particularly for KDE Connect commands.
I know how to do it in the battery section through the GUI, but I’d like to set it up through a command, for automation purposes, and particularly for KDE Connect commands.
I don’t know if this fits your use case (you didn’t describe what you want to achieve in detail), but commands that can possible help if the screen did lock (or turn off):
loginctl unlock-screen
kscreen-doctor --dpms on
Wasn’t that. I want to keep the screen on. No sleep, no lockscreen, no blackscreen, etc.