Dual Monitor Setup

At work I have a Sony Vaio [FS950] running Debian and an external 19’’ Monitor that I wanted to connect to expand my desktop. Below is an extract from my xorg.conf file with some explanations about the changes.

I used the following resources for help;

So after much tweaking and playing around below is the part of the xorg.conf file that setup the monitors the way I wanted them.

Laptop — snip —

Section ‘Device’     Identifier   ‘video0’     Driver   bsp;  BusID   bsp;  Screen   bsp;  Option   itorLayout’    ‘CRT,LFP’    Option   e’   bsp;  Option   Info’   bsp;  Option   ce’   ‘false’    Option   bsp;  bsp;  Option   bsp;  dSection

Section ‘Monitor’    Identifier   ‘Laptop Monitor’    Modeline   ‘1280x800@60’ 83.91 1280 1312 1624 1656 800 816 824 841    Option   dSection

Section ‘Screen’    Identifier   ‘screen0’    Device   bsp;  Monitor   Monitor’    DefaultDepth   24    SubSection    ‘Display’       bsp;  bsp;     bsp;  ‘1024x800’ ‘800x600’ ‘640x480’    EndSubSection EndSection

— snip —

The default xorg.conf file had ‘vesa’ as the driver and I changed that to i810’ (I just had to change the text here to ‘i810’, and it worked for me) ‘Clone’ is set to false as I did not want a duplicate copy of the desktop on my external monitor, but rather to extend it.

External Monitor — snip —

Section ‘Device’    Identifier   ‘video1’    Driver   bsp;  BusID   bsp;  Screen   bsp;  Option   itorLayout’    ‘CRT,LFP’

Option ‘MetaModes’ ‘1600x1200’

EndSection

Section ‘Monitor’    Identifier   ‘NEC Monitor’    HorizSync   31-81    VertRefresh   56-75    Option   dSection

Section ‘Screen’    Identifier   ‘screen1’    Device   bsp;  Monitor   EC Monitor’    DefaultDepth   24    SubSection    ‘Display’       bsp;  bsp;     bsp;  bsp;      Viewport    0 0    EndSubSection EndSection

— snip —

Here I added the external monitor’s settings. You ned to know/determine the HorizSync and VertRefresh that is specific to your monitor, a quick way is to boot up a Gnoppix CD and see what it sets for your monitor or look at the specs for the external monitor.

For the external monitor I needed to make sure that the ‘DefaultDepth’ value had a matching ‘SubSection’ with a ‘Depth’ that matched it.

Once I had everything setup I ran into the issue that the external monitor’s desktop would scroll, so that it appeared that I had this really large desktop but only a portion of it would show on the monitor and moving the mouse to the edge of the monitor would result in the desktop scrolling in that direction. I did not like that and so that is what the ‘Viewport 0 0’ line does it. it stops the scrolling.

Monitor Layout — snip —

Section ‘ServerFlags’    Option   ‘Xinerama’   ‘on’    Option   ‘RandR’   ‘on’ EndSection

Section ‘ServerLayout’    Identifier   ‘Default Layout’    Screen   bsp;  ‘screen0’ 0 0    Screen   bsp;  ‘screen1’ RightOf ‘screen0’    InputDevice   ‘Generic Keyboard’    InputDevice   ‘Configured Mouse’    InputDevice   ‘Synaptics Touchpad’    Option   erama’‘on’ EndSection

— snip —

The last section pretty much determines how the monitors play together. So that is it, with these settings for the monitors in your xorg.conf file you should be all set with dual monitors.


general

483 Words

2006-06-15 20:00 -0400