Re: LEDs, gnome-power-manager, and ThinkPads
Bill Wohler [EMAIL PROTECTED] writes: Bill Wohler [EMAIL PROTECTED] wrote: I'd like to turn the light to the CD-ROM off when I suspend and then back on when I resume. This can be done by calling echo 4 on | /proc/acpi/ibm/led and echo 4 off | /proc/acpi/ibm/led. Can these commands be run by gnome-power-manager when suspending and waking up? I discovered /usr/lib/hal/scripts/linux/hal-system-power-suspend-linux. I can either hack that directly (yuck); however, I see I can also resurrect my old /etc/acpi/sleep.sh script. But the way it's set up, if I provide /etc/acpi/sleep.sh, I also have to know how my system is suspended, which isn't user-friendly. I think it would be nice to provide pre- and post-suspend hooks instead. Thoughts? Thanks to an unrelated tip from Stefan Monnier, I installed the hibernate package, and created a file called /etc/hibernate/scriptlets.d/local which contains the following. If you want to use it, replace my initials (BW) with your own since the hibernate namespace is global. - clip - # -*- sh -*- # vim:ft=sh:ts=8:sw=4:noet # Ideas from /usr/share/hibernate/scriptlets.d/hardware_tweaks. # ibm_acpi proc directory BW_IBM_ACPI_PROC=/proc/acpi/ibm BwIbmAcpiStartSuspend() { # Turn off Ultrabay LED. IbmAcpiLed 4 off return 0 # this shouldn't stop suspending } BwIbmAcpiEndResume() { # Turn on Ultrabay LED. IbmAcpiLed 4 on return 0 } BwIbmAcpiOptions() { if [ -d $BW_IBM_ACPI_PROC -a -z $BW_IBM_ACPI_HOOKED ]; then AddSuspendHook 12 BwIbmAcpiStartSuspend AddResumeHook 12 BwIbmAcpiEndResume BW_IBM_ACPI_HOOKED=1 fi return 0 } BwIbmAcpiOptions - clip - -- Bill Wohler [EMAIL PROTECTED] http://www.newt.com/wohler/ GnuPG ID:610BD9AD -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: LEDs, gnome-power-manager, and ThinkPads
Nate Bargmann [EMAIL PROTECTED] writes: I gave up on the one size fits all power management utilities for my T23 and went back to my scripts. I did learn enough that I retained the uswsusp package and use its s2disk utility. I also use powernowd and KDE's battery monitor. My script is 100% reliable suspending to RAM while the various other utilities were not. I do think that the T23 is old enough that it doesn't support ACPI all that well even with BIOS updates. So my manual scripts work well with it. Thanks for the feedback. Under APM, I had custom scripts as well (see http://www.newt.com/debian/thinkpad-t40p/), but I find that now under ACPI I'm really close to not having to maintain that stuff myself. Maybe I should submit feature request to the hal package... -- Bill Wohler [EMAIL PROTECTED] http://www.newt.com/wohler/ GnuPG ID:610BD9AD -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: LEDs, gnome-power-manager, and ThinkPads
On 05/09/07, Nate Bargmann [EMAIL PROTECTED] wrote: My script is 100% reliable suspending to RAM while the various other utilities were not. Would you like to share? ;-) Chhers, -- Jens Peter Secher. _DD6A 05B0 174E BFB2 D4D9 B52E 0EE5 978A FE63 E8A1 jpsecher gmail com_. A. Because it breaks the logical sequence of discussion. Q. Why is top posting bad? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
LEDs, gnome-power-manager, and ThinkPads
I'd like to turn the light to the CD-ROM off when I suspend and then back on when I resume. This can be done by calling echo 4 on | /proc/acpi/ibm/led and echo 4 off | /proc/acpi/ibm/led. Can these commands be run by gnome-power-manager when suspending and waking up? -- Bill Wohler [EMAIL PROTECTED] http://www.newt.com/wohler/ GnuPG ID:610BD9AD -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: LEDs, gnome-power-manager, and ThinkPads
Bill Wohler [EMAIL PROTECTED] wrote: I'd like to turn the light to the CD-ROM off when I suspend and then back on when I resume. This can be done by calling echo 4 on | /proc/acpi/ibm/led and echo 4 off | /proc/acpi/ibm/led. Can these commands be run by gnome-power-manager when suspending and waking up? I discovered /usr/lib/hal/scripts/linux/hal-system-power-suspend-linux. I can either hack that directly (yuck); however, I see I can also resurrect my old /etc/acpi/sleep.sh script. But the way it's set up, if I provide /etc/acpi/sleep.sh, I also have to know how my system is suspended, which isn't user-friendly. I think it would be nice to provide pre- and post-suspend hooks instead. Thoughts? -- Bill Wohler [EMAIL PROTECTED] http://www.newt.com/wohler/ GnuPG ID:610BD9AD -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: LEDs, gnome-power-manager, and ThinkPads
* Bill Wohler [EMAIL PROTECTED] [2007 Sep 05 02:53 -0500]: Bill Wohler [EMAIL PROTECTED] wrote: I'd like to turn the light to the CD-ROM off when I suspend and then back on when I resume. This can be done by calling echo 4 on | /proc/acpi/ibm/led and echo 4 off | /proc/acpi/ibm/led. Can these commands be run by gnome-power-manager when suspending and waking up? I discovered /usr/lib/hal/scripts/linux/hal-system-power-suspend-linux. I can either hack that directly (yuck); however, I see I can also resurrect my old /etc/acpi/sleep.sh script. But the way it's set up, if I provide /etc/acpi/sleep.sh, I also have to know how my system is suspended, which isn't user-friendly. I think it would be nice to provide pre- and post-suspend hooks instead. Thoughts? I gave up on the one size fits all power management utilities for my T23 and went back to my scripts. I did learn enough that I retained the uswsusp package and use its s2disk utility. I also use powernowd and KDE's battery monitor. My script is 100% reliable suspending to RAM while the various other utilities were not. I do think that the T23 is old enough that it doesn't support ACPI all that well even with BIOS updates. So my manual scripts work well with it. - Nate -- Wireless | Amateur Radio Station N0NB | Successfully Microsoft Amateur radio exams; ham radio; Linux info @ | free since January 1998. http://www.qsl.net/n0nb/ | Debian, the choice of My Kawasaki KZ-650 SR @| a GNU generation! http://www.networksplus.net/n0nb/ | http://www.debian.org -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]