Bug 1007961 - sleep.sh uses wrong path for lid state
Summary: sleep.sh uses wrong path for lid state
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: acpid
Version: 19
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jaroslav Škarvada
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-13 15:51 UTC by Orion Poplawski
Modified: 2013-09-16 15:18 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-16 15:18:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Orion Poplawski 2013-09-13 15:51:23 UTC
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 10:26:06 UTC
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 10:39:48 UTC
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 15:18:21 UTC
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.