OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Debian => Topic started by: scottlfa on December 12, 2007, 07:07:46 pm

Title: Power Management
Post by: scottlfa on December 12, 2007, 07:07:46 pm
I am trying to set the behavior of my Z, specifically I want the screen to remain on when plugged in for instance ... and to set the times on the auto suspend and such when on battery power.
Title: Power Management
Post by: stupkid on December 13, 2007, 11:58:21 am
Have you checked this thread?

https://www.oesf.org/forum/index.php?showtopic=25152 (https://www.oesf.org/forum/index.php?showtopic=25152)
Title: Power Management
Post by: scottlfa on December 13, 2007, 07:00:35 pm
Turns out setting the gnome-power-management functions did the trick.
Title: Power Management
Post by: gojira on February 11, 2009, 01:51:53 am
Quote from: scottlfa
Turns out setting the gnome-power-management functions did the trick.

Is there a trick to that?  I tried it and it changes the backlight levels when plugging/unplugging AC power but doesn't suspend on idle...
Title: Power Management
Post by: scottlfa on February 12, 2009, 09:30:33 am
VooDoo I guess, mine did fine but others have issues ... sorry
Title: Power Management
Post by: gojira on February 14, 2009, 10:26:29 pm
Quote from: scottlfa
VooDoo I guess, mine did fine but others have issues ... sorry

ok, I must be sacrificing the wrong number of chickens or something then.  oh, well.  gnome-power-statistics is cute though...

anyway, I've come up with a couple of alternatives


this one doesn't need X (just skip the "-s" line).  also check the list of interrupts if you're not using a 3x00.  also see sleepctl
Code: [Select]
sleepd \
 -u 120 \
 -i 75 -i 76 -i 81 -i 98 -i 100 -i 102 -i 103 -i 155 \
 -s "xmessage -buttons abort -default abort -timeout 10 suspending && apm -s"

this one requires X but doesn't need dbus and hal like the gnome thing does
Code: [Select]
xautolock \
 -time 2 \
 -detectsleep \
 -locker "apm | grep 'Off-line' > /dev/null && xmessage -buttons abort -default abort -timeout 10 suspending && apm -s"