The problem seems to lie deeper. Try the following:
$ cat /proc/acpi/button/lid/LID0/state state: open
Should read open. Close the lid. System suspends. Open the lid, press power button. System resumes.
$ cat /proc/acpi/button/lid/LID0/state state: closed
I guess the problem is that the lid is opened while in suspend and hence the state becomes corrupt.
The problem seems to lie deeper. Try the following:
$ cat /proc/acpi/ button/ lid/LID0/ state
state: open
Should read open.
Close the lid.
System suspends.
Open the lid, press power button.
System resumes.
$ cat /proc/acpi/ button/ lid/LID0/ state
state: closed
I guess the problem is that the lid is opened while in suspend and hence the state becomes corrupt.