Shutdown on laptop lid closure

Please post all general support questions for LXDE here.
Locked
thomaslindvig
Posts: 2
Joined: Fri Jan 05, 2018 7:49 am

Shutdown on laptop lid closure

Post by thomaslindvig »

Is it possible to set the computer to shutdown / shut off on laptop lid closure? Right now I can only suspend in LXDE, which means it takes power, and on top of that there's black screen when I try to wake up, it can't wake up. My PC is so fast, that shutdown is ok with me.
Rex Bouwense
Posts: 1093
Joined: Sat Aug 27, 2011 5:44 pm
Location: Sierra Vista, Arizona USA
Contact:

Re: Shutdown on laptop lid closure

Post by Rex Bouwense »

Welcome to the LXDE forums. I am not sure if a shut down can be configured for a laptop lid closure but you can configure the computer to shut down after inactivity using the xfce power manager which is the default program installed. Check the display tab under Power Manager Settings.
Rex
thomaslindvig
Posts: 2
Joined: Fri Jan 05, 2018 7:49 am

Re: Shutdown on laptop lid closure

Post by thomaslindvig »

My LXDE can only suspend after inactivity...

The display tab is only for the screen
Rex Bouwense
Posts: 1093
Joined: Sat Aug 27, 2011 5:44 pm
Location: Sierra Vista, Arizona USA
Contact:

Re: Shutdown on laptop lid closure

Post by Rex Bouwense »

I need to read the question better. Open the LXTerminal and enter

Code: Select all

sudo leafpad /etc/systemd/logind.conf
Find out the line #HandleLidSwitch=suspend, remove the # and change it to:
HandleLidSwitch=poweroff
Save the file and restart the service or just restart your laptop to apply changes.
Rex
Locked