0

In TTY3 I use a simple window manager as my main working area, but sometimes I need to test stuff in a full Gnome environment, so I use it on TTY1, just as the default on a clean Ubuntu install.

But each time I switch from TTY1 to TTY3 and then back again, I have to deal with the GDM lock screen. Note this is not affected by elapsed time.

It is very frustrating because it takes several seconds for the lock screen to show up in the first place (related), and then after entering password there is still another couple of seconds delay until I get an usable Gnome session.

How to disable lock screen when switching away from the TTY where Gnome is running?

1 Answers1

1

Hm, I can't reproduce this exactly, but you can unlock your session with

loginctl unlock-session

so you could do this, before switching TTYs, in the current session

sleep 5 && loginctl unlock-session

Robert Riedl
  • 4,351