Other Help Topics :: Shutdown on press of the power button..
Thanks a lot for your suggestion Roberts!
But, shame on my head, I just hadnt the demon running while looking for the log file (didnt realise at first that it was gone after restart - sorry) :-(
I had to start the demon manually in bootlocal.sh.
Now I do have a log file in /var/logs but it still doesnt recognise any powerbutton interactions.
When I type something like acpid -{anycommand} it tells me:
acpid: can't open /proc/acpi/event: Device or ressource busy
Maybe thats my problem? How am I supposed to work around this?
*Edit*
Another annoying thing is that I am now prompted everytime I boot (when the acpid.deb is installed) whether I want to overwrite the modified powerbtn.sh or not. I cannot find the file to modify this - any experiences with this?
The acpi log may give you some clues and you could also check if the button module is loaded.
Another thing to try could be to make your own acpid.dsl/.unc which include the powerbtn files - this would avoid the overwrite yes/no prompt.
I ve been trying this on several kinds of installations and machines now...
after apt-get install acpid the daemon is loaded as expected
the acpi logfile shows:
[Sun Jan 21 00:02:07 2007] starting up
[Sun Jan 21 00:02:07 2007] 1 rule loaded
(..but never more than that)
and typing "acpid" as root i get the message
acpid: can't open /proc/acpi/event: Device or ressource busy
Its the same on every installation and on every machine. I guess thats the reason why acpid is not working correctly but I have no clue how to fix it.
Someone out there who can help?
This post might help:
http://damnsmalllinux.org/cgi-bin....29;st=5
Thanks a lot Juanito. I already knew your thread and now have to admit that it of course perfectly works like you describe!!
I used lsof to check wich process is working with /proc/acpi/events and the answer was: acpid...
Even more confused I finally pressed all other buttons on my computer (like PRG, Reset and Sleep) and, what a wonder, it performed a nice shutdown in press of sleep (instead of power, hell knows why).
several days of research just to find out that the answer is so stupid... i love it
Next Page...
original here.