Prevent Ubuntu 14.04 from locking on virtualbox if Windows is locked

7,917

Solution 1

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.)

Solution 2

Go to:

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

This is done inside your VM.

Share:
7,917

Related videos on Youtube

YOBA
Author by

YOBA

Passionate about python

Updated on September 18, 2022

Comments

  • YOBA
    YOBA almost 2 years

    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)

    • thomasa88
      thomasa88 about 8 years
      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.
  • YOBA
    YOBA almost 9 years
    Thanks for your answer, I've already tried that, but it didn't work.