Bug#731602: Bug#726763: Lid close and power button suspend not working
Andreas Cadhalpun
andreas.cadhalpun at googlemail.com
Thu Jan 16 19:29:49 UTC 2014
Hi,
On 16.01.2014 11:33, iiNET wrote:
> 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.
Have you tried installing systemd-shim or systemd-sysv?
> 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 ).
This patch does not change anything for me. Suspend on lid close works
with systemd-shim | systemd-sysv and does not work without one of those
installed.
Best regards,
Andreas
More information about the pkg-gnome-maintainers
mailing list