(OLD) (ARCHIVED) Puppy Linux Discussion Forum Forum Index (OLD) (ARCHIVED) Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info

This forum can also be accessed as http://oldforum.puppylinux.com
It is now read-only and serves only as archives.

Please register over the NEW forum
https://forum.puppylinux.com
and continue your work there. Thank you.

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 26 Nov 2020, 06:31
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Laptop sleep function only works properly with Slacko 5.3.3
Moderators: Flash, Ian, JohnMurga
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
Page 2 of 2 [19 Posts]   Goto page: Previous 1, 2
Author Message
liro

Joined: 28 Jul 2012
Posts: 164

PostPosted: Tue 04 Jun 2013, 13:33    Post subject:  

Thanks ozsouth Smile .
Back to top
View user's profile Send private message 
ssreddy

Joined: 12 Jun 2013
Posts: 43
Location: Hyderabad, India

PostPosted: Thu 13 Jun 2013, 21:19    Post subject: Does this solution work for Desktop also?  

Does this solution work for Desktop also?
Back to top
View user's profile Send private message 
Mr.Puppy

Joined: 05 Aug 2013
Posts: 14

PostPosted: Fri 09 Aug 2013, 12:40    Post subject:  

Do Suspbase and Susplid also work on other Linux distros like Antix?

ozsouth wrote:
Unzip the attached to /usr/bin, ensure executable, then make a desktop icon.
Clicking the icon should suspend after 1 sec, requiring either a lid close then open, or just a power button push, to resume.


How do I add a desktop icon on the Puppy Precise Desktop?

I have installed the Susplid0 scriptfile to the /root/Starup directory. I have put the SuspBase file to the /usr/bin directory. As soon as my Puppy Precise 5.7.1 desktop has started, it immediately fals into the suspend-to-memory state. I press the power button to wake-up and it falls back again into the suspend state.

Listing SuspLid0 file:

Code:
#!/bin/sh
# event handler to automatically suspend-to-ram when laptop lid is closed.

while true #Endless loop.
do
if grep -q open /proc/acpi/button/lid/LID0/state
then
sleep 12 # minimise resource usage
else
echo mem > /sys/power/state # send the suspend signal
sleep 1
fi
done


I dis ls /proc/acpi/button/lid and I saw the director LID instead of LID0. So I have to change the "if grep -q open /proc/acpi/button/lid/LID0/state" to "if grep -q open /proc/acpi/button/lid/LID/state"
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 4208
Location: Kiel,Germany

PostPosted: Fri 09 Aug 2013, 13:37    Post subject:  

Sorry, but searching for acpi should bring a bunch of information .

The /usr/sbin/acpid is needed to launch scripts in /etc/acpi .

Unfortunately the values that are returned by the kernel for any buttons pressed might differ each patchlevel .

So files in /etc/acpi that get passed other values, than written in these , would simply ignore them .

Quote:
I dis ls /proc/acpi/button/lid and I saw the director LID instead of LID0. So I have to change the "if grep -q open /proc/acpi/button/lid/LID0/state" to "if grep -q open /proc/acpi/button/lid/LID/state"

YES

_________________
«Give me GUI or Death» -- I give you [[Xx]term[inal]] [[Cc]on[s][ole]] .
Macpup user since 2010 on full installations.
People who want problems with Puppy boot frugal Razz
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [19 Posts]   Goto page: Previous 1, 2
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

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.1122s ][ Queries: 13 (0.0429s) ][ GZIP on ]