---------- Forwarded Message ---------- Subject: Kpowersave with acpi-support Date: Friday 17 February 2006 01:13 From: Luka Renko <[EMAIL PROTECTED]> To: [EMAIL PROTECTED]
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 -------------------------------------------------------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
-- kubuntu-devel mailing list [EMAIL PROTECTED] https://lists.ubuntu.com/mailman/listinfo/kubuntu-devel
_______________________________________________ powersave-devel mailing list [email protected] http://forge.novell.com/mailman/listinfo/powersave-devel
