You are not logged in.
Pages: 1
Hello all,
I've just migrated from Laptop Mode Tools to the powerdown script and have one problem - I can't get DPMS to work for setting screen shutdown on boot.
I've tried the following:
1. Using the xset command directly in powerup/powerdown (using run or directly) - xset doesn't seem to work as root, so it fails.
2. Using the following 10-monitor.conf in /etc/X11/xorg.conf.d.
Section "MONITOR"
Identifier "Monitor0"
Option "DPMS"
EndSection
Section "SERVERLAYOUT"
Identifier "ServerLayout0"
Option "BlankTime" "0"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "10"
EndSection
After launch "xset -q" states that DPMS is disabled.
3. Using ~/.xinitrc - doesn't work, perhaps because KDM is enabled as a systemd service?
Thanks, Adam.
PS.
Yes, I'm aware I can use KDE's setting for the screen timeout, but It gave me some weird issues in the past.
Last edited by adam777 (2013-02-14 08:38:02)
Offline
Have you tried to run xset uner the user from within that script?
Something like:
su $USER -c "DISPLAY=:0 xset <your options>"
... Also, you might want to try putting your script to the ~/.kde4/Autostart/ folder -- these scripts are run under the user, when the system boots.
Last edited by mityukov (2013-02-14 07:21:32)
Offline
1. Using the xset command directly in powerup/powerdown (using run or directly) - xset doesn't seem to work as root, so it fails.
xset needs DISPLAY variable, so you have to run this in scripts:
DISPLAY=:0 xset dpms 0 0 10
3. Using ~/.xinitrc - doesn't work, perhaps because KDM is enabled as a systemd service?
I don't think KDM manages dpms, but I think KDM doesn't use ~/.xinitrc.
Offline
... Also, you might want to try putting your script to the ~/.kde4/Autostart/ folder -- these scripts are run under the user, when the system boots.
This worked.
Thank you both.
Offline
Pages: 1