resumes from suspend if AC unplugged

Bug #1513564 reported by Kevin Brubeck Unhammer
6
This bug affects 1 person
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://bugs.launchpad.net/ubuntu/+source/xubuntu-default-settings/+bug/1303736 ).

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.

Revision history for this message
Kevin Brubeck Unhammer (unhammer) wrote :

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.

Revision history for this message
Theo Linkspfeifer (lastonestanding) wrote :

I do not see how xfce4-power-manager could have any influence on an external event like unplugging the AC adapter. While the system is suspended no kernel or user process is actually running.

Were you able to identify the cause of the problem?

Changed in xfce4-power-manager (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for xfce4-power-manager (Ubuntu) because there has been no activity for 60 days.]

Changed in xfce4-power-manager (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.