Author Topic: Power Management  (Read 5239 times)

scottlfa

  • Sr. Member
  • ****
  • Posts: 281
    • View Profile
    • http://
Power Management
« 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.
"So there I was, spitting on my goldfish trying to keep it alive ..."
---------------------------------------------------------------< O >-------------------------------------------------------
Viliv N5 [Debian]
Acer One Running OSX 10.5.7 [Dell 3190 & Ram Upgraded]
SL-C1000 [ZUbuntu], JasJar [WM 6.5], Nokia N900, and Samsung Galaxy S 4G.
Sony Ux280P [Kbuntu 10.4 Lucid], PsP Go and DSi

stupkid

  • Hero Member
  • *****
  • Posts: 578
    • View Profile
    • http://
Power Management
« Reply #1 on: December 13, 2007, 11:58:21 am »

Zaurus SL-C3200 pdaXii13v2 5.5 / Ambicom WC1100C-CF / Socket Bluetooth Rev G


OpenMoko FreeRunner - Running Tweaked OM2008.x Image

scottlfa

  • Sr. Member
  • ****
  • Posts: 281
    • View Profile
    • http://
Power Management
« Reply #2 on: December 13, 2007, 07:00:35 pm »
Turns out setting the gnome-power-management functions did the trick.
"So there I was, spitting on my goldfish trying to keep it alive ..."
---------------------------------------------------------------< O >-------------------------------------------------------
Viliv N5 [Debian]
Acer One Running OSX 10.5.7 [Dell 3190 & Ram Upgraded]
SL-C1000 [ZUbuntu], JasJar [WM 6.5], Nokia N900, and Samsung Galaxy S 4G.
Sony Ux280P [Kbuntu 10.4 Lucid], PsP Go and DSi

gojira

  • Full Member
  • ***
  • Posts: 122
    • View Profile
Power Management
« Reply #3 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...
Zaurus SL-C3200 Debian EABI / Sharp ROM (tetsu v18j), Socket CF Bluetooth (Rev E), BT747 GPS, Canon K30225 CF Wifi.  RIP: Zaurus SL-C860 Sharp ROM (1.40JP).

scottlfa

  • Sr. Member
  • ****
  • Posts: 281
    • View Profile
    • http://
Power Management
« Reply #4 on: February 12, 2009, 09:30:33 am »
VooDoo I guess, mine did fine but others have issues ... sorry
"So there I was, spitting on my goldfish trying to keep it alive ..."
---------------------------------------------------------------< O >-------------------------------------------------------
Viliv N5 [Debian]
Acer One Running OSX 10.5.7 [Dell 3190 & Ram Upgraded]
SL-C1000 [ZUbuntu], JasJar [WM 6.5], Nokia N900, and Samsung Galaxy S 4G.
Sony Ux280P [Kbuntu 10.4 Lucid], PsP Go and DSi

gojira

  • Full Member
  • ***
  • Posts: 122
    • View Profile
Power Management
« Reply #5 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"
« Last Edit: February 14, 2009, 11:16:44 pm by gojira »
Zaurus SL-C3200 Debian EABI / Sharp ROM (tetsu v18j), Socket CF Bluetooth (Rev E), BT747 GPS, Canon K30225 CF Wifi.  RIP: Zaurus SL-C860 Sharp ROM (1.40JP).