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 Thu 13 Dec 2018, 14:01
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
When the lid is closed, I want only the screen to turn off.
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [9 Posts]  
Author Message
vaskoiii

Joined: 18 Mar 2010
Posts: 7

PostPosted: Mon 29 Mar 2010, 06:29    Post subject:  When the lid is closed, I want only the screen to turn off.  

Is there something I can do so when the lid is closed on my laptop nothing happens other than the screen turning off.

currently I am running Puppy 4.31JP.

Also another annoying side effect is that when the computer does suspend the mouse doesn't work on resume...

Maybe there are power options somewhere that I am not seeing.

Laptop:
fujitsu p1120

Please advise!
Back to top
View user's profile Send private message 
Béèm


Joined: 21 Nov 2006
Posts: 11775
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Mon 29 Mar 2010, 07:24    Post subject:  

Find the acpitool pet and install it.
_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
Shel

Joined: 11 Apr 2009
Posts: 103
Location: Seattle, WA, USA, or Southern France

PostPosted: Mon 29 Mar 2010, 15:25    Post subject:  

All this stuff is controlled (I think) from scripts in the /etc/acpi subdirectory, under the control of the configuration files in /etc/acpi/events. This assumes your laptop's BIOS isn't doing something beyond Puppy's comtrol when you close the lid.

Have a look at the file /etc/acpi/events/lid ... it points to the script that gets run when you close the lid. If you rename the script (probably /etc/acpi/lid.sh) to something else (say /etc/acpi/lid.sh.disabled) I believe Puppy will do nothing when you close the lid.

To find out if you have acpitool, command "which acpitool" ... if you get a pathname, you already have it.

If you install the acpitool pet (I think Jemimah posted it originally) you can change what happens when you close the lid. In my case, I wanted standby mode, not "hibernation," but I had to write a new script to refresh the screen after the computer woke up. If not, I didn't get the whole screen.

acpitool is a command-line program; as far as I know, there's no GUI to set or change any of this stuff.

-Shel
Back to top
View user's profile Send private message 
vaskoiii

Joined: 18 Mar 2010
Posts: 7

PostPosted: Tue 30 Mar 2010, 00:14    Post subject:  

I just did something like:
mv /etc/acpi/???/suspend.sh /etc/acpi/???/suspend.sh.bak
vi /etc/acip/???/suspend.sh

TY!
Back to top
View user's profile Send private message 
johnywhy


Joined: 20 Aug 2011
Posts: 872

PostPosted: Sat 20 Aug 2011, 11:13    Post subject: clarify?  

would someone be willing to explain the above code for a noob, or offer a simpler command (acpi or other) to disable suspend on closing the lid?

thanks!
Back to top
View user's profile Send private message 
vaskoiii

Joined: 18 Mar 2010
Posts: 7

PostPosted: Mon 29 Aug 2011, 17:43    Post subject:  

Basically all you have to do is to open the file:
suspend.sh
:in a text editor and from there I think you should be able to configure things without to much trouble.

The line:
vi /etc/acip/???/suspend.sh
:should help you find where you can locate the suspend.sh file.
Back to top
View user's profile Send private message 
johnywhy


Joined: 20 Aug 2011
Posts: 872

PostPosted: Mon 29 Aug 2011, 20:04    Post subject:  

Thanks!
Back to top
View user's profile Send private message 
JurviZ

Joined: 11 Mar 2012
Posts: 3

PostPosted: Mon 12 Mar 2012, 08:43    Post subject:  

Thanks from me, too. This was a big help.

Just to clarify to anyone who finds this thread, if you don't want anything to happen to the system when you close the lid, just replace

/etc/acpi/actions/suspend.sh

with an empty file.

Back up the original, though, etc. etc.
Back to top
View user's profile Send private message 
veejay

Joined: 16 Dec 2010
Posts: 29

PostPosted: Fri 01 Dec 2017, 08:51    Post subject:  

Hai JurviZ, It worked for me. Thanks. Now as laptop lid closed, working with external 18" monitor.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [9 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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.0544s ][ Queries: 12 (0.0202s) ][ GZIP on ]