Red Hat Bugzilla – Bug 1007961
sleep.sh uses wrong path for lid state
Last modified: 2013-09-16 11:18:21 EDT
Description of problem:
# cat /var/log/sleep.log
+ grep -q closed /proc/acpi/button/lid/LID/state
grep: /proc/acpi/button/lid/LID/state: No such file or directory
On my machine the file is /proc/acpi/button/lid/LID0/state
Version-Release number of selected component (if applicable):
Interesting, on my machine it works:
$ cat /proc/acpi/button/lid/LID/state
$ uname -r
And same on different machine running rawhide.
I guess it depends on what ACPI returns. Maybe more LID switches on your system? But I will add fallback for it.
Oh, sorry, I cannot find the sleep.sh (I originally thought it is in acpid or pm-utils :). What package are you talking about? Btw this is not acpid fault and it is not possible to fix/workaround it in acpid, maybe it is your custom script?
Very sorry for that, how embarrassing, it is indeed our own script.