Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ 1 [2] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Shutdown on press of the power button.., ..is there an easy way to realise this?< Next Oldest | Next Newest >
eeffoC Offline





Group: Members
Posts: 29
Joined: Jan. 2007
Posted: Jan. 16 2007,20:07 QUOTE

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?
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Jan. 17 2007,03:39 QUOTE

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.
Back to top
Profile PM 
eeffoC Offline





Group: Members
Posts: 29
Joined: Jan. 2007
Posted: Jan. 20 2007,23:05 QUOTE

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?
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Jan. 21 2007,14:41 QUOTE

This post might help:

http://damnsmalllinux.org/cgi-bin....29;st=5
Back to top
Profile PM 
eeffoC Offline





Group: Members
Posts: 29
Joined: Jan. 2007
Posted: Jan. 21 2007,22:10 QUOTE

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
Back to top
Profile PM 
9 replies since Jan. 13 2007,20:18 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ 1 [2] >/
reply to topic new topic new poll
Quick Reply: Shutdown on press of the power button..

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code