[FreeBSD] Xorg screen resolution

Discussions about using non Windows and Linux guests such as FreeBSD, DOS, OS/2, OpenBSD, etc.

[FreeBSD] Xorg screen resolution

Postby martinrame » 1. Jun 2009, 19:59

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.
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

Postby baf » 1. Jun 2009, 23:51

Yes you can.

In /etc/X11/xorg.conf or wherever you have it
In
Section "Monitor"
Add the following two lines:
Code: Select all   Expand viewCollapse view
        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   Expand viewCollapse view
        SubSection "Display"
                Viewport   0 0
                Depth     16
                Modes "1144x696"
        EndSubSection

Also at the top of the "Screen" section add
Code: Select all   Expand viewCollapse view
      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".
baf
Volunteer
 
Posts: 829
Joined: 27. Sep 2008, 06:18
Location: Luleå or Skellefteå, Sweden
Primary OS: Mac OS X Leopard
VBox Version: PUEL
Guest OSses: linux,xp,win7

Re: [FreeBSD] Xorg screen resolution

Postby martinrame » 2. Jun 2009, 03:59

Thanks baf! it worked!.
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

Postby Ace Cooper » 18. Jul 2009, 16:38

Thank you very much. You reply cured my week-long headache with the resolution configuration on virtual FreeBSD 7.2.
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

Postby khentiamentiu » 10. Jul 2011, 07:31

What a GREAT set of instructions! This worked like a charm. Thank you so much!
khentiamentiu
 
Posts: 4
Joined: 30. Jun 2011, 07:38
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: WindowsXP


Return to Other Guests

Who is online

Users browsing this forum: No registered users and 2 guests