You are not logged in.

#1 2011-06-29 04:06:52

SiegeMachine
Member
Registered: 2009-03-26
Posts: 157

[Solved] Inactivity Hibernate?

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

#2 2011-06-29 05:01:56

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: [Solved] Inactivity Hibernate?

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

#3 2011-06-29 23:28:50

SiegeMachine
Member
Registered: 2009-03-26
Posts: 157

Re: [Solved] Inactivity Hibernate?

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

#4 2011-06-29 23:50:31

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: [Solved] Inactivity Hibernate?

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

#5 2011-06-30 17:02:42

SiegeMachine
Member
Registered: 2009-03-26
Posts: 157

Re: [Solved] Inactivity Hibernate?

Ok well I've entered those and lets see if they work or not!

Offline

#6 2011-06-30 19:53:15

SiegeMachine
Member
Registered: 2009-03-26
Posts: 157

Re: [Solved] Inactivity Hibernate?

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

#7 2011-07-01 00:46:29

SiegeMachine
Member
Registered: 2009-03-26
Posts: 157

Re: [Solved] Inactivity Hibernate?

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

#8 2011-07-02 00:04:44

SiegeMachine
Member
Registered: 2009-03-26
Posts: 157

Re: [Solved] Inactivity Hibernate?

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

#9 2011-07-06 05:29:54

SiegeMachine
Member
Registered: 2009-03-26
Posts: 157

Re: [Solved] Inactivity Hibernate?

Ok got it working using 'xautolock' as suggested earlier by Stebalien, thanks!

Offline

Board footer

Powered by FluxBB