Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 22 Sep 2014, 08:33
All times are UTC - 4
 Forum index » House Training » Bugs ( Submit bugs )
Suspend to RAM doesn't always turn the display back on
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 2 of 2 Posts_count   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

PostPosted: Thu 19 Apr 2012, 13:49    Post_subject:  

Embarassed 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 Wink
Acer 5332 -- Lucid 528.004 frugal -- usb bluetooth audio
Back to top
View user's profile Send_private_message 
vtpup


Joined: 15 Oct 2008
Posts: 1135
Location: Republic of Vermont

PostPosted: 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
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 2 of 2 Posts_count   Goto page: Previous 1, 2
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Bugs ( Submit bugs )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0485s ][ Queries: 13 (0.0099s) ][ GZIP on ]