You are not logged in.
Pages: 1
For some reason, DPMS isn't already enabled all the time, so whenever I want to use it, I have to enter xset +dpms in the terminal. I tried putting that in my .xinitrc, but that didn't work. I tried making a .desktop file in .config/autostart, no dice.
In case you're wondering, I need DPMS enabled so I can use xlock -dpmsoff 1, so I can both lock my screen and turn off the LED backlight on my Eee PC 900. Kind of annoying to have to do a xset +dpms every time I restart X or my computer!
Offline
I tried putting that in my .xinitrc, but that didn't work.!
What exactly went wrong?
Have you tried /etc/rc.local or even .bashrc?
Last edited by karol (2011-07-12 11:13:34)
Offline
Wait, so xset +dpms *doesn't* need to be run after X has already been started?
Offline
What went wrong with putting xset +dpms in your .xinitrc?
Offline
Like I said, it just didn't work. I put "xset +dpms" on a line at the bottom of my .xinitrc, restarted, and "xset -q" revealed that DPMS was still disabled -- thus, "xlock -dpmsoff 1" does not blank the screen after 30 seconds. However, if (after I've already started X) I do that command in a terminal, DPMS becomes enabled.
Offline
Has anyone else had this problem?
Offline
Just checking - when you say "bottom of my .xinitrc" are you sure its actually being executed. The last thing in your .xinitrc (without an '&' at the end) is what is executed while in the X session. Things below that won't actually execute until after you quit X.
ie. try the "xset +dpms" higher up in the .xinitrc, before you start the window manager.
Offline
# Disable DPMS if on AC
if [ `/bin/awk '{print $2}' /proc/acpi/ac_adapter/ADP1/state` = on-line ]; then
XAUTHORITY=/home/meyithi/.Xauthority /usr/bin/xset -display :0.0 s off -dpms
fi
I use that in my session script to disable dpms, I don't see any reason as to why
XAUTHORITY=/home/$USER/.Xauthority /usr/bin/xset -display :0.0 s on +dpms
would not enable it.
if it doesn't work you are probably doing something horrible with your session script/.xinitrc
Last edited by Meyithi (2011-07-19 07:43:11)
Offline
If you're using "startx" then your .xinitrc is read by the OS. If you're not using that or some other commandline way to start X then the .xinitrc is not read at all (at least that's what i read earlier in another forum post). I don't know where else you'd put the dpms setting though, sorry.
Offline
I do use startx... Here's my .xinitrc
#exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
xset +dpms
exec ck-launch-session startlxde
xmodmap -e "pointer = 1 9 3 4 5 6 7 2 8 10 11 12 13"
Offline
Normally you do not have to enable it by hand with xset. It is normally auto enabled. What's the content of /var/log/Xorg.0.log?
Offline
Offline
I use LXDE with Openbox, if that makes any difference. I don't think it does...
Offline
Pages: 1