Anyone compiled acpid (for shutting down Puppy?)

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
VSh
Posts: 16
Joined: Wed 06 Jul 2005, 13:32

Anyone compiled acpid (for shutting down Puppy?)

#1 Post by VSh »

Did anyone compile and use "acpid" in Puppy2?

More precisely, I am trying to do clear shutdown on pressing of power button on the box.

User avatar
VSh
Posts: 16
Joined: Wed 06 Jul 2005, 13:32

#2 Post by VSh »

It can be compiled and works properly. But, it appeared that something wrong with acpi in Puppy. Power button doesn't post anything in /proc/acpi/event. Moreover, I haven't seen any event there.

User avatar
BlackAdder
Posts: 385
Joined: Sun 22 May 2005, 23:29

#3 Post by BlackAdder »

Puppy does not have the button module which is required to support the use of the power button or laptop lid to shut down etc.
As I understand it, acpid is needed to detect the event, and button can cause a resulting action. Don't know if there is another link in the chain, though.

User avatar
VSh
Posts: 16
Joined: Wed 06 Jul 2005, 13:32

#4 Post by VSh »

Now I see. Thank you.

Module button.ko can be found in all_modules-k2.6.16.7.tar.gz. "insmod button.ko" and all is right. button.ko is needed for posting the event in /proc/acpi/event and acpid simply reads events and reacts. Now /etc/acpi/events/power looks like:

Code: Select all

event=button power.*
action=/usr/X11R6/bin/wmpoweroff

Post Reply