Comment 58 for bug 33072

Revision history for this message
In , Rod (rod-redhat-bugs) wrote :

I am seeing similar issue to this. My problem manifests itself most often with
this situation:

1. Using system with power adapter.
2. Close lid (suspend) *then* remove power adapter
3. No adapter, open lid

At this point the system comes back from suspend, and about 10 seconds later it
suspends. Just enough time to type in a password or plug in a usb cable. At
first I thought that I was doing something wrong but I can open the lid and step
back, and it will re-suspend without any intervention.

AFAIKS it appears that button.state.value gets stuck at true (it is true right
now) - maybe when the system detects the power adapter removal (after resume on
lid open) it also sees the erroneous button state, which causes it to suspend.

Here are the relevant log items:

Close lid on AC:
Apr 6 16:41:40 localhost gnome-power-manager: Suspending computer because the
lid has been closed on ac power
Disconnect AC and open lid, then:

Apr 6 16:42:22 localhost gnome-power-manager: Suspending computer because the
lid has been closed, and the ac adapter removed