Hello everyone,
I want to express my appreciation for KDE Plasma—it’s truly an outstanding desktop environment! Thank you for all the hard work you put into it.
I have been using KDE Plasma for several years now. However, there are instances, such as when managing power settings, where I need to rely on the GUI. I’m wondering if there’s a way to adjust settings like “Screen off after …” directly from the console when my computer is connected to a power source. I attempted to modify the ~/.config/powermanagementprofilesrc
file, but unfortunately, those changes did not reflect in the GUI.
Thank you for your assistance!
Best regards
Someone from Germany
Hi!
Maybe try using the kwriteconfig6
command, assuming you’re on Plasma 6? Based on what’s described here: ubuntu - How to disable the 10 minute screen timeout/lock in KDE? - Super User - it might be worth trying a command like the following (on my Fedora KDE 41 system, these settings are in ~/.config/powerdevilrc
):
kwriteconfig6 --file ~/.config/powerdevilrc --notify --group AC --group Display --key TurnOffDisplayIdleTimeoutSec 1200
On my system, that command changes the "Turn off screen: " setting under Power Management to 20 minutes.
Hope that at least helps you on the path toward what you’re looking for!
1 Like
Hi @johnandmegh
Thanks for your quick answer!
But unfortently I’m running Plasma 5.27.5 because I use Debian Bookworm.
For example this command works fine:
kwriteconfig5 --file ~/.config/kscreenlockerrc --group Daemon --key Autolock true/false
But your command without --notify
kwriteconfig5 --file ~/.config/powerdevilrc --notify --group AC --group Display --key TurnOffDisplayIdleTimeoutSec 1200
does not work. I searched the web but also the
Perhaps that setting lives elsewhere in the old version that Debian ships? You could try:
- Changing the value of the desired setting in the GUI
- Sorting the
~/.config
folder by last modified to see what file it most likely lives in
- Checking that file’s format to see how to adjust the command accordingly
1 Like