qubes-doc/common-tasks/FullScreenMode.md

3.1 KiB

layout title permalink redirect_from
doc FullScreenMode /doc/FullScreenMode/ /wiki/FullScreenMode/

Enabling Full Screen Mode for select VMs

What is full screen mode?

Normally Qubes GUI virtualization daemon restricts the VM from "owning" the full screen, ensuring that there are always clearly marked decorations drawn by the trusted Window Manager around each of the VMs window. This allows the user to easily realize to which domain a specific window belongs. See the screenshots for better understanding.

Why is full screen mode potentially dangerous?

If one allowed one of the VMs to "own" the full screen, e.g. to show a movie on a full screen, it might not be possible for the user to further realize if the applications/VM really "released" the full screen, or does it keep emulating the whole desktop and pretends to be the trusted Window Manager, drawing shapes on the screen that look e.g. like other windows, belonging to other domains (e.g. to trick the user into entering a secret passphrase into a window that looks like belonging to some trusted domain).

Secure use of full screen mode

However, it is possible to deal with full screen mode in a secure way assuming there are mechanisms that can be used at any time to show the full desktop, and which cannot be intercepted by the VM. An example of such q mechanism is the KDE's "Present Windows" and "Desktop Grid" effects, which are similar to Mac's "Expose" effect, and which can be used to immediately detect potential "GUI forgery", as they cannot be intercepted by any of the VM (as the GUID never passes down the key combinations that got consumed by KDE Window Manager), and so the VM cannot emulate those. Those effects are enabled by default in KDE once Compositing gets enabled in KDE (System Settings -> Desktop -> Enable Desktop Effects), which is recommended anyway. By default they are triggered by Ctrl-F8 and Ctrl-F9 key combinations, but can also be reassigned to other shortcuts.

Enabling full screen mode for select VMs

If you want to enable full screen mode for select VMs, you can do that by creating the following entry in the /etc/qubes/guid.conf file in Dom0:

Note: There should be only one VM: {} block in the file (or you will get into problems)

VM: {
  personal: {
    allow_fullscreen = true;
  };
};

The string 'personal' above is exemplary and should be replaced by the actual name of the VM for which you want to enable this functionality.

One can also enable this functionality for all the VMs globally in the same file, by modifying the 'global' section:

global: {
  # default values
  allow_fullscreen = true;
  #allow_utf8_titles = false;
  #secure_copy_sequence = "Ctrl-Shift-c";
  #secure_paste_sequence = "Ctrl-Shift-v";
  #windows_count_limit = 500;
};

Be sure to restart the VM(s) after modifying this file, for the changes to take effect.