the-cavalry / light-locker

A simple session-locker for lightdm
GNU General Public License v2.0
222 stars 22 forks source link

light-locker suspends the machine instead of going to lightdm #152

Open apoorv569 opened 4 years ago

apoorv569 commented 4 years ago

I'm using Vanilla Arch Linux. I have Xmonad, DWM and Qtile installed, all WM have this problem, so I don't think this is WM specific. I have put light-locker in the autostart section, and have a keybind for light-locker-command -l set to lock the screen, it locks the screen but it doesn't take to the lightdm the monitor turns off I have to move mouse or press a key to wake it up. I want it to go to lightdm and not sleep. how can I do that?

according to this link - http://rogeriodossantos.github.io/MainPage/Linux_-_Disable_Sleep/ I need to add this to /etc/lightdm/lightdm.conf to the [SeatDefaults] section

# don't sleep the screen
 xserver-command=X -s 0 dpms

but there no [SeatDefaults] section in my config, there is however a [Seat:*] section where we specify which greeter we want to use. i added the above lines in this section verbatim, and after reboot lightdm wont show I'm stuck on systemd screen. i had to go to tty2 to comment that line and reboot again to login.

my lightdm config - https://pastebin.com/FvtJw7Kx at line 125-126 i have the above lines added and commented

tehmasterer commented 1 year ago

Did you ever solve this? I have the same issue. I just want my laptop to go to the lockscreen, not lock it and put it to sleep.

apoorv569 commented 1 year ago

Did you ever solve this? I have the same issue. I just want my laptop to go to the lockscreen, not lock it and put it to sleep.

I did but my setup has completely changed since I posted this issue and I am also not using light-locker I am using slock from suckless.

All I can say for now is you need to adjust your DPMS settings so your monitor doesn't go to sleep.

Vinschers commented 1 year ago

I am experiencing the same issue (Arch Linux + dwm). I tried to completely disable DPMS and Screen Saver blanking using xset, but the screen still goes blank and requires user input to display the greeter.

apoorv569 commented 1 year ago

@tehmasterer @Vinschers OK, so I found a way that is working for me. I use,

xset -dpms -k s off

-dpms disables dpms, -k disables lock and s off turns screensaver to off.

I waited for a long time and monitor stays on and doesn't even auto locks.

BTW I use slock and xss-lock -- slock & in my ~/.dwm/autostart.sh file, so if I put system to sleep or if the xset command is not used it will lock and turn the monitor off after some time.