Actions

VirtualBox/Higher Screen Resolution without installing VirtualBox Guest Additions

From Whonix

< VirtualBox

Higher Screen Resolution without installing VirtualBox guest additions[edit]

This is still experimental. As in tested by few people. You should always be able to undo these changes. Doesn't hurt to always have a recent backup, just in case. This is an alternative to using VirtualBox Guest Additions for higher screen resolution. See also #Security Considerations.

To get higher screen resolution without installing VirtualBox guest additions, create a file called, say /etc/X11/xorg.conf.d/00-virtualbox-monitor.conf.

If there's no such directory, you need to create it first:

sudo mkdir -p /etc/X11/xorg.conf.d

Open file /etc/X11/xorg.conf.d/00-virtualbox-monitor.conf in an editor with root rights.

(Qubes-Whonix ™: In TemplateVM)

This box uses lxsudo for root privilege escalation and mousepad as editor. These are examples. Other tools could archive the same goal too. If these example tools do not work for you or if you are not using Whonix, please see this link.

If you are using a graphical Whonix or Qubes-Whonix ™ with XFCE, run.

lxsudo mousepad /etc/X11/xorg.conf.d/00-virtualbox-monitor.conf

If you are using a terminal-only Whonix, run.

sudo nano /etc/X11/xorg.conf.d/00-virtualbox-monitor.conf

With the following contents:

Section "Device"
  Identifier "VirtualBox-Device"
  Option "Monitor-default" "VirtualBox-Monitor"
EndSection

Section "Monitor"
  Identifier "VirtualBox-Monitor"
  VendorName "VirtualBox"
  ModelName "VirtualBox"
  HorizSync 1.0 - 1000.0
  VertRefresh 1.0 - 1000.0
  Option "MinClock" "1.0"
  Option "MaxClock" "10000.0"
  Option "Primary" "True"
  Option "PreferredMode" "1600x1200"
EndSection

Section "Screen"
  Identifier "MyScreen"
  Device "VirtualBox-Device"
  Monitor "VirtualBox-Monitor"
EndSection

And restart kdm[1] or reboot.

This will make Whonix ™ come up in 1600x1200 mode by default.

You can change the default mode by changing the "PreferredMode" option in the "Monitor" section. You can dynamically switch modes from the command line with "xrandr --output default --mode [whatever]", and you can see a list of available modes with plain "xrandr".

You can also change screen resolution using the KDE graphical user interface, go to Start Menu → System Settings → Display and Monitor. If you want some screen resolution that is not listed there (e.g. 1440x900), you can can try the next on your host:

vboxmanage setextradata "VM Name" "CustomVideoMode1" "1440x900x32"

If you do not see your Start Menu button anymore (because it is outside the screen), you can start Konsole and manually start System Settings by running systemsettings.

Ubuntu[edit]

If Ubuntu 14.04 has a screen resolution of 640x480 you may be able to get 1024x768 by simply by running xdiagnose and changing any setting under Debug. Marking them all or unmarking "Enable automatic crash reporting", are reported to work. Reboot.

Security Considerations[edit]

  • It might be better not to maximize the Tor Browser window.
  • To prevent accidentally maximizing a window, it is recommend to deactivate the following option: KDE → System Settings → Screen Edges → Uncheck: Maximize Windows by dragging them to the top of the screen.
  • It might also be better not to use the same screen resolution as on your host.

Troubleshooting[edit]

If this doesn't work for you for some reason or if you want to revert these changes, simply delete /etc/X11/xorg.conf.d/00-virtualbox-monitor.conf.

sudo rm /etc/X11/xorg.conf.d/00-virtualbox-monitor.conf

And restart kdm[1] or reboot.

Technical Stuff[edit]

EDID[edit]

By anonymous user.

The reason you can't just get higher resolutions using xrandr "--newmode" and "--addmode" without an xorg.conf file appears to be that VirtualBox is not providing EDID information to the default VESA driver. The driver therefore makes the conservative assumption that it can't drive the "monitor" with the high clock rates needed for larger display sizes. The above config file tells the driver that it can use an effectively infinite range of clock rates.

See VirtualBox get-edid output.

How to use xserver-xorg-video-modesetting?[edit]

Footnotes[edit]

  1. 1.0 1.1
    sudo service kdm stop
    sudo service kdm start

No user support in comments. See Support. Comments will be deleted after some time. Specifically after comments have been addressed in form of wiki enhancements. See Wiki Comments Policy.


Add your comment
Whonix welcomes all comments. If you do not want to be anonymous, register or log in. It is free.


Random News:

Love Whonix and want to help spread the word? You can start by telling your friends or posting news about Whonix on your website, blog or social media.


https | (forcing) onion

Follow: Twitter | Facebook | gab.ai | Stay Tuned | Whonix News

Share: Twitter | Facebook

This is a wiki. Want to improve this page? Help is welcome and volunteer contributions are happily considered! Read, understand and agree to Conditions for Contributions to Whonix ™, then Edit! Edits are held for moderation.

Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP. Whonix ™ is a trademark. Whonix ™ is a licensee of the Open Invention Network. Unless otherwise noted, the content of this page is copyrighted and licensed under the same Freedom Software license as Whonix ™ itself. (Why?)

Whonix ™ is a derivative of and not affiliated with Debian. Debian is a registered trademark owned by Software in the Public Interest, Inc.

Whonix ™ is produced independently from the Tor® anonymity software and carries no guarantee from The Tor Project about quality, suitability or anything else.

By using our website, you acknowledge that you have read, understood and agreed to our Privacy Policy, Cookie Policy, Terms of Service, and E-Sign Consent. Whonix ™ is provided by ENCRYPTED SUPPORT LP. See Imprint.