Sunday, December 11, 2011

Custom resolution for Ubuntu VM running in VirtualBox on Linux

So, I've got a Ubuntu server linux box where I run VirtualBox VM's, including an Ubuntu Desktop machine that I remotely display on my Windows box. (Yeah, I know, confusing and overly complicated.) Anyway, when running Gnome on the Ubuntu desktop, the maximum resolution it would give me was 1360x768. Since I have a 1920x1200 monitor on my Windows machine where I run my X server, I wanted a bigger Ubuntu desktop.

The most useful post I found was this: http://www.ubuntugeek.com/how-change-display-resolution-settings-using-xrandr.html

I ran the following commands:

  1. cvt 1680 1050 -- get a X modeline similar to "1680x1050_60.00" 146.25.... (more numbers)
  2. xrandr --newmode {output of the previous modeline}
  3. xrandr --addmode VBOX1 1680x1050_60.00 (causes the X display to flash)
  4. Use System > Preferences > Monitors to pick my new resolution
Voila. Easy, peasy. Works great now.


3 comments:

  1. hey bud thx for posting this, while it didnt fix the issue for me (i think I need the newest version of virtualbox) i at least know how to use xrandr now. check out my blog, it's very similar to yours:
    uselesspuzzles.blogspot.com

    ReplyDelete
  2. Thanks. Nice blog, BTW. I love useless puzzles. I want your 3D printer! Coincidentally, my next to-be-written topic is similar to your SDD upgrade topic, but rather how to upgrade your almost-full HDD to a *SMALLER* SDD, which is not nearly as simple as I would have liked it to be.

    ReplyDelete