Kpowersave with acpi-support

Luka Renko 74.luka at gmail.com
Fri Feb 17 00:13:44 GMT 2006


Hi!

I made a quick hack to change Kpowersave/powersaved configuration to use
default scripts provided by Ubuntu. I did it only for Hibernate (suspend to
disk) as suspend to RAM does not work on my laptop (HP Compaq nw8240).
I started with the following hints:
http://forge.novell.com/pipermail/powersave-devel/2006-February/000294.html

If you want to try, you need to do the following:

1. Change following lines in /etc/powersave/events:
EVENT_GLOBAL_SUSPEND2DISK="ubuntu_hibernate"
EVENT_GLOBAL_RESUME_SUSPEND2DISK="ubuntu_resume"


2. Create /usr/lib/powersave/scripts/ubuntu_hibernate with following
content:
#!/bin/bash
# first get helper functions (e.g. DEBUG, load_scheme, ...)
. "${0%/*}/helper_functions"

/etc/acpi/hibernate.sh

EXIT 0


3. Create /usr/lib/powersave/scripts/ubuntu_resume with following content:
#!/bin/bash
# first get helper functions (e.g. DEBUG, load_scheme, ...)
. "${0%/*}/helper_functions"

EXIT 0


4. sudo chmod +x /usr/lib/powersave/scripts/ubuntu_*


5. Restart powersaved and kpowersave
# Kpowersave -> Quit
/etc/init.d/powersaved restart
kpowersave


6. Now "Suspend to Disk" will use Ubuntu scripts instead of powersaved
scripts/method.


Riddell: is this what you had in mind or am I going the wrong route?

Open issues:
- Kpowersave has options for screensaver - those will not have effect on
Ubuntu way unless we change Ubuntu scripts
- I have seen that ACPI scripts have some awareness for klaptopdaemon and
kpowersave - we may need to look if everything is there
- Ubuntu packages are old (0.5.2-1) - latest is 0.5.7-rc1 (with lots of
changes) - I already wrote to package author if he plans new Ubuntu packages
(there are latest versions for Debian Sid) or should we prepare them

Regards,
Luka
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/kubuntu-devel/attachments/20060217/b3e9f8ff/attachment-0001.htm


More information about the kubuntu-devel mailing list