Hi,
I recently installed LMDE with Cinnamon and observed some strange behaviour concerning suspend.
When logged in as a user, suspend when closing laptop-lid works as expected.
But when nobody is logged in, i.e. the log in screen is visible, nothing happens when closing the laptop-lid.
Could someone assist in fixing this issue?
Suspend on lid-close
Forum rules
LMDE 2 has reached end of support as of 1-1-2019
LMDE 2 has reached end of support as of 1-1-2019
Suspend on lid-close
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Suspend on lid-close
When nobody is logged in, it's MDM that's active, not Cinnamon. You may try another display manager (e.g. LightDM) for experiment.firefexx wrote:But when nobody is logged in, i.e. the log in screen is visible, nothing happens when closing the laptop-lid.
Re: Suspend on lid-close
Thank you for your answer, but lightdm doesn't suspend on lid-close, too.
lightdm works for me under Fedora but not with LMDE.
lightdm works for me under Fedora but not with LMDE.
Re: Suspend on lid-close
This problem was annoying me too, so I did a bit of looking around. Linux mint uses the "mint display manager" aka MDM and I found that there are some terminal commands and config files which will solve this for you.firefexx wrote:Hi,
I recently installed LMDE with Cinnamon and observed some strange behaviour concerning suspend.
When logged in as a user, suspend when closing laptop-lid works as expected.
But when nobody is logged in, i.e. the log in screen is visible, nothing happens when closing the laptop-lid.
Could someone assist in fixing this issue?
'logind' is the command line tool which handles the login screen. It has a config file here /etc/systemd/logind.conf and you can read about all the different options in a terminal window by typing
Code: Select all
man logind.conf
Code: Select all
HandlePowerKey=suspend
HandleSuspendKey=ignore
HandleHibernateKey=ignore
HandleLidSwitch=suspend
ignore, poweroff, reboot, halt, kexec, suspend, hibernate, hybrid-sleep and lock
You will need to edit the conf file as root, so type the following:
Code: Select all
sudo pico /etc/systemd/logind.conf
- Pjotr
- Level 24
- Posts: 20086
- Joined: Mon Mar 07, 2011 10:18 am
- Location: The Netherlands (Holland) 🇳🇱
- Contact:
Re: Suspend on lid-close
@chrisonmint: thanks for this cool solution!
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.