Hi!<br><br>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).
<br>I started with the following hints: <a href="http://forge.novell.com/pipermail/powersave-devel/2006-February/000294.html">http://forge.novell.com/pipermail/powersave-devel/2006-February/000294.html</a><br><br>If you want to try, you need to do the following:
<br><br>1. Change following lines in /etc/powersave/events:<br>EVENT_GLOBAL_SUSPEND2DISK=&quot;ubuntu_hibernate&quot;<br>EVENT_GLOBAL_RESUME_SUSPEND2DISK=&quot;ubuntu_resume&quot;<br><br><br>2. Create /usr/lib/powersave/scripts/ubuntu_hibernate with following content:
<br>#!/bin/bash<br># first get helper functions (e.g. DEBUG, load_scheme, ...)<br>. &quot;${0%/*}/helper_functions&quot;<br><br>/etc/acpi/hibernate.sh<br><br>EXIT 0<br><br><br>3. Create /usr/lib/powersave/scripts/ubuntu_resume with following content:
<br>
#!/bin/bash<br>
# first get helper functions (e.g. DEBUG, load_scheme, ...)<br>
. &quot;${0%/*}/helper_functions&quot;<br>
<br>EXIT 0<br><br>&nbsp;
<br>4. sudo chmod +x /usr/lib/powersave/scripts/ubuntu_*<br><br><br>5. Restart powersaved and kpowersave<br># Kpowersave -&gt; Quit<br>/etc/init.d/powersaved restart<br>kpowersave<br><br><br>6. Now &quot;Suspend to Disk&quot; will use Ubuntu scripts instead of powersaved scripts/method.
<br><br><br>Riddell: is this what you had in mind or am I going the wrong route?<br><br>Open issues:<br>- Kpowersave has options for screensaver - those will not have effect on Ubuntu way unless we change Ubuntu scripts<br>
- I have seen that ACPI scripts have some awareness for klaptopdaemon
and kpowersave - we may need to look if everything is there<br>
- 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<br>
<br>Regards,<br>Luka<br>