{{Header}} {{Title|title= Higher Screen Resolution without VirtualBox Guest Additions }} {{#seo: |description=This wiki page provides a guide on how to achieve higher screen resolution in VirtualBox without installing VirtualBox Guest Additions inside the VM. |image=Anaglyph-102548640.jpg }} [[image:Anaglyph-102548640.jpg|thumb]] {{intro| This wiki page provides a guide on how to achieve higher screen resolution in VirtualBox without installing VirtualBox Guest Additions inside the VM. }} = Introduction = {{mbox | type = notice | image = [[File:Ambox_notice.png|40px|alt=Info]] | text = This procedure is experimental and has not been widely tested. }} This procedure is an alternative to using [[VirtualBox/Guest Additions|VirtualBox Guest Additions]] for a higher screen resolution. Before attempting this procedure it is recommended to have a recent backup in case problems are encountered. However, it should be possible to undo these changes. = Higher Screen Resolution without VirtualBox Guest Additions = To achieve a higher screen resolution without installing VirtualBox guest additions, complete the following steps. {{Box|text= '''1.''' Create a relevant configuration file. For example, create a file called /etc/X11/xorg.conf.d/00-virtualbox-monitor.conf. Create the directory if it does not already exist. {{CodeSelect|code= sudo mkdir -p /etc/X11/xorg.conf.d }} '''2.''' Open the configuration file in an editor with root rights. {{CodeSelect|code= sudoedit /etc/X11/xorg.conf.d/00-virtualbox-monitor.conf }} '''3.''' Add the following contents. {{CodeSelect|code= 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 }} '''4.''' Run restart the display manager reboot. {{project_name_long}} will now be set to 1600x1200 mode by default. '''5.''' ''Optional:'' Change the default resolution mode. If a default resolution mode other than 1600x1200 is preferred, then change the "{{Code2|PreferredMode}}" option in the "{{Code2|Monitor}}" section. It is possible to dynamically switch modes from the command line with "{{Code2|xrandr --output default --mode [resolution value]}}". To view a list of available modes, run "{{Code2|xrandr}}". '''6.''' ''Optional:'' Change the screen resolution using the Xfce graphical user interface. * Start MenuSystem ToolsDisplay. If the preferred screen resolution is not listed (e.g. 1440x900), try running this command on the host. {{CodeSelect|code= vboxmanage setextradata "VM Name" "CustomVideoMode1" "1440x900x32" }} If the Start Menu button is not visible (because it is outside the screen), then start Konsole and manually start System Settings by running {{Code2|systemsettings}}. }} ==Ubuntu== {{mbox | type = notice | image = [[File:Ambox_notice.png|40px|alt=Info]] | text = This procedure was recommended for an earlier version of Ubuntu (14.04). Functionality in later versions has not been confirmed (e.g. Ubuntu 20.04). }} If Ubuntu has a screen resolution of 640x480, it may be possible to achieve 1024x768 by: # Running ''xdiagnose''. # Changing any setting under Debug -- marking them all or unmarking "Enable automatic crash reporting" were previously reported to work. # Reboot. = Troubleshooting = If this procedure does not work or you want to revert the changes, delete /etc/X11/xorg.conf.d/00-virtualbox-monitor.conf. {{CodeSelect|code= sudo rm /etc/X11/xorg.conf.d/00-virtualbox-monitor.conf }} Next, restart the display manager or reboot. = Technical Information = == EDID == An anonymous user stated:
The reason you can't just get higher resolutions using {{Code2|xrandr}} "{{Code2|--newmode}}" and "{{Code2|--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.
Also see: [[Protocol-Leak-Protection_and_Fingerprinting-Protection#VirtualBox|VirtualBox get-edid output]]. == How to use xserver-xorg-video-modesetting? == Questions directed to the maintainers of the [https://packages.debian.org/{{Stable project version based on Debian codename}}/xserver-xorg-video-modesetting xserver-xorg-video-modesetting] package and the [https://lists.debian.org/debian-user/2013/05/msg00745.html debian-user mailing list] went unanswered. Interested readers might find the following resources helpful: * [https://wiki.gentoo.org/wiki/Xorg/Configuration#Kernel_modesetting Gentoo wiki: Kernel modesetting] * [https://wiki.debian.org/KernelModesetting Debian wiki: Kernel ModeSetting] * [https://manpages.debian.org/modesetting Debian manpages: ModeSetting] = Footnotes = {{reflist|close=1}} {{Footer}} [[Category:Documentation]]