Sysadmin > FreeBSD > X11onFreeBSD > CorrectResolutioninVirtualBox

Correct resolution in VirtualBox

I have to set the correct resolution in the config. I was fixed to a 640x480 resolution.

With xrandr i can view the possible resolutions and with xrandr -s 1920x1056 i cloud set it manually, fwvm2 did not adapt fully to the new resolution.

Therefor i have a xorg.config.

/usr/local/etc/X11/xorg.conf.d/monitor.conf

Section "ServerLayout"
        Identifier     "Default Layout"
        Screen      0  "Screen0" 0 0
        #InputDevice    "Mouse0" "CorePointer"
        #InputDevice    "KeyboardDefaults" "CoreKeyboard"
EndSection

Section "Modes"
        Identifier      "Custom Modes"
        Modeline "1920x1080" 125.50  1920 1922 1924 1926  1080 1082 1084 1086 -hsync +vsync
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
        UseModes     "Custom Modes"
        Option       "PreferredMode" "1920x1080"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        Identifier  "Card0"
        Driver      "vboxvideo"
        BusID       "PCI:0:2:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes   "1920x1080"
                #Virtual        3840 2160
                #Modes  "1920x1080" "1920x1080" "3840x2136" "3840x2160"
        EndSubSection
EndSection
#[ 17105.104] (II) VBoxVideo(0): Modeline "1920x1056_60.00"x0.0  122.72  1920 1922 1924 1926  1056 1058 1060 1062 (63.7 kHz b)
#[ 17105.563] (II) VBoxVideo(0): Modeline "1920x1600"x60.0  185.59  1920 1922 1924 1926  1600 1602 1604 1606 (96.4 kHz b)
#[ 17105.563] (II) VBoxVideo(0): Modeline "1920x1600"x60.0  185.59  1920 1922 1924 1926  1600 1602 1604 1606 (96.4 kHz b)
#[ 17105.563] (II) VBoxVideo(0): Modeline "1920x1080"x60.0  125.50  1920 1922 1924 1926  1080 1082 1084 1086 (65.2 kHz b)
#[ 17105.564] (II) VBoxVideo(0): Modeline "1920x1600"x60.0  185.59  1920 1922 1924 1926  1600 1602 1604 1606 (96.4 kHz b)
#[ 17105.564] (II) VBoxVideo(0): Modeline "1920x1080"x60.0  125.50  1920 1922 1924 1926  1080 1082 1084 1086 (65.2 kHz b)