Comment 4 for bug 1829399

Revision history for this message
Andrea Righi (arighi) wrote :

Hi Chris, just to make sure I understand (from a kernel perspective), can you confirm that `echo mem > /sys/power/state` is also fast at reaching the suspend state?

In that case it would be interesting to check if there's a delay at detecting the state of the lid switch. For this, could you run the following command in a bash session:

$ while :; do echo `date` - `cat /proc/acpi/button/lid/LID0/state`; sleep 1; done

Close the lid, re-open it and you should notice something like this:

Thu May 16 17:50:42 CEST 2019 - state: open
Thu May 16 17:50:43 CEST 2019 - state: open
Thu May 16 17:50:44 CEST 2019 - state: open
Thu May 16 17:50:45 CEST 2019 - state: closed
Thu May 16 17:50:46 CEST 2019 - state: closed
Thu May 16 17:50:47 CEST 2019 - state: closed
Thu May 16 17:50:48 CEST 2019 - state: open
Thu May 16 17:50:49 CEST 2019 - state: open
Thu May 16 17:50:50 CEST 2019 - state: open
^C

Note that I have set the "lid close action" to do nothing, in this way we can better isolate the problem. Thanks.