ACPID scripts only work when restart acpid from terminal
Linux - Laptop and NetbookHaving 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).
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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.
I have had this issue since at least version 14.0, maybe longer.
I am using the input values to the /etc/acpid/acpi_handler.sh 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 ...)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.