[Pkg-acpi-devel] Bug#755969: acpi-support: Upgrade to 0.140-5+deb7u1 breaks suspend to RAM: forced shutdown after return

Stuart Barkley stuartb at 4gh.net
Wed Jul 30 17:45:08 UTC 2014

This change has broken other things (power button now shuts down
instead of giving dialog, closing lid invokes screenlock, probably

It looks like the change in usr/share/acpi-support/policy-funcs is


    serverpid=$(pgrep -n -u $XUSER "$PROC_NAME")

is not working as expected.  This is returning no matching processes
on my system:

    # pgrep -n -u stuartb gnome-settings-daemon


    # pgrep -n -u stuartb gnome-settings-
    # pgrep -u stuartb -l gnome
    3747 gnome-keyring-d
    3765 gnome-session
    3824 gnome-settings-
    3879 gnome-panel
    3900 gnome-sound-app
    3902 polkit-gnome-au
    3910 gnome-screensav
    3913 gnome-fallback-

Looks like pgrep only matches 15 characters of the process name and is
not a good replacement for pidof.

More information about the Pkg-acpi-devel mailing list