Comment 14 for bug 1238678

Revision history for this message
Hans Deragon (deragon) wrote :

In my case, here is a scenario to reproduce it.

- Have the laptop configured to suspend upon lowering the lid.
- Suspend the laptop with other means, such as <fn><suspend key>, going through the Unity menu or on a terminal sending 'sudo bash -c "echo mem >/sys/power/state',
- Immediately after the previous step, before the computer has actually suspended, close the lid.

This sequence of events sends two 'suspend' signals. Thus when resuming from the first one, the system suspends again.

The fix: The kernel / OS should ignore a suspend/hibernate/poweroff request if any of these is already in progress.