Xfce Forum

Sub domains
 

You are not logged in.

#1 2021-06-18 10:45:55

jt1122
Member
Registered: 2021-03-26
Posts: 240

Power management before login - lightdm

Hi,

I'm using Sparky rolling (=debian testing) with xfce & lightdm as the login manager.

It is possible to enable power-management at the login screen (before a login is made) so the machine would suspend if there was no login within a specified time?.

I have this setup in my user account but I'm referring to the pre-login phase.

Thanks

Offline

#2 2021-06-18 14:54:37

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,025

Re: Power management before login - lightdm

The thing to understand is that Xfce is a userland environment - meaning that it only is in effect after someone has logged in. The solution you are looking for would need to involve lightdm directly (not Xfce). Here is a post that shows how that might be done.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2021-06-18 15:16:24

jt1122
Member
Registered: 2021-03-26
Posts: 240

Re: Power management before login - lightdm

Great, thanks.

Offline

#4 2021-06-22 15:41:58

sh4tr
Member
Registered: 2014-03-20
Posts: 32

Re: Power management before login - lightdm

You could have a simple bash script check every so often if your laptop[?] has power and if not how much battery it has left and if less than N power off.

Offline

Board footer

Powered by FluxBB