[Pkg-acpi-devel] Bug#931689: Please drop pm-utils dependendency

Michael Biebl biebl at debian.org
Tue Jul 9 11:09:11 BST 2019


Source: acpi-support
Version: 0.142-8
Severity: wishlist
Tags: patch

Hi,

please consider dropping the pm-utils dependency.
The attached patch should do the trick.

Regards,
Michael


-- System Information:
Debian Release: 10.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
-------------- next part --------------
diff --git a/debian/addons/scripts/lid.sh b/debian/addons/scripts/lid.sh
index 600f5d1..b4b724d 100644
--- a/debian/addons/scripts/lid.sh
+++ b/debian/addons/scripts/lid.sh
@@ -17,7 +17,7 @@ if [ $? -eq 0 ]
 then
     . /usr/share/acpi-support/screenblank
     if [ x$LID_SLEEP = xtrue ]; then
-	pm-suspend
+	echo mem > /sys/power/state
 	if [ $? -ne 0 -a x$LID_SHUTDOWN = xtrue ]; then
 		shutdown -P now
 	fi
diff --git a/debian/addons/scripts/sleep_suspend.sh b/debian/addons/scripts/sleep_suspend.sh
index 71152e6..bb0f481 100644
--- a/debian/addons/scripts/sleep_suspend.sh
+++ b/debian/addons/scripts/sleep_suspend.sh
@@ -26,8 +26,8 @@ if [ x$LOCK_SCREEN = xtrue ]; then
 fi
 
 if [ x$1 = xsleep ]; then
-	pm-suspend
+	echo mem > /sys/power/state
 elif [ x$1 = xsuspend ]; then
-	pm-hibernate
+	echo disk > /sys/power/state
 fi
 
diff --git a/debian/control b/debian/control
index 791415a..9ff6770 100644
--- a/debian/control
+++ b/debian/control
@@ -12,7 +12,7 @@ Standards-Version: 3.9.6
 Package: acpi-support
 Architecture: all
 Depends: acpi-support-base (>= 0.109-1), x11-xserver-utils, acpid (>= 1.0.4),
-	lsb-base (>= 1.3-9), pm-utils, ${arch:Depends},
+	lsb-base (>= 1.3-9), ${arch:Depends},
 	${misc:Depends}
 Recommends: rfkill, acpi-fakekey
 Suggests: radeontool, vbetool, xinput, 


More information about the Pkg-acpi-devel mailing list