[FreeBSD] Xorg screen resolution

Discussions about using non Windows and Linux guests such as FreeBSD, DOS, OS/2, OpenBSD, etc.
Post Reply
martinrame
Posts: 5
Joined: 14. Apr 2009, 02:11
Primary OS: MS Windows XP
VBox Version: PUEL
Guest OSses: linux, freebsd, windows2003

[FreeBSD] Xorg screen resolution

Post 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.
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: PUEL
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Re: [FreeBSD] Xorg screen resolution

Post 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.
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
martinrame
Posts: 5
Joined: 14. Apr 2009, 02:11
Primary OS: MS Windows XP
VBox Version: PUEL
Guest OSses: linux, freebsd, windows2003

Re: [FreeBSD] Xorg screen resolution

Post by martinrame »

Thanks baf! it worked!.
Ace Cooper
Posts: 1
Joined: 18. Jul 2009, 16:35
Primary OS: MS Windows XP
VBox Version: PUEL
Guest OSses: FreeBSD, Windows XP

Re: [FreeBSD] Xorg screen resolution

Post by Ace Cooper »

Thank you very much. You reply cured my week-long headache with the resolution configuration on virtual FreeBSD 7.2.
khentiamentiu
Posts: 4
Joined: 30. Jun 2011, 07:38
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: WindowsXP

Re: [FreeBSD] Xorg screen resolution

Post by khentiamentiu »

What a GREAT set of instructions! This worked like a charm. Thank you so much!
lamobot
Posts: 2
Joined: 17. Jul 2015, 01:52

Re: [FreeBSD] Xorg screen resolution

Post by lamobot »

Thanks!!!
Post Reply