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?

LoremIpsum
  • 71
  • 6
  • Questions:Is it your intent to keep lock screen during normal operations? If not does this also happen when you completly disable the usage of lock screen? and if that is the case would that suffice as an answer? – Rinzwind Jul 17 '22 at 18:32
  • [On tty2 you have Gnome (unlocked)](https://askubuntu.com/a/965201/349837).. – Pablo Bianchi Jul 22 '22 at 14:03
  • @Rinzwind Yes, I would be happy disabling lock screen. – LoremIpsum Jul 23 '22 at 23:08

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,321
  • 16
  • 37