LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-01-2006, 05:24 AM   #16
martinr
Member
 
Registered: Mar 2006
Location: Stockholm, Sweden
Distribution: FC10 x86_64, RHEL4/5 x86_64
Posts: 87

Rep: Reputation: 15

Hello, it's me again. I must have misunderstood something... when I applied the xorg.conf file shown below nothing worked. I even got a "kernel panic" and had to boot wiht an earlier version to fix back the old settings.
Any pointers to what I might try? What should be the resolution on the TV, and which colordepth? Does it matter which monitor is on "screen0"? does it matter if the main monitor is screen0 or not? I've looked at the nvidia readme... but I don't see how it applies to this exact problem.

I'd really appriciate a little more help

Section "ServerLayout"
Identifier "Multihead layout"
Screen 0 "Screen0" LeftOf "Screen1"
Screen 1 "Screen1" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
Option "Xinerama" "on"
Option "Clone" "off"
EndSection

Section "Files"

# Multiple FontPath entries are allowed (they are concatenated together)
# By default, a font server independent of the X server is
# used to render fonts.
ModulePath "/usr/lib64/xorg/modules/extensions/nvidia"
ModulePath "/usr/lib64/xorg/modules"
FontPath "unix/:7100"
EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "record"
Load "freetype"
Load "type1"
Load "glx"
EndSection

Section "InputDevice"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
# Option "Xleds" "1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
# Option "XkbDisable"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults). For example, for a non-U.S.
# keyboard, you will probably want to use:
# Option "XkbModel" "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
# Option "XkbModel" "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
# Option "XkbLayout" "de"
# or:
# Option "XkbLayout" "de"
# Option "XkbVariant" "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
# Option "XkbOptions" "ctrl:swapcaps"
# Or if you just want both to be control, use:
# Option "XkbOptions" "ctrl:nocaps"
#
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "se"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "yes"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "L1915S"
DisplaySize 380 300
### Comment all HorizSync and VertSync values to use DDC:
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 75.0
Option "dpms"
EndSection

Section "Monitor"
Identifier "TV"
### Comment all HorizSync and VertSync values to use DDC:
HorizSync 30.0 - 50.0
VertRefresh 60.0 - 60.0
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
VendorName "Videocard vendor"
BoardName "nVidia Corporation NV43 [GeForce 6600 GT]"
EndSection

Section "Device"
Identifier "Videocard1"
Driver "vesa"
VendorName "Videocard Vendor"
BoardName "nVidia Corporation NV43 [GeForce 6600 GT]"
BusID "PCI:1:0:0"
Screen 1
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 16
Modes "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024"
EndSubSection
EndSection

Section "Screen"
Identifier "Screen1"
Device "Videocard1"
Monitor "TV"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "800x600"
EndSubSection
EndSection

Section "DRI"
Group 0
Mode 0666
EndSection

Last edited by martinr; 10-01-2006 at 05:26 AM.
 
Old 10-07-2006, 01:09 PM   #17
martinr
Member
 
Registered: Mar 2006
Location: Stockholm, Sweden
Distribution: FC10 x86_64, RHEL4/5 x86_64
Posts: 87

Rep: Reputation: 15
Hello again. I've tried this for a while now and still I can't get it to work properly. When I tried the below settings I even got a "kernel panic" and I had to go back to an old kernel to reset xorg.conf. I was hoping that any kind soul could take the time to read through the below and hopefully find what is wrong. Hopefully it is something minor and easy to spot for a trained eye.

@lurko: you wrote that I could use a vertical refreshrate of 60 for a typical TV. is that a misprint? shouldn't it be a range, e.g. 60-100?

# Xorg configuration created by system-config-display

Section "ServerLayout"
Identifier "Multihead layout"
Screen 0 "Screen0" LeftOf "Screen1"
Screen 1 "Screen1" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
Option "Xinerama" "on"
Option "Clone" "off"
EndSection

Section "Files"

# Multiple FontPath entries are allowed (they are concatenated together)
# By default, a font server independent of the X server is
# used to render fonts.
ModulePath "/usr/lib64/xorg/modules/extensions/nvidia"
ModulePath "/usr/lib64/xorg/modules"
FontPath "unix/:7100"
EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "record"
Load "freetype"
Load "type1"
Load "glx"
EndSection

Section "InputDevice"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
# Option "Xleds" "1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
# Option "XkbDisable"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults). For example, for a non-U.S.
# keyboard, you will probably want to use:
# Option "XkbModel" "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
# Option "XkbModel" "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
# Option "XkbLayout" "de"
# or:
# Option "XkbLayout" "de"
# Option "XkbVariant" "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
# Option "XkbOptions" "ctrl:swapcaps"
# Or if you just want both to be control, use:
# Option "XkbOptions" "ctrl:nocaps"
#
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "se"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "yes"
EndSection

Section "Monitor"
### Comment all HorizSync and VertSync values to use DDC:
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "L1915S"
DisplaySize 380 300
### Comment all HorizSync and VertSync values to use DDC:
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 75.0
Option "dpms"
EndSection

Section "Monitor"
### Comment all HorizSync and VertSync values to use DDC:
Identifier "TV"
### Comment all HorizSync and VertSync values to use DDC:
HorizSync 30.0 - 50.0
VertRefresh 60.0 - 60.0
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
VendorName "Videocard vendor"
BoardName "nVidia Corporation NV43 [GeForce 6600 GT]"
EndSection

Section "Device"
Identifier "Videocard1"
Driver "vesa"
VendorName "Videocard Vendor"
BoardName "nVidia Corporation NV43 [GeForce 6600 GT]"
BusID "PCI:1:0:0"
Screen 1
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 16
Modes "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024"
EndSubSection
EndSection

Section "Screen"
Identifier "Screen1"
Device "Videocard1"
Monitor "TV"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "800x600"
EndSubSection
EndSection

Section "DRI"
Group 0
Mode 0666
EndSection
 
Old 10-08-2006, 02:55 AM   #18
lurko
Member
 
Registered: Jun 2006
Location: Ontario, Canada
Distribution: Debian
Posts: 448

Rep: Reputation: 35
this might be the problem:

Section "Device"
Identifier "Videocard1"
Driver "vesa" (should be "nvidia")

and this device section will also need lines like these if it's for a TV (but specific to the standard and hookups you use):
Option "TVOutFormat" "SVIDEO"
Option "TVStandard" "NTSC-M"

and for some applications(of TV out, not software), but probably not this one, you might find this line helps:
Option "ConnectedMonitor" "TV"

Also, you need to specify the BusID in both device sections(I believe).

I haven't had any probelms setting just "60" for VertRefresh, I believe it is the standard practice since a TV's refresh rate is constant.

I don't know that any of these things would cause a kernel panic... but they're certainly getting in the way of your TV out working, your config looks fine to me otherwise. When X fails to start, the log file will usually tell you the exact part of your config the problem is in, just scan through /var/log/Xorg.0.log (or similar with XF86) and look at the lines that start with (EE) and (WW), these lines will probably detail why X failed.

Something I like to do to make it easier to absorb the config file visually is to assign the same identifier for all sections that apply to a specific display. The device, screen and monitor sections for my CRT are all called CRT, and the ones for my TV are all called TV. Saves any confusion in the serverlayout section too.

good luck, you'll get it eventually.

edit:
Quote:
What should be the resolution on the TV, and which colordepth? Does it matter which monitor is on "screen0"? does it matter if the main monitor is screen0 or not? I've looked at the nvidia readme... but I don't see how it applies to this exact problem.
unless you're watching full resolution HD content, most video is going to have to be upscaled at least a little to be fullscreen at 640x480, and anything higher is pointless for a regular television(640x480 is about as close to a TV's native resolution as nvidia will let you get). If you have a desktop on this TV, every resolution above 640x480 is going to make it more difficult to read anything but the largest text, even on large television. I just use the same colour depth as my CRT, you can use whatever depth you prefer.

I don't think it matters which display is Screen0 and which is Screen1, but I would put actual monitors before something connected through TV out anyway. If you make the changes I suggested above and it still doesn't work, then I would have to assume it does matter.

In your serverlayout section, you might want to put Screen0 on a line by itself, and put "Screen1" RightOf "Screen0" underneath, instead of how you have it. Again I'm not sure if this really matters though, but it might since here:

Screen 0 "Screen0" LeftOf "Screen1"
Screen 1 "Screen1" 0 0

you are telling X to put Screen0 left of Screen1 before you are telling X to use Screen1. I'm no expert though and the whole config might be read before anything is done with it.

The sections of the readme that apply are Appendix H, Configuring TV-Out, and Appendix P, Configuring Multiple X Screens on One Card. The catch with Appendix P being that you have to have the extra TV out lines in your device section for TV out, and you have to use the HorizSync and VertRefresh setting for a TV in the monitor section.

Last edited by lurko; 10-08-2006 at 03:27 AM.
 
Old 10-08-2006, 08:56 AM   #19
martinr
Member
 
Registered: Mar 2006
Location: Stockholm, Sweden
Distribution: FC10 x86_64, RHEL4/5 x86_64
Posts: 87

Rep: Reputation: 15
Thank you so very very much! lurko, you're the man!

Now it all works like a charm! To anyone else who might be having the same problem, this is what I'm finally using:
Note that I changed the Option "TVStandard" "NTSC-M" to Option "TVStandard" "PAL-G" since I'm in Sweden. It's also quite nice that you can choose "LeftOf" or "RightOf", when you're positioning your extra monitor.


# Xorg configuration created by system-config-display

Section "ServerLayout"
Identifier "Multihead layout"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
Option "Xinerama" "on"
Option "Clone" "off"
EndSection

Section "Files"

# Multiple FontPath entries are allowed (they are concatenated together)
# By default, a font server independent of the X server is
# used to render fonts.
ModulePath "/usr/lib64/xorg/modules/extensions/nvidia"
ModulePath "/usr/lib64/xorg/modules"
FontPath "unix/:7100"
EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "record"
Load "freetype"
Load "type1"
Load "glx"
EndSection

Section "InputDevice"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
# Option "Xleds" "1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
# Option "XkbDisable"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults). For example, for a non-U.S.
# keyboard, you will probably want to use:
# Option "XkbModel" "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
# Option "XkbModel" "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
# Option "XkbLayout" "de"
# or:
# Option "XkbLayout" "de"
# Option "XkbVariant" "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
# Option "XkbOptions" "ctrl:swapcaps"
# Or if you just want both to be control, use:
# Option "XkbOptions" "ctrl:nocaps"
#
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "se"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "yes"
EndSection

Section "Monitor"
### Comment all HorizSync and VertSync values to use DDC:
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "L1915S"
DisplaySize 380 300
### Comment all HorizSync and VertSync values to use DDC:
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 75.0
Option "dpms"
EndSection

Section "Monitor"
### Comment all HorizSync and VertSync values to use DDC:
Identifier "TV"
### Comment all HorizSync and VertSync values to use DDC:
HorizSync 30.0 - 50.0
VertRefresh 60.0 - 60.0
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
VendorName "Videocard vendor"
BoardName "nVidia Corporation NV43 [GeForce 6600 GT]"
BusID "PCI:1:0:0"
EndSection

Section "Device"
Identifier "Videocard1"
Driver "nvidia"
VendorName "Videocard Vendor"
BoardName "nVidia Corporation NV43 [GeForce 6600 GT]"
Option "TVOutFormat" "SVIDEO"
Option "TVStandard" "PAL-G"
BusID "PCI:1:0:0"
Screen 1
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 16
Modes "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024"
EndSubSection
EndSection

Section "Screen"
Identifier "Screen1"
Device "Videocard1"
Monitor "TV"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 16
Modes "640x480" "800x600"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768"
EndSubSection
EndSection

Section "DRI"
Group 0
Mode 0666
EndSection
 
Old 10-08-2006, 05:00 PM   #20
lurko
Member
 
Registered: Jun 2006
Location: Ontario, Canada
Distribution: Debian
Posts: 448

Rep: Reputation: 35
glad I could help out, though I'm not sure I'd go so far as to say that I was the man (hehe, but you're welcome to say so if you like).

btw, you can also specify "above" or "below" instead of RightOf or LeftOf in the serverlayout.

Last edited by lurko; 10-08-2006 at 05:02 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual Head on FC5 with nVidia darkhammer81 Fedora 11 08-29-2006 08:30 AM
Nvidia Dual Head help MaTrIx709 Linux - Hardware 4 04-02-2006 12:12 PM
Nvidia Dual-Head plus TV-Out kayssun Linux - Hardware 3 02-14-2006 05:43 PM
Radeon 7000 Duel head and Debian. Keeps cloning... grandaddy_low Linux - Hardware 5 10-01-2004 09:15 PM
NVidia Dual Head FX5200 XODeuce Linux - Hardware 0 07-21-2003 05:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration