Bug 1007961 - sleep.sh uses wrong path for lid state
sleep.sh uses wrong path for lid state
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: acpid (Show other bugs)
19
All Linux
unspecified Severity medium
: ---
: ---
Assigned To: Jaroslav Škarvada
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-13 11:51 EDT by Orion Poplawski
Modified: 2013-09-16 11:18 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-09-16 11:18:21 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Orion Poplawski 2013-09-13 11:51:23 EDT
Description of problem:

# cat /var/log/sleep.log 
+ PATH=/sbin:/bin:/usr/bin
+ grep -q closed /proc/acpi/button/lid/LID/state
grep: /proc/acpi/button/lid/LID/state: No such file or directory
+ exit

On my machine the file is /proc/acpi/button/lid/LID0/state

Version-Release number of selected component (if applicable):
kernel 3.10.11-200.fc19.i686.PAE
acpid-2.0.19-6.fc19.i686
Comment 1 Jaroslav Škarvada 2013-09-16 06:26:06 EDT
Interesting, on my machine it works:
$ cat /proc/acpi/button/lid/LID/state
state:      closed
$ uname -r
3.10.11-200.fc19.x86_64

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.
Comment 2 Jaroslav Škarvada 2013-09-16 06:39:48 EDT
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?
Comment 3 Orion Poplawski 2013-09-16 11:18:21 EDT
Very sorry for that, how embarrassing, it is indeed our own script.

Note You need to log in before you can comment on or make changes to this bug.