3

I recently downloaded and installed a standard Raspbian OS environment on my Pi. On my Ubuntu Laptop, "Logout after inactivity" is a standard setting, which I like a lot.

This is not active on my Pi, and if I do nothing with my Pi for a long period of time, the display screen will go to sleep, but I'm still logged in when I move the mouse.

How can I configure my Pi to power save AND log me out at the same time?

Also more troubling, with my Ubuntu laptop, the hot key combination "Super+L" logs me out. or locks the screen instantly, this feature is not available on my Pi.

Is there a way for me to configure, or add this functionality to my Pi's OS environment? Thank you!

Iam Pyre
  • 161
  • 1
  • 8

2 Answers2

1

There are literally dozens of utilities on Linux which can be used to lock the screen:

  • xscreensaver
  • xautolock
  • lxlock
  • dm-tool
  • etc.

Perhaps xscreensaver is the easiest to set up, as it comes with a graphical config dialog. Install it with sudo apt-get install xscreensaver and don't forget to add it to your lxsession/LXDE-pi/autostart file if you want it to start after every reboot.

Dmitry Grigoryev
  • 28,277
  • 6
  • 54
  • 147
0

I have been looking up and down for lock screen settings. I can't seem to find any way to change the amount of time before it locks the screen. Raspberry Pi devs must properly document this feature. Finally, Here is a way to completely disable it :

NO SCREEN BLANKING, NO POWER SAVE MODE, NO screen lock.(MONITOR STAYS ON ALL THE TIME)

sudo nano ~/.config/lxsession/LXDE-pi/autostart

#Add these lines:
@xset s 0 0
@xset s noblank
@xset s noexpose
@xset dpms 0 0 0

#so it looks like this:
@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xscreensaver -no-splash
@xset s 0 0
@xset s noblank
@xset s noexpose
@xset dpms 0 0 0

#save with 'Ctrl' + 'x' key, then 'y', then 'enter' and then:
sudo reboot

You will reboot and you are done.

Here is another way to configure timeout. May help in your case.

Source: forum

Found this hidden thread recently :)

abhiTronix
  • 144
  • 5