Page 1 of 1

[FreeBSD] Xorg screen resolution

Posted: 1. Jun 2009, 19:59
by martinrame
Hi, I successfully installed FreeBsd 8.0 as Guest in a VirtualBox 2.2.4 Win XP host. It works perfect, but I can't configure Xorg resolution above 800x600.

In /etc/X11/xorg.conf I added a mode for 1024x768, but when I startx, in XFCE's configuration I can only choose 800x600 or 640x480.

I know there isn't a VBoxGuestAdditions for FreeBSD, but can I use at least Vesa at 1024x768?

Thanks in advance.

Re: [FreeBSD] Xorg screen resolution

Posted: 1. Jun 2009, 23:51
by baf
Yes you can.

In /etc/X11/xorg.conf or wherever you have it
In
Section "Monitor"
Add the following two lines:

Code: Select all

        HorizSync     31-80
        VertRefresh   30-100
To be even nicer you can define your own vesa-mode exactly as you want it.
From your host run:
VBoxManage setextradata your_machines_name CustomVideoMode1 <width>x<height>x<BPP>
my example:
VBoxManage setextradata Freebsd CustomVideoMode1 1144x696x16

Then in xorg.conf under the correct bit-depth (16)
add your mode:

Code: Select all

        SubSection "Display"
                Viewport   0 0
                Depth     16
                Modes "1144x696"
        EndSubSection
Also at the top of the "Screen" section add

Code: Select all

      DefaultDepth  16
It should be possible to replace 16 with 24 but I have not managed to do that yet.

Re: [FreeBSD] Xorg screen resolution

Posted: 2. Jun 2009, 03:59
by martinrame
Thanks baf! it worked!.

Re: [FreeBSD] Xorg screen resolution

Posted: 18. Jul 2009, 16:38
by Ace Cooper
Thank you very much. You reply cured my week-long headache with the resolution configuration on virtual FreeBSD 7.2.

Re: [FreeBSD] Xorg screen resolution

Posted: 10. Jul 2011, 07:31
by khentiamentiu
What a GREAT set of instructions! This worked like a charm. Thank you so much!

Re: [FreeBSD] Xorg screen resolution

Posted: 30. Jul 2015, 21:13
by lamobot
Thanks!!!