LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (http://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   ACPID scripts only work when restart acpid from terminal (http://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/acpid-scripts-only-work-when-restart-acpid-from-terminal-208397/)

jasonkhonlaw 07-22-2004 02:27 PM

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..

Thanks,

Jason

weijie90 02-04-2008 09:24 PM

I have the same problem. Can anyone please help? Thanks!

th0gz19 07-31-2012 11:37 AM

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?


All times are GMT -5. The time now is 07:23 PM.