How to set the default resolution of Ubuntu 8.04 to 1024×768 in Virtual PC 2007?

Recommended Videos

Ubuntu : Adding Screen Resolutions
Ubuntu : Adding Screen Resolutions

The following is a step-by-step guide to set the default resolution of Ubuntu to 1024×768 in Virtual PC 2007.

  • Open the ubuntu text editor by navigating to Applications –> Accessories –> Text Editor
  • Copy paste the following into the Ubuntu text editor and Save the file as xorg.conf in your user folder
# xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type “man xorg.conf” at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section “Files”
EndSection

Section “InputDevice”
Identifier “Generic Keyboard”
Driver “kbd”
Option “CoreKeyboard”
Option “XkbRules” “xorg”
Option “XkbModel” “pc105?
Option “XkbLayout” “us”
EndSection

Section “InputDevice”
Identifier “Configured Mouse”
Driver “mouse”
Option “CorePointer”
Option “Device” “/dev/input/mice”
Option “Protocol” “ImPS/2?
Option “ZAxisMapping” “4 5?
Option “Emulate3Buttons” “true”
EndSection

Section “InputDevice”
Driver “wacom”
Identifier “stylus”
Option “Device” “/dev/input/wacom”
Option “Type” “stylus”
Option “ForceDevice” “ISDV4? # Tablet PC ONLY
EndSection

Section “InputDevice”
Driver “wacom”
Identifier “eraser”
Option “Device” “/dev/input/wacom”
Option “Type” “eraser”
Option “ForceDevice” “ISDV4? # Tablet PC ONLY
EndSection

Section “InputDevice”
Driver “wacom”
Identifier “cursor”
Option “Device” “/dev/input/wacom”
Option “Type” “cursor”
Option “ForceDevice” “ISDV4? # Tablet PC ONLY
EndSection

Section “Device”
Identifier “Generic Video Card”
Driver “vesa”
BusID “PCI:0:8:0?
EndSection

Section “Monitor”
Identifier “Generic Monitor”
Option “DPMS”
HorizSync 30-70
VertRefresh 50-160
EndSection

Section “Screen”
Identifier “Default Screen”
Device “Generic Video Card”
Monitor “Generic Monitor”
DefaultDepth 16
SubSection “Display”
Depth 16
Modes “1280×1024? “1024×768? “800×600?
EndSubSection
EndSection

Section “ServerLayout”
Identifier “Default Layout”
Screen “Default Screen”
InputDevice “Generic Keyboard”
InputDevice “Configured Mouse”

# Uncomment if you have a wacom tablet
# InputDevice “stylus” “SendCoreEvents”
# InputDevice “cursor” “SendCoreEvents”
# InputDevice “eraser” “SendCoreEvents”
EndSection

  • Open a terminal window
  • Backup the old version of xorg.conf by entering on the command line – “sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
  • Copy the new one you created to the same location by entering on the command line – “sudo cp xorg.conf /etc/X11/xorg.conf
  • Reboot ubuntu
  • When Ubuntu reboots, your get a black screen with a X in the middle, and then you’ll get a dialog message saying “Ubuntu is running in low graphics mode, screen and graphics card coud not be detected
  • Choose the option to “configure graphics mode
  • In the drop down where it says plug & play, select “Monitor 1280 X 1024
  • Choose 1280 X 768 @ 60Hz as your resolution
  • Select Test
  • You should get a larger “gray” window with option to keep the confguration. Choose the option to keep it
  • Ubuntu will start as normal and will be exactly the same size as before.

Before you reboot, take alook at /etc/X11/xorg.conf…. It may not be the one you just created. However creating the new one appears to force Ubuntu to create a new one with more options.Reboot again and you should have a Ubuntu session running at 1280 X 768.

Make sure that you use kernel options:
i8042.noloop vga=794

The following is a tutorial on how to install ubuntu 8.04 on Microsoft Virtual PC 2007?

8 comments on “How to set the default resolution of Ubuntu 8.04 to 1024×768 in Virtual PC 2007?
  1. […] The following is a tutorial on how to set the default resolution of Ubuntu 8.04 to 1024×768 in Virtual PC 2007 […]

  2. Not so much….didn’t work for me. I followed all of the steps until the final reboot and then it came back as gibberish. I’ve tried just about all of the options in “Configure Graphics Mode” to no avail.

  3. Did you use kernel options:

    i8042.noloop vga=794

  4. Also did you reboot twice towards the end?

  5. Did you try this on a ubuntu installation in virtual PC 2007 ? or on ubuntu installed on your PC?

  6. This quote type is not valid in an xorg.conf file –> “ ” ” <–

  7. how do you “use kernel options: i8042.noloop vga=794” ?

    Where do you type that in?

  8. A little late to the party here, but…

    At least for Ubuntu 9.04 You’re better off manually typing in the Generic Video Card, Generic Monitor, and Default Screen sections into your xorg.conf files. The rest is unnecessary. I also want to point out a few TYPOS. Basically whenever you see a string opened with a quotation mark and closed with a question mark, it’s bad news. Replace those question marks with quotes and this works like a charm. As soon as I rebooted it in Virtual PC, it launched straight into 1280×1040 mode w/o any of the extra config steps.

  9. In his code, he has the following:

    Modes “1280×1024? “1024×768? “800×600?

    Replace that with this

    Modes “1280×1024” “1024×768” “800×600”

Leave a Reply

Your email address will not be published. Required fields are marked *

*