Bug 144491 - acpid doesn't execute action
acpid doesn't execute action
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: acpid (Show other bugs)
3
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-01-07 12:39 EST by Jan Röhrich
Modified: 2014-03-16 22:51 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-01-07 20:44:48 EST
Type: ---
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 Jan Röhrich 2005-01-07 12:39:44 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5)
Gecko/20041111 Firefox/1.0

Description of problem:
I added a rule for telling the XServer switching off display when I
close my laptop's display by the following script in /etc/acpi/events:

event=button/lid.*
action=/usr/X11R6/bin/xset dpms force off

This doesn't work even if I tell the Xserver to listen on port 6000
and set 'xhost +localhost'. 

But it works while having a running acpid in foreground by using
'acpid -d' - even on ttyX. So I think this must be something with this
'daemon()' function in /etc/init.d/functions.



Version-Release number of selected component (if applicable):
1.0.3-2

How reproducible:
Always

Steps to Reproduce:
1. Add event=button/lid.* \ action=/usr/X11R6/bin/xset dpms force off
to /etc/acpi/events/display.conf
2. xhost +localhost
3. service acpid restart
4. close and reopen display 

Actual Results:  -> nothing happens while other acpi events are
processed regularly

Expected Results:  -> display should be switched off
Comment 1 Bill Nottingham 2005-01-07 12:45:02 EST
Your script has no idea what your display is, as far as I can read it.
Comment 2 Jan Röhrich 2005-01-07 20:44:48 EST
Excuse me, I first should switch on my brain :-(

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