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 Sat 23 Jul 2016, 21:18
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How I made my laptop lock the screen when the lid is closed
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
moi_classic2007

Joined: 20 Mar 2016
Posts: 15

PostPosted: Sun 20 Mar 2016, 19:50    Post subject:  How I made my laptop lock the screen when the lid is closed  

Hello all!
I want to make my laptop auto lock the screen when the lid is closed. However I did not find the direct answer for this question, so I did it my self and want to share to everybody
I am using puppy tahr 6.0.5 and xfce 4.12

Just make a change in ~/Startup/acpi
Increase the time for command sleep to 10 seconds or more.
And add this file to startup list by using Session and Startup app (I dont know why but if I dont add it to startup list, the laptop wont lock the screen)
Then you need to change the file /etc/acpi/actions/suspend.sh to make it lock out instead of suspend. In my case, I replaced
#suspend
echo -n mem > /sys/power/state

with:

#suspend
AppRun

Work like a charm!
I am a newbie and sr for my english, just want to share st help full and useful

Last edited by moi_classic2007 on Fri 25 Mar 2016, 14:49; edited 1 time in total
Back to top
View user's profile Send private message 
Karl Godt


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

PostPosted: Thu 24 Mar 2016, 18:12    Post subject:  

What do you mean by "logout" ?

Is it just "wmexit" to exit to prompt ?
Then you likely are not logged out .

You may need to kill the login shell,
that started "xwin" via /etc/profile or /root/.profile
to logout ..

_________________
«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 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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.0295s ][ Queries: 11 (0.0024s) ][ GZIP on ]