acpid-1.0.8-i486 pet package for Puppy 4.1.x

Stuff that has yet to be sorted into a category.
Message
Author
User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

Re: Changed acpid_poweroff

#16 Post by shinobar »

soliver wrote:I made some changes to get standby working (and some other little things).
Great, soliver!

I suggest to place the 'Cancel' button at the left end, so that we can just press 'Enter' key to continue Puppy.
This is for the sake if we press the power button by mistake seeing the screen blacked out with the screen saver.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

ahoppin
Posts: 172
Joined: Mon 16 May 2011, 04:13

#17 Post by ahoppin »

I just loaded acpid-1.0.10-1.pet on my Thinkpad T23 with Lucid Puppy 5.2.5. The shutdown on power button press doesn't work for me (though that does work in Lighthouse Puppy 5.0.3), but the suspend function seems to work great. Since that's what I'm mainly interested in, I call this script a success. Thanks!

ahoppin
Posts: 172
Joined: Mon 16 May 2011, 04:13

#18 Post by ahoppin »

Guess I spoke too soon. Audio is muted after a suspend/restore cycle. However I found that issuing the following commands restores the audio:

amixer PCM mute
amixer PCM unmute
amixer Master mute
amixer Master unmute

It seems as if all of them are required.

I put these in a shell script so they're easy to run on resuming, but is there any way to make this automatic? (Apologies for my ignorance.)

User avatar
chiron
Posts: 87
Joined: Mon 30 Oct 2006, 18:13
Location: Franken, Bavaria, Germany

#19 Post by chiron »

You can add all actions you want done after wakeup in your suspend script ...

You find the script /etc/acpi/actions/suspend.sh

In the script, find the line

Code: Select all

# process at recovery from suspend
following that line, you can put in the commands you want executed after wakeup. I suggest you also add

Code: Select all

/etc/rc.d/rc.network restart
since the network might also be down after the siesta ;)

ahoppin
Posts: 172
Joined: Mon 16 May 2011, 04:13

#20 Post by ahoppin »

That worked perfectly! Many thanks!

User avatar
safbto1st
Posts: 6
Joined: Thu 16 Nov 2017, 15:10

Re: acpid-1.0.10-1.pet

#21 Post by safbto1st »

Hi All, I'm safbto1st, running Slacko 6.3.0 and Tahr on many machines for years now, yet my first post here.

Thanks to acpid-1.0.10-1.pet:
shinobar wrote:Here you can find acpid-1.0.10-1.pet supports suspend with lid closing for notebooks.
it also offers shutdown dialog when the power button is pressed.
my ThinkPad X31 (Slacko 6.3.0) stopped crashing after closing the lid!
It was horrible! After closing the lid the "moon" diode was lit, and when i opened it the diode was still on, the LCD was lit, but black. Crash! :evil:
Now closing the lid only turns off LCD, but it is exactly what i was looking for ;P
Thanks!

ps. Power Button still does ...nothing. ;)

Post Reply