In case anyone else is affected by this bug, my current workaround is to
put this script:

    #!/bin/bash
    acpi_listen | while read -r b l s; do
        if [[ $l = LID ]] && [[ $s = close ]]; then
           xflock4
           sudo pm-suspend
        fi
    done

in my autostart, and

    %sudo   ALL = NOPASSWD: /usr/sbin/pm-suspend

in visudo.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1513564

Title:
  resumes from suspend if AC unplugged

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xfce4-power-manager/+bug/1513564/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to