You are not logged in.

#1 2008-06-23 14:11:31

venky80
Member
Registered: 2007-05-13
Posts: 1,002

Auto suspend /Hibernate

I am using pm-utils and am able to suspend to disk and ram properly.
Now I want to suspend  or hibernate automatically based on inactivity and battery condition of my laptop.
Are there any scripts to do it? I am using KDEMOD4 and there is no power management program yet which works like klaptop or kpowersave,  I like the scripts anyway.
Thanks


Acer Aspire V5-573P Antergos KDE

Offline

#2 2008-06-23 15:05:18

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: Auto suspend /Hibernate

Try laptop-mode-tools.

Offline

#3 2008-06-23 16:16:08

venky80
Member
Registered: 2007-05-13
Posts: 1,002

Re: Auto suspend /Hibernate

I have that installed, can you tell me the specific setting in the configuration, which I have to turn one.
I mean the conf file


Acer Aspire V5-573P Antergos KDE

Offline

#4 2008-11-26 03:35:30

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: Auto suspend /Hibernate

Somewhat old thread, but still unanswered....laptop-mode-tools will get the auto suspend/hibernate on low battery, but I still can't find anything (other than the gnome power management tools -- using lxde/openbox so I'd rather not smile ) that will trigger an event after X min of inactivity. Xscreensaver has options for the display, but not actually suspending the machine (at least not that I found).

Any ideas?

Thanks,
Scott

Last edited by firecat53 (2008-11-26 03:36:35)

Offline

#5 2008-11-26 04:53:28

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: Auto suspend /Hibernate

firecat53 wrote:

Somewhat old thread, but still unanswered....laptop-mode-tools will get the auto suspend/hibernate on low battery, but I still can't find anything (other than the gnome power management tools -- using lxde/openbox so I'd rather not smile ) that will trigger an event after X min of inactivity. Xscreensaver has options for the display, but not actually suspending the machine (at least not that I found).

Any ideas?

Thanks,
Scott

xautolock.  It's available in the AUR and is intended to run a screen lock program such as slock, but realistically it can execute anything based on a period of inactivity in X.  Hope this helps smile


thayer williams ~ cinderwick.ca

Offline

#6 2008-11-26 07:44:42

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: Auto suspend /Hibernate

[SOLVED] Thanks! Scott

Offline

#7 2008-11-27 00:07:37

Profjim
Member
From: NYC
Registered: 2008-03-24
Posts: 658

Re: Auto suspend /Hibernate

There's a nice package I've been using from Debian, which sounds to do the same thing, but doesn't require X to be running. It's called sleepd. I just uploaded to AUR: http://aur.archlinux.org/packages.php?ID=21830.

Offline

#8 2008-11-27 17:56:42

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: Auto suspend /Hibernate

Well, how about ramping up the complexity a bit: would there be an easy way to adjust the above methods to NOT trigger the auto suspend if either there was music playing or there was a backup (rsync) in progress? I guess having a script for the -killer flag in xautolock that just checked if rsync was running (ps -e | grep rsync) would take care of that, but how would you check if there was music playing (rather than just checking that the player was opened)? I don't see a command line switch for amarok or mpd/mpc that seems particularly helpful.

Ideas?

Thanks,
Scott

Offline

Board footer

Powered by FluxBB