View Full Version : Dual monitor hotplugging/refresh rate
kombucha
14th September 2007, 10:16 PM
I'm using nvidia's proprietary driver with my nvidia card... I have an LCD monitor in addition to my laptop's screen... I want to make it such that when the external monitor is plugged in, Fedora uses only that one, and when it isn't, Fedora uses the laptop one. I think it might be trying to do this now, because it's almost working, except Fedora picks a default refresh rate that doesn't work with my external monitor, and all I can see is "Input Not Supported". When I unplug the monitor, reboot, plug it in and configure it manually, it works fine at 1680x1050 at 60hz.
So essentially I just need to know how to make 60hz the default for my external monitor. :)
kombucha
18th September 2007, 08:46 PM
*bump* :P Anyone?
FNHi
21st September 2007, 01:00 AM
I had the same problem and I fix it.
You must take work with your xorg.conf
# vi /etc/X11/xorg.conf
I'll show you my xorg.conf before and after fix.
Only my card is radeon. For configuring xorg.conf I was read my
# man radeon
You must do the same but with your video card manual.
# less /etc/X11/xorg.conf
before fix
# Xorg configuration created by pyxf86config
Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Synaptics" "CorePointer"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Synaptics"
Driver "synaptics"
Option "Device" "/dev/input/mice"
Option "Protocol" "auto-dev"
Option "Emulate3Buttons" "yes"
EndSection
Section "Device"
Identifier "Videocard0"
Driver "radeon"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
# less /etc/X11/xorg.conf
after fix
# Xorg configuration created by system-config-display
Section "ServerLayout"
Identifier "Multihead layout"
Option "MonitorLayout" "LVDS, CRT"
Screen 0 "Screen0" LeftOf "Screen1"
Screen 1 "Screen1" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Synaptics" "CorePointer"
InputDevice "Mouse0" "AlwaysCore"
InputDevice "stylus" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
InputDevice "cursor" "SendCoreEvents"
InputDevice "pad"
Option "Xinerama" "on"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Synaptics"
Driver "synaptics"
Option "Device" "/dev/input/mice"
Option "Protocol" "auto-dev"
Option "Emulate3Buttons" "yes"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
EndSection
Section "InputDevice"
Identifier "stylus"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "USB" "on"
Option "Tilt" "on"
Option "PressCurve" "0,0,100,100"
Option "Mode" "Absolute"
Option "Speed" "1"
Option "TopX" "0"
Option "TopY" "0"
Option "BottomX" "60960"
Option "BottomY" "33250"
Option "KeepShape" "on"
EndSection
Section "InputDevice"
Identifier "eraser"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "USB" "on"
Option "PressCurve" "0,0,100,100"
Option "Mode" "Absolute"
Option "Speed" "1"
Option "TopX" "0"
Option "TopY" "0"
Option "BottomX" "60960"
Option "BottomY" "33250"
Option "KeepShape" "on"
EndSection
Section "InputDevice"
Identifier "cursor"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
Option "Mode" "Absolute"
Option "USB" "on"
Option "Speed" "1"
Option "TopX" "0"
Option "TopY" "0"
Option "BottomX" "60960"
Option "BottomY" "33250"
Option "KeepShape" "on"
EndSection
Section "InputDevice"
Identifier "pad"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "pad"
Option "USB" "on"
Option "Button1" "6"
Option "Button2" "7"
Option "Button3" "4"
Option "Button4" "5"
Option "TopX" "0"
Option "TopY" "0"
Option "BottomX" "60960"
Option "BottomY" "33250"
Option "KeepShape" "on"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "LCD Panel 1024x768"
HorizSync 31.5 - 48.5
VertRefresh 40.0 - 70.0
# 1024x768 @ 100.00 Hz (GTF) hsync: 81.40 kHz; pclk: 113.31 MHz
Modeline "1024x768_100.00" 113.31 1024 1096 1208 1392 768 769 772 814 -HSync +Vsync
Option "dpms"
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Philips 109B6"
HorizSync 30.0 - 95.0
VertRefresh 50.0 - 160.0
# 1024x768 @ 100.00 Hz (GTF) hsync: 81.40 kHz; pclk: 113.31 MHz
Modeline "1024x768_100.00" 113.31 1024 1096 1208 1392 768 769 772 814 -HSync +Vsync
Option "dpms"
EndSection
Section "Device"
Identifier "Videocard0"
Driver "radeon"
VendorName "Videocard Vendor"
BoardName "ATI Technologies Inc RS300M AGP [Radeon Mobility 9100IGP]"
Option "MonitorLayout" "LVDS, CRT"
Screen 0
EndSection
Section "Device"
Identifier "Videocard1"
Driver "radeon"
VendorName "Videocard Vendor"
BoardName "ATI Technologies Inc RS300M AGP [Radeon Mobility 9100IGP]"
BusID "PCI:1:5:0"
Option "MonitorLayout" "LVDS, CRT"
Screen 1
EndSection
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768_100.00"
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Videocard1"
Monitor "Monitor1"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768_100.00"
EndSubSection
EndSection
How you can see, I added some lines in xorg.conf for my both monitors and for appearing one big desktop.
Your work must be done in :
Section "Screen"
Identifier "Screen1"
Section "Device"
Identifier "Videocard1"
Section "Screen"
Identifier "Screen0"
Section "Device"
Identifier "Videocard0"
Section "Monitor"
Identifier "Monitor1"
Section "Monitor"
Identifier "Monitor0"
Section "ServerLayout"
Identifier "Multihead layout"
Go here for generate your monitor settings.
http://www.sh.nu/nvidia/gtf.php
Put this for example: 1024х768 с 60Hz and you get this line for you monitor:
# 1024x768 @ 60.00 Hz (GTF) hsync: 47.70 kHz; pclk: 64.11 MHz
Modeline "1024x768_60.00" 64.11 1024 1080 1184 1344 768 769 772 795 -HSync +Vsync
Put this line in your xorg.conf file in Section "Monitor"
Another page for generate modelines
http://koala.ilog.fr/cgi-bin/nph-colas-modelines
But I generated my modelines with first one.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.