Saturday, January 17, 2009

Using the VGA output of your laptop's Intel graphics card

I have been a Linux user for quite some time now, and even though I am much more comfortable with using Linux than with any other operating system, there still are some things that really annoy me.

One of these things is enabling the VGA output (i.e. the external monitor) on a laptop. I own a rather old Acer TravelMate 290 laptop that comes with an Intel 855GM graphics card. When using Xubuntu 8.04 and trying to enable the VGA output by hitting the Fn+F5 key, all my system did is ... crash. As you can imagine, this is especially annoying when you're supposed to give a talk! (Shame on me for not testing before.)

With Xubuntu 8.10 (Intrepid Ibex), the system doesn't crash on Fn+F5 any more, but it will not enable the VGA output either. So after I spent quite some time researching and trying things out, here is how to enable your VGA output:

  1. Attach a monitor/projector/something else to the VGA output of your laptop.
  2. Open a terminal and run "xrand -q". It will show all your graphics card's outputs and the available modes. VGA is your VGA output (duh!) and LVDS is your laptop's LCD display.
  3. To enable the VGA output, enter "xrandr --output VGA --mode 1024x768", where you substitute "1024x768" with the resolution of your LCD display (LVDS).
  4. Voilá! VGA output is enabled and you're ready to give a great presentation.
This information is valid for all graphics cards that use the X intel driver. These are: G45, Q45, G43, Q43, GM45, G35, Q35, Q33, G33, 965GM, 965G, 965Q, 946GZ, 945G, 945GM, 915G, 915GM, 865G, 855GM, 845G, i830M, 815, 810, 810-DC100.
For more information, see the X intel driver's homepage. It also has a tutorial on how to setup a dual-screen environment.

About the function keys: Unfortunately, it is not possible to capture Fn+F5 to run the xrandr-related magic automatically. It tried finding out the appropriate event using xev, but to no avail. Thus, for now, you're stuck with the command line.

Hope this helps you to enable you VGA and give a good presentation, watch a cool movie, or use a dual-screen environment.

1 comment:

  1. The laptop for me must to be efficient, quality and of course with a reasonable price. This is similar when i usually see to costa rica homes for sale i think is the best option in the market if you want to know a beautiful country and to a get a quality house. In the same way, you need a great computer if you want to get the better results.

    ReplyDelete