Shutdown on laptop lid closure

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

Shutdown on laptop lid closure

Postby thomaslindvig » Fri Jan 05, 2018 8:02 am

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: 985
Joined: Sat Aug 27, 2011 5:44 pm
Location: Sierra Vista, Arizona USA
Contact:

Re: Shutdown on laptop lid closure

Postby Rex Bouwense » Fri Jan 05, 2018 4:51 pm

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
Lubuntu 16.04

thomaslindvig
Posts: 2
Joined: Fri Jan 05, 2018 7:49 am

Re: Shutdown on laptop lid closure

Postby thomaslindvig » Fri Jan 05, 2018 5:53 pm

My LXDE can only suspend after inactivity...

The display tab is only for the screen

Rex Bouwense
Posts: 985
Joined: Sat Aug 27, 2011 5:44 pm
Location: Sierra Vista, Arizona USA
Contact:

Re: Shutdown on laptop lid closure

Postby Rex Bouwense » Fri Jan 05, 2018 9:10 pm

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
Lubuntu 16.04


Return to “General Help”

Who is online

Users browsing this forum: No registered users and 5 guests