Bug 266696 - Two rpms processing ACPI events at the same time
Summary: Two rpms processing ACPI events at the same time
Status: RESOLVED DUPLICATE of bug 264692
Alias: None
Product: openSUSE 10.2
Classification: openSUSE
Component: Mobile Devices (show other bugs)
Version: Final
Hardware: i686 Other
: P5 - None : Major (vote)
Target Milestone: ---
Assignee: Holger Macht
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-20 18:38 UTC by Dieter Jurzitza
Modified: 2007-04-23 09:07 UTC (History)
1 user (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Stop powersave from processing suspend2disk / suspend2ram events (1.91 KB, patch)
2007-04-20 18:48 UTC, Dieter Jurzitza
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 ***