The time now is Thu 23 May 2013, 13:30
All times are UTC - 4 |
|
Page 2 of 2 [17 Posts] |
Goto page: Previous 1, 2 |
| Author |
Message |
d(O o O)b

Joined: 11 Apr 2012 Posts: 10 Location: Usually in the middle of some ocean
|
Posted: Thu 19 Apr 2012, 13:49 Post subject:
|
|
Ooops!
Just noticed I missed an update in the pwrman script
At present, the 'shutdown' variable does not have any effect.
It is necessary to modify line 45 :-
if (($batteryLife < 3))
change to:-
if (($batteryLife < $shutdown))
-------------------------------------------------------------------------------------------
As the dalek said to the dustbin - anyone can make a mistake
_________________ Ran away from Redmond 2012 ----- Never going back
Acer 5332 -- Lucid 528.004 frugal -- usb bluetooth audio
|
|
Back to top
|
|
 |
vtpup

Joined: 15 Oct 2008 Posts: 1077 Location: Republic of Vermont
|
Posted: Sun 03 Jun 2012, 14:23 Post subject:
|
|
Nice script!
(But wouldn't it be better if you went back and edited your correction into your earlier post and the downloadable script?)
ps. I had to edit BAT0 to BAT1 and LID1 to LID for my laptop using Racy 53.
Other users should check their /proc/acpi/....... directory names to likewise adjust the script if needed.
I put the script in /root/my-applications folder and made a link to it in the /root/Startup folder. Be sure to test the script before doing this, or you may find as I did, that you get unexpected suspends or even shutdowns as soon as Puppy starts. If so, simply boot into puppy with the pfix=ram parameter, and mount your savefile. Then delete the link in /root/Startup.
The script works great for me now -- just what I was looking for!
Now to get a suspend after a period of inactivity -- with video player exception -- saw a script around here for that, too.
edit:
here it is (mousuo.sh):
http://murga-linux.com/puppy/viewtopic.php?t=36109
For that one I commented out the wmpoweroff command line and substituted the suspend command from the pwrman script. Also removed the "Exit" line so that it would continue to loop.
Works well. The only drawback is that if it goes into suspend, I assume the pwrman script will not shut down the computer for a low battery while in suspend.
However I get the benefit that there will be longer period of inactivity until a loss of battery power, and it is likely I will see the blinking suspend LED at some point before the battery runs out. I can then resume and shut down programs, save data, or plug in.
_________________ New Acer Aspire 5349-2635 dual proc, 4gb ram, re-partitioned with frugal Racy 5.3, dual boot, running rings around Win 7.
|
|
Back to top
|
|
 |
|
|
Page 2 of 2 [17 Posts] |
Goto page: Previous 1, 2 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|
[ Time: 0.0399s ][ Queries: 12 (0.0069s) ][ GZIP on ] |