You are not logged in.

#1 2016-06-03 08:27:43

ghorvath
Member
Registered: 2015-10-01
Posts: 161

[SOLVED] Lock screen does not work

On my mother-in-laws machine I set up bl such that it would automatically log in as her user and even if the screen goes blank it would not lock the screen. The first is done by having in /etc/lightdm/lightdm.conf.bunsen this:

greeter-hide-users=false
autologin-user=mother-in-laws-username
autologin-user-timeout=0

(Of course the first line has nothing to do with autologin, I am just giving it as I changed that, as well.)
The second I did by copying /etc/xdg/autostart/light-locker/light-locker.desktop to ~/.config/autostart/ and added this line in the end

Hidden=true

(I read it in one of the cb or bl threads, but I cannot find now in which one.)

So now if screen blanks after 10 minutes and then mouse is moved, light-locker does not lock the screen and does not ask for a password (perfect). However, now for this autologin user the manual lock screen does not work either, neither the W+L keycombination, nor the "Lock Screen" from menu. Is there a way I can make it work "manually" again, but not automatically?

Thank you.

Last edited by ghorvath (2016-06-05 07:11:49)

Offline

#2 2016-06-03 19:17:43

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: [SOLVED] Lock screen does not work

ghorvath wrote:

the manual lock screen does not work either, neither the W+L keycombination, nor the "Lock Screen" from menu. Is there a way I can make it work "manually" again, but not automatically?

Remove the "Hidden=true" line that you added to ~/.config/autostart/light-locker.desktop and instead change the "Exec=" line to:

Exec=/usr/bin/light-locker --lock-after-screensaver=0

This will autostart light-locker so that it can be used manually but prevent it from locking the screen automatically.
smile

Offline

#3 2016-06-03 19:22:33

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: [SOLVED] Lock screen does not work

^ nevermind, ninja by HoaS of course!

So if you run from the terminal,

light-locker -l

This doesn't lock the screen anymore?  What about if you switch TTY's  (ctl + alt + f2  or f3)

Last edited by Horizon_Brave (2016-06-03 19:23:20)


"I have not failed, I have found 10,000 ways that will not work" -Edison

Offline

#4 2016-06-05 07:11:32

ghorvath
Member
Registered: 2015-10-01
Posts: 161

Re: [SOLVED] Lock screen does not work

@HoaS Thanks, it worked perfectly.

@Horizon_Brave This command was not recognized (the -l part). I may have mistyped something, but the other solution worked, anyway.

Thanks!

Offline

#5 2016-06-07 08:50:09

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,657
Website

Re: [SOLVED] Lock screen does not work

Head_on_a_Stick wrote:

...~/.config/autostart/light-locker.desktop ... change the "Exec=" line to:

Exec=/usr/bin/light-locker --lock-after-screensaver=0

This will autostart light-locker so that it can be used manually but prevent it from locking the screen automatically.
smile

@HOAS is this advice posted in a how-to or tutorial anywhere here? If not, maybe it would be a good candidate for a FAQ? Over-zealous auto-locking seems to be a regular complaint.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#6 2016-06-07 13:01:13

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,143
Website

Re: [SOLVED] Lock screen does not work

johnraff wrote:

Over-zealous auto-locking seems to be a regular complaint.

Agreed, this area need a little more love.


I don't care what you do at home. Would you care to explain?

Offline

#7 2016-06-07 18:20:12

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: [SOLVED] Lock screen does not work

johnraff wrote:
Head_on_a_Stick wrote:

...~/.config/autostart/light-locker.desktop ... change the "Exec=" line to:

Exec=/usr/bin/light-locker --lock-after-screensaver=0

This will autostart light-locker so that it can be used manually but prevent it from locking the screen automatically.
smile

@HOAS is this advice posted in a how-to or tutorial anywhere here?

It is now:
https://forums.bunsenlabs.org/viewtopic.php?pid=29320

smile

Offline

#8 2016-06-08 00:47:00

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,657
Website

Re: [SOLVED] Lock screen does not work

cool


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

Board footer

Powered by FluxBB