Enable suspend on lid close?
-
- Ronin
- Posts: 2
- Joined: 10 Jan 2014, 03:41
- Distribution: Porteus 2.0
- Location: Earth
Enable suspend on lid close?
I'm using the latest Porteus on a Thinkpad T41 as a permanent installation (in frugal mode) on the hard drive. It seems a perfect use for such a nice, light, Linux OS.
However, I've noticed that the laptop doesn't go into suspend when the lid is closed. I've looked in the power settings, and for a related package to install (searching the packages with keyword "power"), but so far haven't come up with a solution. Is it possible to enable this function in Porteus?
Thanks in advance.
However, I've noticed that the laptop doesn't go into suspend when the lid is closed. I've looked in the power settings, and for a related package to install (searching the packages with keyword "power"), but so far haven't come up with a solution. Is it possible to enable this function in Porteus?
Thanks in advance.
- francois
- Contributor
- Posts: 6316
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: Enable suspend on lid close?
In the kde desktop:
kde panel > applications > settings > kde settings > energy saving > button event handling > sleep
kde panel > applications > settings > kde settings > energy saving > button event handling > sleep
Prendre son temps, profiter de celui qui passe.
-
- Ronin
- Posts: 2
- Joined: 10 Jan 2014, 03:41
- Distribution: Porteus 2.0
- Location: Earth
Re: Enable suspend on lid close?
Is it also possible in LXDE? (Sorry, should have specified that.)
- fanthom
- Moderator Team
- Posts: 5591
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: Enable suspend on lid close?
with LXDE you will have to use acpid events directly. please have a look here:
https://wiki.archlinux.org/index.php/acpid
https://bbs.archlinux.org/viewtopic.php?id=94516
in slackware you will have to modify /etc/acpi/acpi_handler.sh file.
https://wiki.archlinux.org/index.php/acpid
https://bbs.archlinux.org/viewtopic.php?id=94516
in slackware you will have to modify /etc/acpi/acpi_handler.sh file.
Please add [Solved] to your thread title if the solution was found.
- Ed_P
- Contributor
- Posts: 7678
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.0 ISO
- Location: Western NY, USA
Re: Enable suspend on lid close?
RazorQT has the same situation. What exact modification do you suggest to the acpi_handler.sh file to resolve this problem? Or is there another way?fanthom wrote:in slackware you will have to modify /etc/acpi/acpi_handler.sh file.
Ed
- francois
- Contributor
- Posts: 6316
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: Enable suspend on lid close?
What is the advantage of the sleep mode? Isn't it better to completely shutdown given the speed at which porteus bootup and shutdown? There are very interesting answers here:
http://www.brighthub.com/environment/gr ... 95215.aspx
http://www.brighthub.com/environment/gr ... 95215.aspx
Prendre son temps, profiter de celui qui passe.
- Ed_P
- Contributor
- Posts: 7678
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.0 ISO
- Location: Western NY, USA
Re: Enable suspend on lid close?
So long as the shutdown happens automatically when the lid is closed and changes get saved to the save.dat file it probably doesn't matter if shutdown is used instead of suspend. Currently neither happens when the lid is closed which eats the remaining battery life.francois wrote:Isn't it better to completely shutdown given the speed at which porteus bootup and shutdown?
Ed
Re: Enable suspend on lid close?
...
Last edited by phhpro on 03 Feb 2016, 23:43, edited 1 time in total.
- Ed_P
- Contributor
- Posts: 7678
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.0 ISO
- Location: Western NY, USA
Re: Enable suspend on lid close?
phhpro wrote:What I usually do, is to hit the appropiate button on the keyboard.

Ed
- fanthom
- Moderator Team
- Posts: 5591
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: Enable suspend on lid close?
i have given you a fishing rod and not a fish itself. dont be lazy and read linked doc then create proper action in your /etc/acpi/acpi_handler.sh file.What button are you referring to that hibernates the system? Or saves the system's changes then shuts the laptop down? Your posting is kinda vague.
to get you closer:
https://wiki.archlinux.org/index.php/ac ... _Power_Off
and how to do a suspend?
Code: Select all
echo -n mem > /sys/power/state
Please add [Solved] to your thread title if the solution was found.
- francois
- Contributor
- Posts: 6316
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: Enable suspend on lid close?
He is talking about the power button that performs automatically a shutdown of the os under porteus. This is one of its great features. 8)Ed_P wrote:phhpro wrote:What I usually do, is to hit the appropiate button on the keyboard.What button are you referring to that hibernates the system? Or saves the system's changes then shuts the laptop down? Your posting is kinda vague.
Prendre son temps, profiter de celui qui passe.
Re: Enable suspend on lid close?
...
Last edited by phhpro on 03 Feb 2016, 23:43, edited 1 time in total.
- francois
- Contributor
- Posts: 6316
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: Enable suspend on lid close?
... that performs automatically a shutdown of the os under porteus. ... it should save your current desktop data. 

Prendre son temps, profiter de celui qui passe.
- Ed_P
- Contributor
- Posts: 7678
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.0 ISO
- Location: Western NY, USA
Re: Enable suspend on lid close?
fanthom wrote:i have given you a fishing rod and not a fish itself. dont be lazy and read linked doc then create proper action in your /etc/acpi/acpi_handler.sh file.

Thank you fanthom.fanthom wrote:to get you closer:
https://wiki.archlinux.org/index.php/ac ... _Power_Off
and how to do a suspend?Code: Select all
echo -n mem > /sys/power/state

I think you're right neighbor.francois wrote:He is talking about the power button that performs automatically a shutdown of the os under porteus. This is one of its great features. 8)
I suspected you were referring to the power button, rather than a key, but it doesn't save the session or the save.dat file updates. The Fn+ keys do hibernate Windows sessions but have no effect on Porteus.phhpro wrote:@ed_p: The power button is one way. Depending your hardware, there may be a special button or key-combo specifically for that purpose. Usually you'd have to hit the FN key together with the special key, at least on Dell and HP. Dell even prints Hibernate on the F1 key, so hitting FN+F1=Hibernate. I find the power button a lot easier
Ed
- brokenman
- Site Admin
- Posts: 6104
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
- Contact:
Re: Enable suspend on lid close?
A little off topic but on my system sleep & hibernate are borked. Some ACPI problem. Works fine on my wife's laptop.
Since i am usually in the terminal i shut down using: init 0
In Porteus -v3.0rc1 my system goes down in less than 3 seconds! To boot up is less than 20 seconds.
This sounds good, but the other night i was tired and after 6 hours of coding i mindlessly typed the shutdown command before saving my work. I realized i hadn't saved as my finger was falling helplessly towards the enter button. Time slowed down for a brief second and my catlike reflexes kicked into action. My finger clipped the enter button, and i blinked twice. Too late, all was lost. Damn you Pooorteusss!
Since i am usually in the terminal i shut down using: init 0
In Porteus -v3.0rc1 my system goes down in less than 3 seconds! To boot up is less than 20 seconds.
This sounds good, but the other night i was tired and after 6 hours of coding i mindlessly typed the shutdown command before saving my work. I realized i hadn't saved as my finger was falling helplessly towards the enter button. Time slowed down for a brief second and my catlike reflexes kicked into action. My finger clipped the enter button, and i blinked twice. Too late, all was lost. Damn you Pooorteusss!
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.