LightDM breaks power management

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
pcspecialistpdx
Level 1
Level 1
Posts: 49
Joined: Fri Jun 10, 2016 6:19 pm

LightDM breaks power management

Post by pcspecialistpdx »

I don't mind LightDM except it breaks power management. No longer have Shutdown option for When power button is pressed or when the battery is critical. The way I figured this out was, I reinstalled 18.1 and then updated to 18.2 and I still had the options until I followed the steps to replace MDM with LightDM.
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.
deepakdeshp
Level 20
Level 20
Posts: 12333
Joined: Sun Aug 09, 2015 10:00 am

Re: LightDM breaks power management

Post by deepakdeshp »

I have installed LigtDM, pressing the power button still gives me the shutdown, reboot options.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
pcspecialistpdx
Level 1
Level 1
Posts: 49
Joined: Fri Jun 10, 2016 6:19 pm

Re: LightDM breaks power management

Post by pcspecialistpdx »

deepakdeshp, that's because you have it set to ask. My issue is the shutdown option (instead of ask) is no longer available.

I just did a clean install of 18.2 and now have the suspend option, but still no shutdown unless I have it set to ask. Still can't have it shutdown with a critically low battery but I can get it to default to suspend or ask (which will allow me to shutdown, but I want it to do it automatically).
Last edited by pcspecialistpdx on Sun Aug 13, 2017 12:04 pm, edited 1 time in total.
pcspecialistpdx
Level 1
Level 1
Posts: 49
Joined: Fri Jun 10, 2016 6:19 pm

Re: LightDM breaks power management

Post by pcspecialistpdx »

Everything seems fine when LightDM is replaced with MDM so I think I'll stick with MDM until 18.3 is out

Code: Select all

sudo apt install mdm xscreensaver

sudo apt remove slick-greeter lightdm lightdm-settings apparmor
yes, you need xscreensaver if you have MDM! If "Lock screen when system is going for sleep" is checked and you don't have xscreensaver, you are not getting back in.
pcspecialistpdx
Level 1
Level 1
Posts: 49
Joined: Fri Jun 10, 2016 6:19 pm

Re: LightDM breaks power management

Post by pcspecialistpdx »

Here's an example, I do not have this option when using LightDM
General.png
MtnDewManiac
Level 6
Level 6
Posts: 1491
Joined: Fri Feb 22, 2013 5:18 pm
Location: United States

Re: LightDM breaks power management

Post by MtnDewManiac »

pcspecialistpdx wrote:yes, you need xscreensaver if you have MDM! If "Lock screen when system is going for sleep" is checked and you don't have xscreensaver, you are not getting back in.
Not necessarily (or this used to be true, at least). You can install slock or i3lock - they are both in our repos, so all you have to do is run Synaptic Package Manager and then type "slock" (sans quotation marks) into the little search box. Both of these things should then appear. i3lock will appear under its name, and slock (short for "screen lock," I suppose) is part of the suckless-tools package.

Not that I have not used either, because I've always "just" used xscreensaver. But I did a web search and these came up multiple times. If you wish to have a simple screen-locker without the (minimal?) overhead of a screen-saver, one of them might be just what you're looking for.

Regards,
MDM
Mint 18 Xfce 4.12.

If guns kill people, then pencils misspell words, cars make people drive drunk, and spoons made Rosie O'Donnell fat.
marcin

Re: LightDM breaks power management

Post by marcin »

Good day

I have a similar situation like pcspecialistpdx. In power manager settings under "When power button is pressed" there is no "shutdown" option. I do not use other options and want the system to shutdown immediately after pressing the button.

This seems to have changed after I upgraded from mdm to lightdm. It was working ok before the update.

Is there anyway to fix this? Or do I have to go back to mdm?
Using Linux Mint XFCE 18.2 upgraded from 18.1.

Kind regards
Marcin
mickeymops
Level 1
Level 1
Posts: 9
Joined: Sat Dec 28, 2013 5:56 pm

Re: LightDM breaks power management

Post by mickeymops »

Thanks for the info, screen lock is now working again with mdm xscreensaver installed and light dm removed
pcspecialistpdx
Level 1
Level 1
Posts: 49
Joined: Fri Jun 10, 2016 6:19 pm

Re: LightDM breaks power management

Post by pcspecialistpdx »

Still broken in 18.3 beta, let's hope it is fixed before 18.3 release.
deepakdeshp
Level 20
Level 20
Posts: 12333
Joined: Sun Aug 09, 2015 10:00 am

Re: LightDM breaks power management

Post by deepakdeshp »

Code: Select all

sudo shutdown 0
will bring down your system
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
pcspecialistpdx
Level 1
Level 1
Posts: 49
Joined: Fri Jun 10, 2016 6:19 pm

Re: LightDM breaks power management

Post by pcspecialistpdx »

deepakdeshp wrote:

Code: Select all

sudo shutdown 0
will bring down your system
I fail to see how that has anything to do with this topic. How is that going to automatically power down the system when the battery is critical or power it down without prompting when you press the power, sleep, or hibernate button?
deepakdeshp
Level 20
Level 20
Posts: 12333
Joined: Sun Aug 09, 2015 10:00 am

Re: LightDM breaks power management

Post by deepakdeshp »

pcspecialistpdx wrote:
deepakdeshp wrote:

Code: Select all

sudo shutdown 0
will bring down your system
I fail to see how that has anything to do with this topic. How is that going to automatically power down the system when the battery is critical or power it down without prompting when you press the power, sleep, or hibernate button?
It is another way to shutdown your system cleanly using terminal
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
pcspecialistpdx
Level 1
Level 1
Posts: 49
Joined: Fri Jun 10, 2016 6:19 pm

Re: LightDM breaks power management

Post by pcspecialistpdx »

I just did a clean install of 18.3 and the problem still exists. Replacing LightDM with MDM fixes the problem as it did with 18.2.
Locked

Return to “Xfce”