Posted: Sun 20 Mar 2016, 19:50 Post subject:
How I made my laptop lock the screen when the lid is closed
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
echo -n mem > /sys/power/state
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
Joined: 20 Jun 2010 Posts: 4204 Location: Kiel,Germany
Posted: 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
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