Package: pm-utils
Version: 0.99.2-1
Severity: important

Hello,

after configuring uswsusp and pm-utils both pm-suspend and pm-hibernate
work as expected. Unfortunately pm-suspend-hybrid doesn't due to the
following problem:

In debian/patches/60-suspend-hybrid.patch you modify pm/pm-action to
accept a 'suspend-hybrid' action, but in the line before the case
statement which decides what to do based on this action you substitute
all dashes by underscores so the $ACTION variable will hold
'suspend_hybrid' instead of 'syspend-hybrid', which is what you are
checking for.

Therefor pm-suspend-hybrid will just silently exit because of this
unknown action.

Altering only the case statement to match suspend_hybrid won't fix this
problem: You're using pm-is-supported to check if this method is
supported and pass "--$ACTION" as its arguments. This fails the option
required to tell pm-is-supported to check for suspend-hybrid is
'--suspend-hybrid', not --suspend_hybrid'.

There are several ways to fix this problem. I did just move the
ACTION=${ACTION/-/_} statement from before the case statement to its
end, before pm_main gets called. So the current case statement matches
and the call to pm-is-supported works as well.


-Flo

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-rc3 (PREEMPT)
Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages pm-utils depends on:
ii  powermgmt-base                1.29       Common utils and configs for power

Versions of packages pm-utils recommends:
ii  hal                    0.5.9-3           Hardware Abstraction Layer
ii  radeontool             1.5-5             utility to control ATI Radeon back
ii  uswsusp                0.6~cvs20070513-1 tools to use userspace software su
ii  vbetool                0.7-1.1           run real-mode video BIOS code to a

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to