Prevent Ubuntu 14.04 from locking on virtualbox if Windows is locked

7

1

I have installed an Ubuntu 14.04 VM with Virtualbox on Windows7,

When I lock my Windows session, then get back to it, Ubuntu session inside the VM is also locked,

How can I prevent Ubuntu VM from locking? (In any situation)

YOBA

Posted 2015-09-25T14:54:52.363

Reputation: 185

I've found that pressing [Win]+[L], when my Ubuntu session is focused in VmWare, locks both Ubuntu and Windows. My shortcut key in Ubuntu for locking is listed as [Ctrl]+[Alt]+[L] though.. Maybe you have problems with that as well. – thomasa88 – 2016-06-09T06:25:37.963

Answers

6

As thomasa88 suggests, the Win+L command to lock your screen will be received by both your host OS (Windows 7) and your guest OS (Ubuntu).

You have two options to solve this:

  1. While in your guest OS and wishing to lock your computer screen, navigate via the GUI to the host OS taskbar and lock the computer via the "Lock" option. This will prevent your guest OS from also locking.
  2. Change the keyboard shortcut for screen-locking in your guest OS. Follow this solution for Ubuntu: Remap Ubuntu keyboard keys

Here is a screenshot of the final step:

enter image description here

(I don't currently have sufficient reputation to add a comment, so I'm providing this answer.)

Ian Campbell

Posted 2015-09-25T14:54:52.363

Reputation: 76

1

Go to:

Top right corner > System Settings > Brightness and Lock, and adjust the settings according to your needs.

This is done inside your VM.

simplegamer

Posted 2015-09-25T14:54:52.363

Reputation: 370

Thanks for your answer, I've already tried that, but it didn't work. – YOBA – 2015-09-25T20:09:03.533