Package: pm-utils
Version: 1.4.1-21
Severity: normal
Tags: patch

Dear Maintainer,

after upgrading to Devuan Excalibur (equivalent to Debian Trixie),
pm-suspend was not running any more.  Running DEBUG_PM=true pm-suspend
produced an output containing the following lines:

+ command_exists check_suspend.no_molly_guard
+ type check_suspend.no_molly_guard
+ return 1
+ log 'pm-utils does not know how to suspend.no_molly_guard on this system.'

The following change fixed it:

--- /old/pm-action      2025-11-10 17:55:09.078432257 +0100
+++ /usr/lib/pm-utils/bin/pm-action     2025-11-10 17:49:09.814631753 +0100
@@ -26,7 +26,7 @@

 # The rule here? Simplicity.
 export STASHNAME=pm-suspend
-export METHOD="$(echo ${0##*pm-} |tr - _)"
+export METHOD="$(echo ${0##*pm-} |tr - _|sed 's/\.no_molly_guard$//')"
 . "/usr/lib/pm-utils/pm-functions"

 # return code tracking for when suspend fails





-- System Information:
Distributor ID: Devuan
Description:    Devuan GNU/Linux 6 (excalibur)
Release:        6
Codename:       excalibur
Architecture: x86_64

Kernel: Linux 6.12.48+deb13-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/bash
Init: sysvinit (via /sbin/init)

Versions of packages pm-utils depends on:
ii  powermgmt-base  1.38

Versions of packages pm-utils recommends:
ii  ethtool  1:6.14.2-1
ii  hdparm   9.65+ds-1.1
ii  kbd      2.7.1-2
ii  procps   2:4.0.4-9devuan1
ii  vbetool  1.1-7

Versions of packages pm-utils suggests:
ii  cpufrequtils    008-2
ii  radeontool      1.6.3-3
ii  wireless-tools  30~pre9-18+b1

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/lib/pm-utils/bin/pm-action (from pm-utils package)
--- /tmp/pm-action      2025-11-10 17:55:09.078432257 +0100
+++ /usr/lib/pm-utils/bin/pm-action     2025-11-10 17:49:09.814631753 +0100
@@ -26,7 +26,7 @@
 
 # The rule here? Simplicity.
 export STASHNAME=pm-suspend
-export METHOD="$(echo ${0##*pm-} |tr - _)"
+export METHOD="$(echo ${0##*pm-} |tr - _|sed 's/\.no_molly_guard$//')"
 . "/usr/lib/pm-utils/pm-functions"
 
 # return code tracking for when suspend fails

Reply via email to