I was wondering why puppy doesn't react to the power button ... instead power just gets cut-off ... woops ...

Hmm, ok ACPI module isn't loaded ... now ACPI loaded with acpi=force ... but, still no reaction to power button ... looked for clues and found acpid ... Right, went off to grab the source, had a look and made a binary ... Configured and loaded acpid ... woops ... still no reaction to power button ...

Ok, after more reading and more checking, I understand now how it works ... Made a simple script to turn on power button support and set the config for puppy ... Walla ... press power button and puppy will now shutdown-and-poweroff ...

I did a search for a pet but found a pup ... Figured that a pet could make life easier for some ... This pet package contains acpid & acpi_listen daemon compiled from latest source 1.0.8 ... The /etc/acpi/events/acpid.conf file has the settings to shutdown and poweroff puppy which can be expanded to cover other acpi events ... A small script rc.acpi will be placed into init.d to turn on button and start acpid daemon ...

This pet package was tested with a LiveCD/Frugal & full hdd install on an old pentium II pc with a pre-2001 bios where ACPI needs to be turned on by acpi=force ...

Anyone who's willing to give this a try, please let me know how it goes ...

Been using puppy for quite a while actually ... Definitely grew on me by each day ...

Quote:

it gave a compile error so I am glad to see that you got 1.0.8
working

Went straight to sourceforge and found an updated source ... compiled sucesssfully on first try ... figuring how to get it to work took a bit while longer ...

Quote:

have you seen this post ?
http://www.murga-linux.com/puppy/viewtopic.php?t=38072

I just did ... wowzer ... for fun, I did try recompiling the kernel myself and screwed up something ... haha ... need more time to experiment on that one ...

And could you try this one out for me ? I don't have a problematic system poweroff and it's only just a hunch .... Just to observe if there's anything different ... (it's supposedly do a forced shutdown bypassing init ... since init is busybox itself...)

- Edit /sbin/poweroff and add -f switch at the end, like this
exec /sbin/busybox poweroff -f

I'm also interested to know on what system config would such problematic poweroff occurs ...

And finally, I've revised the rc.acpi script to handle start/stop/restart ... I just noticed the acpid exit msg on shutdown and it bugs me, so I did a proper script ... I hope it is satisfactory ...

Rgds

Edit:
I've found a bug that prevents acpid to poweroff if you exit to terminal prompt. This should be the last fix for the week as I ran this pet over and over again until I get it right ... The new pet can be cleanly installed over the previous pet.

I hope we get some more testers
this has a lot of potential for laptops
even though I have a desktop

I can help there. I have included this for Puppy-4.2alpha3 release, so you should get a plethora of testers from that! _________________Actions speak louder than words ... and they usually work when words don't!
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com

Patriot,
i installed your *.pet, rebooted and tried to shutdown computer by pressing the power-button. It switched off without any preparing procedures. Now puppy cannot boot, stops after "Recognising media devices".
What to do ?!!!!

The 4030CDT is likely to have acpi disabled by the kernel if the bios predates 2001 ... If acpi is not working, acpid won't either ... You can try adding acpi=force on the kernel line on bootup to force acpi on ... If I'm not mistaken the bios dsdt should work for acpi on 4030CDT ... YMMV ...

afishe2000 wrote:

..... Edited /etc/acpi/events/acpid.conf to:

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

Ok, I will update the packages in a couple of days to support all puppy >= 4.0 versions ...

Posted: Sun 14 Feb 2010, 16:58 Post subject:
How Does It Work?Subject description: pressing power button to shut down Puppy

I added this to Puppy Stardust 009 and it works for me.
Push power button, Puppy does normal shutdown, and computer powers off.
Nice!

Note:

My power button is the kind that has to be pushed for 4 or 5 seconds to kill power. When using this program, I push it for 1 or 2 seconds and it does not shut off power, but starts Puppy shutdown. Power shuts off at the end of Puppy shutdown.

Patriot, this is so cool. I hated that this was missing from 4.3, but could not find how to implement it. Found this thread via the stardust thread, thanks so much............._________________Spup Frugal HD and USB
Root forever!

I made some changes to get standby working (and some other little things). Don't know if it's working for all comuters, but for my Asus, Sony and Dell notebooks it is.
Here's the code of the acpi_poweroff.sh. Please have a look at it and sorry for playing so "bad" with the script. I'm a rookie

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou can download files in this forum