resumes from suspend if AC unplugged
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xfce4-power-manager (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
I am running Xubuntu 15.10, with xscreensaver (I uninstalled light-locker since at least on my Thinkpad X200, I cannot reliably resume from suspend with it, possibly due to https:/
With 15.04, I didn't have problems with suspend, but lately it has this strange behaviour where it'll resume from suspend when I unplug the laptop from AC after closing the lid.
I let acpi_listen run while first closing the lid, then counting to five, then unplugging AC, then counting to five, then plugging it back in, counting to five, then opening the lid, here's the log:
$ acpi_listen|while read -r l;do echo "$(date) $l" ; done
to. 05. nov. 18:25:52 +0100 2015 button/lid LID close
to. 05. nov. 18:26:01 +0100 2015 battery PNP0C0A:00 00000080 00000001
to. 05. nov. 18:26:01 +0100 2015 battery PNP0C0A:00 00000080 00000001
to. 05. nov. 18:26:01 +0100 2015 processor LNXCPU:00 00000081 00000000
to. 05. nov. 18:26:01 +0100 2015 processor LNXCPU:01 00000081 00000000
to. 05. nov. 18:26:01 +0100 2015 ibm/hotkey IBM0068:00 00000080 00006030
to. 05. nov. 18:26:01 +0100 2015 thermal_zone LNXTHERM:00 00000081 00000000
to. 05. nov. 18:26:07 +0100 2015 ac_adapter ACPI0003:00 00000080 00000001
to. 05. nov. 18:26:07 +0100 2015 processor LNXCPU:01 00000080 00000002
to. 05. nov. 18:26:07 +0100 2015 processor LNXCPU:00 00000081 00000000
to. 05. nov. 18:26:07 +0100 2015 processor LNXCPU:01 00000081 00000000
to. 05. nov. 18:26:07 +0100 2015 ibm/hotkey IBM0068:00 00000080 00006030
to. 05. nov. 18:26:07 +0100 2015 thermal_zone LNXTHERM:00 00000081 00000000
to. 05. nov. 18:26:07 +0100 2015 battery PNP0C0A:00 00000080 00000001
to. 05. nov. 18:26:09 +0100 2015 battery PNP0C0A:00 00000080 00000001
to. 05. nov. 18:26:15 +0100 2015 button/lid LID open
^C
So as the output shows, it was only suspended between lid close and battery unplugged.
I'm running xfce4-power-manager 1.4.4-4ubuntu1 on 15.10.
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.