if machine start with apm: load apm module before start powersaved

Bug #37512 reported by Danny Kukawka
8
Affects Status Importance Assigned to Milestone
powersave (Ubuntu)
Fix Released
Medium
Luka Renko

Bug Description

If you start a machine without ACPI support and e.g. with APM (used kernel parameter acpi=off on a IBM ThinkPad T21) the startscript should start powersaved without -f option for the path to the acpid event socket.

If you start powersave with -f on APM you can't suspend to ram or trigger standby.

Revision history for this message
Luka Renko (lure) wrote :

Will try to detect APM in powersaved startup script and exclude -f parameter (ACPI specific) in that case.

Changed in powersave:
assignee: nobody → lure
Revision history for this message
Danny Kukawka (danny-kukawka) wrote :

Should be simple to add this check. On SUSE we use this lines:

ACPI_APM='$powersave_BIN --apm-acpi'
if [ "$ACPI_APM" = "ACPI" ]; then
 ....
elif [ "$ACPI_APM" = "APM" ]; then

Revision history for this message
Danny Kukawka (danny-kukawka) wrote :

We investigated the problem. If the machine is on APM the apm module is loaded after powersave is started. This is the problem. You should load on Kubuntu the apm module earlier (e.g. in the powersave init script) or start powersave later in the init process.

Revision history for this message
Luka Renko (lure) wrote :

I have added loading of apm kernel module in check_apm_acpi() method in /etc/init.d/powersaved. I think this should fix it for APM machines.

I will upload new package (0.12.11) this evening to kubuntu.no-ip.org.

Revision history for this message
Luka Renko (lure) wrote :

0.12.11 with the patch to load "apm" module was released to Dapper universe.
Please reopen if you see this problem again.

Changed in powersave:
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.