Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).


  Search this Thread
Old 07-22-2004, 03:27 PM   #1
LQ Newbie
Registered: Jul 2004
Posts: 1

Rep: Reputation: 0
ACPID scripts only work when restart acpid from terminal

I have an ACPI script to turn off my screen when I close the lid on my laptop. This however doesn't work unless I open a terminal window and restart ACPID. If I then leave the terminal window open and hit the close lid button, the screen turns off great, however after I close the terminal, it no longer works. If I restart ACPID from the services applet in the menu, it says it restarts, but the script doesn't run.

Any help would be greatly appreciated..


Old 02-04-2008, 10:24 PM   #2
LQ Newbie
Registered: Apr 2005
Posts: 16

Rep: Reputation: 0
I have the same problem. Can anyone please help? Thanks!
Old 07-31-2012, 12:37 PM   #3
LQ Newbie
Registered: Dec 2011
Location: Philippines
Distribution: Slackware, Debian, Gentoo
Posts: 10

Rep: Reputation: Disabled
this thread should not be left unanswered, it may help others..

anyway. i have the same problem with xcompmgr through acpid..
i want to turn off xcompmgr when i plug-out my ac-adapter.

when acpid starts from startup scripts or rc's on BOOT. that process would be running in root or in a virtual terminal. after logging in then "startx", i would open a terminal then restart acpid

$ sudo /etc/rc.d/rc.acpid restart

then the rc.acpid must be running inside X now not in the virtual terminal where it started in bootup.
the xcompmgr now works as what i wanted.. but i have to restart the acpid after opening a terminal "inside x".
i already tried restarting acpid through a virtual terminal, then the xcompmgr won't work again if i plug-out my ac-adapter. i can't think of any work around for this so i posted, anyone?

Last edited by th0gz19; 07-31-2012 at 12:39 PM.
Old 10-23-2017, 12:43 AM   #4
LQ Newbie
Registered: Oct 2017
Distribution: Slackware
Posts: 1

Rep: Reputation: Disabled
This post is quite old now, but I recently was having this issue with acpid. I was trying to make my laptop go to hibernation when I closed the lid. My problem seemed that I was using /proc/acpid/button/lid/LID0/state for checking the state of the lid. When I changed that and started using acpid parameters in the script (those you pass with %e and you fetch with $1 $2 $3 $4) my issue was solved. Hope it helps someone.

Last edited by slacky90; 10-23-2017 at 12:45 AM.
Old 01-22-2020, 12:06 PM   #5
LQ Newbie
Registered: Nov 2019
Posts: 1

Rep: Reputation: Disabled
raising the dead here on this thread ...

I have had this issue since at least version 14.0, maybe longer.

I am using the input values to the /etc/acpid/ script, as was suggested however that doesn't address the issue I have which is the handler script isn't being invoked. ACPID doesn't seem to be running until I do a 'rc.acpid restart' (Yes, I've checked that /etc/rc.d/rc.acpid is +x ...)

Any ideas would be very much appreciated.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
kacpid and acpid slinky2004 Linux - Newbie 0 10-21-2005 10:01 PM
acpid working? viniosity Linux - Laptop and Netbook 0 09-18-2005 06:41 PM
acpid daemon matrixon Linux - Software 1 05-11-2005 06:22 PM
adjust acpid logging? TLV Linux - Laptop and Netbook 0 10-15-2004 07:49 AM
acpid requires restart before hotkeys activated Smerk Linux - Software 0 11-09-2003 09:13 AM > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 11:22 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration