my xwindow config file
/etc/X11/xorg.config
# xorg.conf (X.Org 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 "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
EndSection
# Wacom tablet 설정
Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
# Option "ForceDevice" "ISDV4" # Tablet PC ONLY
Option "USB" "on"
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
# Option "ForceDevice" "ISDV4" # Tablet PC ONLY
Option "USB" "on"
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
# Option "ForceDevice" "ISDV4" # Tablet PC ONLY
Option "USB" "on"
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "pad"
Option "Device" "/dev/input/wacom"
Option "Type" "pad"
Option "USB" "on"
EndSection
Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizEdgeScroll" "0"
EndSection
Section "Device"
Identifier "Configured Video Device"
Option "monitor-VGA" "lcddisp"
Option "monitor-LVDS" "laptop"
EndSection
Section "Monitor"
# Identifier "Configured Monitor"
Identifier "laptop"
EndSection
Section "Monitor"
Identifier "lcddisp"
Option "RightOf" "laptop"
EndSection
Section "Screen"
Identifier "Default Screen"
# Monitor "Configured Monitor"
Monitor "laptop"
Device "Configured Video Device"
DefaultDepth 24
SubSection "Display"
Modes "1024x768" "1024x768"
Virtual 2048 768
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Synaptics Touchpad"
# Wacom tablet 설정
InputDevice "stylus" "SendCoreEvents"
InputDevice "cursor" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
InputDevice "pad"
EndSection
************************************************************
출처: http://ubuntuforums.org/showthread.php?t=826717
I had come hardships getting dual display working between by laptop (Dell Vostro 1700) running Hardy Heron, and an extra LCD panel display.
I noticed in these forums that others had similar problems, so here are my successful steps for those in similar pain.
FIRSTLY, read this: http://www.intellinuxgraphics.org/dualhead.html
It really will help.
If you come this far without reading the above link, you'll probably get it wrong.
Next MAKE SURE YOU BACKUP YOUR EXISTING xorg.conf!
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
These instructions assume you have a laptop to the left of your larger LCD panel, and that you want the LCD panel to be the main screen. If this isn't true, you need to pay attention to the "LeftOf" / "RightOf" options in step 3 below, also in step 4 and during the rejigging of the layout using xrandr (more on this below).
Before you start, you will need the ID of your displays from xrandr. Do:
sudo xrandr -q
In my case, the displays are called "VGA" and "LVDS". You will need these values when doing step 1 below.
Edit your xorg.conf (from the out-the-box Heron dist version) and make the following changes:
1. In 'Section "Device"', add the 2 lines highlighted in red so the section reads like this:
Section "Device"
Identifier "Configured Video Device"
Option "monitor-VGA" "lcddisp"
Option "monitor-LVDS" "laptop"
EndSection
Note that the "Option" keys are the 2 values you got in 'sudo xrandr -q' earlier, prefixed bu the string "monitor-". THIS IS IMPORTANT!
2. Change the identifier in 'Section "Monitor"' as shown in red, so it reads like this:
Section "Monitor"
Identifier "lcddisp"
EndSection
3. Immediately below the existing 'Section "Monitor"' add a new 'Section "Monitor"' which looks like this:
Section "Monitor"
Identifier "laptop"
Option "LeftOf" "lcddisp"
EndSection
N.B. This assumes your laptop is to the left of your lcd display. If not, change "LeftOf" to "RightOf".
4. In 'Section "Screen"', edit the Monitor to be the one you want as your main screen (in my case 'lcddisp' but you may want 'laptop'):
Section "Screen"
Identifier "Default Screen"
Monitor "lcddisp"
Device "Configured Video Device"
EndSection
5. Also in the same 'Section "Screen"' add a SubSection as follows:
Section "Screen"
Identifier "Default Screen"
Monitor "lcddisp"
Device "Configured Video Device"
SubSection "Display"
Depth 24
Modes "1680x1050" "1440x900"
Virtual 3120 1050
EndSubSection
EndSection
Note: The Modes options should reflect the 2 modes of your laptop and LCD panel (or just one mode if they are the same resolution.)
Also Note: Virtual setting. You should calculate this such that the first figure is the TOTAL width of both displays added together, and the second figger is the larger of the 2 display heights. If you don't know the resolutions you can get them by:
sudo xrandr -q
In short, the Virtual section creates a giant virtual screen which must be big enough to hold the 2 screens we are physically using.
OK that's the xorg.conf edited, so....
6. Restart X (CTRL-ALT-BACKSPACE)
Nothing amazing will have happened yet; you now need to use xrandr to move the displays around in the giant virtual screen we just made:
7. sudo xrandr -q to get the system names of the 2 displays. Im my case these are VGA (the LCD panel) and LVDS (the laptop)
8. Whichever display you opted for on the right, now use xrandr to reposition it. In my case:
xrandr --output VGA --pos 1440x0
This moved my VGA (lcd) display to position 1440, which is exactly at the right hand edge of my laptop display (within the giant virtual screen.)
This should have done the trick.
Again, this document is very helpful:
http://www.intellinuxgraphics.org/dualhead.html
Good Luck!
/etc/X11/xorg.config
# xorg.conf (X.Org 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 "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
EndSection
# Wacom tablet 설정
Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
# Option "ForceDevice" "ISDV4" # Tablet PC ONLY
Option "USB" "on"
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
# Option "ForceDevice" "ISDV4" # Tablet PC ONLY
Option "USB" "on"
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
# Option "ForceDevice" "ISDV4" # Tablet PC ONLY
Option "USB" "on"
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "pad"
Option "Device" "/dev/input/wacom"
Option "Type" "pad"
Option "USB" "on"
EndSection
Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizEdgeScroll" "0"
EndSection
Section "Device"
Identifier "Configured Video Device"
Option "monitor-VGA" "lcddisp"
Option "monitor-LVDS" "laptop"
EndSection
Section "Monitor"
# Identifier "Configured Monitor"
Identifier "laptop"
EndSection
Section "Monitor"
Identifier "lcddisp"
Option "RightOf" "laptop"
EndSection
Section "Screen"
Identifier "Default Screen"
# Monitor "Configured Monitor"
Monitor "laptop"
Device "Configured Video Device"
DefaultDepth 24
SubSection "Display"
Modes "1024x768" "1024x768"
Virtual 2048 768
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Synaptics Touchpad"
# Wacom tablet 설정
InputDevice "stylus" "SendCoreEvents"
InputDevice "cursor" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
InputDevice "pad"
EndSection
************************************************************
출처: http://ubuntuforums.org/showthread.php?t=826717
I had come hardships getting dual display working between by laptop (Dell Vostro 1700) running Hardy Heron, and an extra LCD panel display.
I noticed in these forums that others had similar problems, so here are my successful steps for those in similar pain.
FIRSTLY, read this: http://www.intellinuxgraphics.org/dualhead.html
It really will help.
If you come this far without reading the above link, you'll probably get it wrong.
Next MAKE SURE YOU BACKUP YOUR EXISTING xorg.conf!
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
These instructions assume you have a laptop to the left of your larger LCD panel, and that you want the LCD panel to be the main screen. If this isn't true, you need to pay attention to the "LeftOf" / "RightOf" options in step 3 below, also in step 4 and during the rejigging of the layout using xrandr (more on this below).
Before you start, you will need the ID of your displays from xrandr. Do:
sudo xrandr -q
In my case, the displays are called "VGA" and "LVDS". You will need these values when doing step 1 below.
Edit your xorg.conf (from the out-the-box Heron dist version) and make the following changes:
1. In 'Section "Device"', add the 2 lines highlighted in red so the section reads like this:
Section "Device"
Identifier "Configured Video Device"
Option "monitor-VGA" "lcddisp"
Option "monitor-LVDS" "laptop"
EndSection
Note that the "Option" keys are the 2 values you got in 'sudo xrandr -q' earlier, prefixed bu the string "monitor-". THIS IS IMPORTANT!
2. Change the identifier in 'Section "Monitor"' as shown in red, so it reads like this:
Section "Monitor"
Identifier "lcddisp"
EndSection
3. Immediately below the existing 'Section "Monitor"' add a new 'Section "Monitor"' which looks like this:
Section "Monitor"
Identifier "laptop"
Option "LeftOf" "lcddisp"
EndSection
N.B. This assumes your laptop is to the left of your lcd display. If not, change "LeftOf" to "RightOf".
4. In 'Section "Screen"', edit the Monitor to be the one you want as your main screen (in my case 'lcddisp' but you may want 'laptop'):
Section "Screen"
Identifier "Default Screen"
Monitor "lcddisp"
Device "Configured Video Device"
EndSection
5. Also in the same 'Section "Screen"' add a SubSection as follows:
Section "Screen"
Identifier "Default Screen"
Monitor "lcddisp"
Device "Configured Video Device"
SubSection "Display"
Depth 24
Modes "1680x1050" "1440x900"
Virtual 3120 1050
EndSubSection
EndSection
Note: The Modes options should reflect the 2 modes of your laptop and LCD panel (or just one mode if they are the same resolution.)
Also Note: Virtual setting. You should calculate this such that the first figure is the TOTAL width of both displays added together, and the second figger is the larger of the 2 display heights. If you don't know the resolutions you can get them by:
sudo xrandr -q
In short, the Virtual section creates a giant virtual screen which must be big enough to hold the 2 screens we are physically using.
OK that's the xorg.conf edited, so....
6. Restart X (CTRL-ALT-BACKSPACE)
Nothing amazing will have happened yet; you now need to use xrandr to move the displays around in the giant virtual screen we just made:
7. sudo xrandr -q to get the system names of the 2 displays. Im my case these are VGA (the LCD panel) and LVDS (the laptop)
8. Whichever display you opted for on the right, now use xrandr to reposition it. In my case:
xrandr --output VGA --pos 1440x0
This moved my VGA (lcd) display to position 1440, which is exactly at the right hand edge of my laptop display (within the giant virtual screen.)
This should have done the trick.
Again, this document is very helpful:
http://www.intellinuxgraphics.org/dualhead.html
Good Luck!
Last edited by mhenwood; June 13th, 2008 at 11:30 AM..
Re: HOWTO: Get Dual Monitor Display Working - Ubuntu 8 / Hardy Heron
It might be worth noting that the Virtual line here:
is really the only necessary part of these modifications. The virtual line specifies the maximum combined resolution available across all of your screens, and it defaults to the resolution of the highest resolution device you have plugged in when X starts. This means that by default you can't do non-clone dual-head.
However, once you have a specified a (sufficiently large) Virtual size, you can use System->Preferences->Screen Resolution to dynamically handle dual-head. It will also restore your dual-head settings when you log in. That's the way I have my dual-head set up on my laptop, since I tend to swap things around a lot.
Quote:
... 5. Also in the same 'Section "Screen"' add a SubSection as follows: Code: Section "Screen" |
However, once you have a specified a (sufficiently large) Virtual size, you can use System->Preferences->Screen Resolution to dynamically handle dual-head. It will also restore your dual-head settings when you log in. That's the way I have my dual-head set up on my laptop, since I tend to swap things around a lot.
__________________
nVidia's binary blob: not quite as bad as fglrx --- Instructions for easy Nouveau driver testing.
Remember: if your problem is not described on a Launchpad bug, it can only be fixed by accident!
nVidia's binary blob: not quite as bad as fglrx --- Instructions for easy Nouveau driver testing.
Remember: if your problem is not described on a Launchpad bug, it can only be fixed by accident!