Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Bodhi
User Name
Bodhi This forum is for the discussion of Bodhi Linux.


  Search this Thread
Old 05-01-2020, 06:32 PM   #1
LQ Newbie
Registered: May 2020
Posts: 2

Rep: Reputation: Disabled
Laptop - Lock Screen on Suspend - Close lid

Hi All,

I have been using Bodhi for a number of years now. When I first installed it on Macbook Air(2010) I had an issue with the screen not locking when the lid was closed and the system suspended.

Somehow I fixed (kid of) the above behaviour but I cannot remember how.

I have now installed Bodhi 5.1.0 on a Dell Latitude E7450. I am experiencing the same behaviour. I am able to lock the screen with ctrl + alt + l. I can also lock the screen with '/usr/bin/enlightenment_remote -desktop-lock' at the CLI.

Could anybody point me in the right direction? None of the settings in the Bodhi settings panel, such as lock on suspend, have any effect.

I remember vaguely that systemd was handling the lid close and I had to set HandleLidSwitch=ignore in /etc/systemd/logind.conf. I have tried this but it appears that the lid close it not recognised at all if I do this despite the ACPI settings in Bodhi.

Thanks in advance,

Old 05-01-2020, 06:54 PM   #2
Senior Member
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 4,533

Rep: Reputation: 806Reputation: 806Reputation: 806Reputation: 806Reputation: 806Reputation: 806Reputation: 806
In general, it may also be necessary to check the desktop environment configuration as well. I'm not a Bodhi user, but see if this helps...
Old 05-02-2020, 01:33 AM   #3
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi 5 (Ubuntu 18.04)
Posts: 474

Rep: Reputation: Disabled
try lock on suspend?
Attached Thumbnails
Click image for larger version

Name:	shot-2020-05-01_23-32-13.jpg
Views:	13
Size:	86.2 KB
ID:	33145  
1 members found this post helpful.
Old 05-02-2020, 08:30 AM   #4
LQ Newbie
Registered: May 2020
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks both.

I have ticked lock on suspend. The computer would lock on suspend without issue just not when closing the lid. The computer locked correctly when screen blanking or pressing ctrl + alt + l.

I have resolved the issue. The problem was, I think, that systemd was handling the lid close and suspending the laptop. I have set that to ignore in the settings now. I did try, before doing this, getting systemd to run the command to lock the screen but could not figure it out.

I then installed ACPID after which I could see that the lid switch button was detected by the system. Bodhi seetings were to suspend on lid close but initially the system did not pick up the lid close. After a reboot it started to pick up the lid close and then suspend the system and lock the screen.


1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is my network card bypassing "ignore lid" settings, because download still halts when I close lid? winger9 Linux - Laptop and Netbook 5 12-11-2019 04:34 AM
Both Lock and Suspend on Laptop Lid Close - Looking for command line option joozooh Bodhi 3 11-19-2018 07:00 PM
disable suspend when I close the laptop lid lindylex Debian 5 04-14-2009 08:53 AM
Suspend to Disk problem when I close my laptop lid xbaez Mandriva 0 06-23-2004 08:41 AM > Forums > Linux Forums > Linux - Distributions > Bodhi

All times are GMT -5. The time now is 06:51 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration