27

When I have virtualbox in full screen, on Unity it always locks after 5 minutes, but in Gnome3 (and even Unity7) it shows a popup message: lock was blocked by an application.

Can I force Unity or Gnome3 to always lock regardless of FULL-SCREENED applications?

  • I found [a commit](https://bug689106.bugzilla-attachments.gnome.org/attachment.cgi?id=235909) that implies a code fix "XXX: another option is to kick the user into the gdm loginscreen, where we're not affected by grabs". Grepping the journal using `journalctl -rb | grep -n3 "Lock was"` shows "gnome-shell[1980]: pushModal: invocation of begin_modal failed". – robocat Dec 05 '18 at 01:47
  • I also get this message, what does lock mean? – Nir Mar 15 '21 at 11:02

3 Answers3

1

To enable screen lock when VirtualBox guest is in full screen, go to VirtualBox Manager -> File -> Preferences -> Input and switch off "Auto Capture Keyboard". enter image description here

Click OK and run guest OS in full screen mode. Screen should auto lock now, and without annoying notification "lock was blocked by application". I'm using Ubuntu 20.04 LTS with VirtualBox 6.1.26.

PS: Is security issue fixed? - Yes, screen lock is working now. Whether usability is lowered? - Yes, a little. This is a kind of trade-off between security and usability. You choose.

0

It's a known bug that has other Gnome 3 distros, perhaps it has bitten Ubuntu too... https://bugzilla.redhat.com/show_bug.cgi?id=1369880

ciampix
  • 473
  • 3
  • 11
  • it started doing this to me recently - it didn't before, and I can't think what i would have changed that would have caused this! – Michael Jun 18 '20 at 21:39
  • That bug is closed, and was closed when this answer was posted. – Phil Jun 01 '21 at 02:30
0

This is by design. If the virtual box has captured you mouse and keyboard; then your gnome locked your screen... you would not be able to log in again. This would fall more under virtualbox as they would need to release the cursor and keyboard given certain events.

SLS
  • 168
  • 12