apmd-compat calling apmd incorrectly with "resume user"

Bug #10756 reported by Chris Kuklewicz
6
Affects Status Importance Assigned to Milestone
pbbuttonsd (Ubuntu)
Fix Released
Medium
Martin Pitt

Bug Description

Seen in a fresh ubuntu 4.10 warty install on a 15" Apple powerbook G4/1.33MHz:

The pbbuttonsd file /etc/power/scripts.d/apmd-compat exists to call /etc/apm/
scripts,
including /etc/apm/apmd_proxy

All the /etc/apm/ scripts have a finite list of valid command line arguments,
which can be seen at the top of the comments in /etc/apm/apmd_proxy

Upon suspend, apmd-compat is passing "suspend user" which is a valid command to apm

Upon resume, apmd-compat is passing "resume user" which is **NOT** a valid
command to apm

I would guess that the proper command line arguments would be "resume suspend"
instead of "resume user"

This error does break several of the /etc/apm/script.d/ commands, with both
hwclock and ppp both
ignoring the invalid command.

Revision history for this message
Martin Pitt (pitti) wrote :

 pbbuttonsd (0.7.1-1ubuntu2) breezy; urgency=low
 .
   * scripts/scripts.d/apmd-compat: Fix arguments on calling apm scripts on
     resume. (Ubuntu #4201)
   * Sort and split patches, put them into debian/ubuntu-patches/.

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.