I created a script that checks the status of /proc/acpi/button/lid/LID/state over time. I ran it while I reproduced the bug (disconnected AC, screen went blank), and /proc/acpi/button/lid/LID/state correctly reported the lid as "open" the whole time.
I created a script that checks the status of /proc/acpi/ button/ lid/LID/ state over time. I ran it while I reproduced the bug (disconnected AC, screen went blank), and /proc/acpi/ button/ lid/LID/ state correctly reported the lid as "open" the whole time.