Bug#731602: Lid close and power button suspend not working

iiNET darren.w at iinet.net.au
Thu Jan 16 10:33:01 UTC 2014


Hi All

Just installed a new laptop with Jessie testing and found that suspend 
events do not trigger suspend action.

Looking through the threads of the included bugs reports there seems to 
be a bit of an overlap so I've CC'ed you all in.

System Information
         Manufacturer: Dell Inc.
         Product Name: Latitude E7240
         amd64

Related Packages
gnome-power-manager                   3.8.2-1
acpi-support-base 0.141-2
acpid                                 1:2.0.20-1
systemd                               204-6
pm-utils                              1.4.1-13
upower                                0.9.23-2+b1

A bit of investigation found that the acpi-support-base scripts have a 
small problem, With the 'su' is in place a call to CheckPolicy from a 
non root account prompts for a password. The following patch fixed the 
password prompt and allowed suspend to initiate.

--- /usr/share/acpi-support/policy-funcs.orig    2014-01-16 
19:24:48.828610060 +1100
+++ /usr/share/acpi-support/policy-funcs    2014-01-16 
19:25:31.169186162 +1100
@@ -44,7 +44,7 @@
          test -r /proc/$p/environ || continue
          DBUS_SESS=$(grep -a -z "DBUS_SESSION_BUS_ADDRESS=" 
/proc/$p/environ || :)
          test "$DBUS_SESS" != "" || continue
-        su $(ps -o user= $p) -s /bin/sh -c "$DBUS_SESS dbus-send 
--print-reply --dest='$DEST' '$DBUS_PATH' '$METHOD'"
+        $DBUS_SESS dbus-send --print-reply --dest='$DEST' '$DBUS_PATH' 
'$METHOD'
      done
  }

The pacth allows the lid to initiate and complete a suspend, the problem 
now is the power button issues a shutdown. gnome-tweak-tool suggests 
that the power button is set to suspend ( this could be a problem with 
my gnome profile though ).

Darren



More information about the pkg-gnome-maintainers mailing list