You are not logged in.
Pages: 1
Is it possible to have my laptop hibernate after x minutes of inactivity? I haven't been able to really find any information on it.
Last edited by SiegeMachine (2011-07-06 05:30:18)
Offline
xautolock with a custom locker command.
Steven [ web : git ]
GPG: 327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com
Offline
I have xscreensaver and I just realized that I had the options set there yet it doesn't appear to work. When I have xcreensaver set (my current screensaver) my laptop screen still goes black after x number of minutes (I think its either 20 or 30) and my laptop doesn't like to come back from that black screensaver with my patched brightness kernel (kernel26-kamal). Somewhere there appears to be another screensaver but I don't know how to disable it, and after that xscreensaver isn't sleeping/hibernating my laptop either. Is there a way to check why this would be happening, or what this other screensaver is?
Offline
This "other screensaver" may be the power saving aka dpms on your monitor. You can disable it using
xset -dpms
X also controls your screensaver and can be disabled using
xset s off
. Also try
xset s noblank
Offline
Ok well I've entered those and lets see if they work or not!
Offline
It still happens. Its like the backlight gets powered off, and running on the normal kernel the backlight just gets reset to what it was previously where as on my patched kernel once I move the mouse I have to hit the brightness up button again before I can see what I'm doing. Not only that but xscreensaver still isn't sleeping/suspending my laptop where I know these functions do work. There doesn't seem to be a setting where I can set the actual command it uses though. I wish there was a way to watch the xscreensaver output or a log when it tries to hibernate.
Offline
I found the dpms wiki page and somehow it didn't get turned off the first time that I typed in
xset -dpms
but I found the xset -q command and did it again so that it was off so no Xorg screensavers / black screens / power saving. Perhaps xscreensaver is giving me a black screen when it tries to suspend instead. I'll play with the timing in its settings to test it more thoroughly.
Offline
Ok so it turns out I can't read. The settings in xscreensaver are for screen power management which means it was the one turning the screen off (which is buggy with my kernel patch). So looking over xautolock a little more closer this time I can have my normal screensaver run and just use xautolock to run a suspend command after 20 or so minutes. My only problem is I don't want it to run while my laptop is plugged in. Perhaps I can use acpi handler.sh script to start and stop it when the power cord is removed or plugged in hwoever it seems to be a bit buggy normally.
Offline
Ok got it working using 'xautolock' as suggested earlier by Stebalien, thanks!
Offline
Pages: 1