Bug 266696

Summary: Two rpms processing ACPI events at the same time
Product: [openSUSE] openSUSE 10.2 Reporter: Dieter Jurzitza <dieter.jurzitza>
Component: Mobile DevicesAssignee: Holger Macht <hmacht>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: behlert
Version: Final   
Target Milestone: ---   
Hardware: i686   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Stop powersave from processing suspend2disk / suspend2ram events

Description Dieter Jurzitza 2007-04-20 18:38:55 UTC
In SuSE 10.2 both pm-utils and powersave process the ACPI events for suspend2ram 
and suspend2disk (with a thinkpad, suse10.2).

The corrensponding entries in the file /usr/lib/powersave/thinkpad_acpi_events 
have not been disabled.

Therefore the "faster" of the two processes come into action. Therefore it may happen that the laptop goes back to suspend immediatly after resume. This happens because one of the suspend-events have not been processed and this one is then stored in the image that is saved on disk / in ram. If you reboot, this event is then processed immediatly.

I detected this because I added some scripts to /etc/pm/hooks that made the pm-utils slower, therefore the corresponding processes survived in the image. Can easily be tested with any thinkpad processing /usr/lib/powersave/thinkpad_acpi_events and a script in /etc/pm/hooks that does a sleep X.

Solution:
remove the events for FN-F4 and FN-F12 from /usr/lib/powersave/thinkpad_acpi_events.
I add a patch for powersave to this bug.
Comment 1 Dieter Jurzitza 2007-04-20 18:48:03 UTC
Created attachment 132941 [details]
Stop powersave from processing suspend2disk / suspend2ram events

This patch fixes the behaviour of powersave. Including this patch stops powersave from handling suspend2disk / suspend2ram events.
Comment 2 Holger Macht 2007-04-23 09:07:12 UTC
Sorry, I have to close this bug as duplicate of bug 264692. A fixed package already exists in the factory distribution. For 10.2 one can update the powersave package from http://software.opensuse.org/download/home:/dkukawka/openSUSE_10.2/

*** This bug has been marked as a duplicate of bug 264692 ***