Skip to contentSkip to conversation

Enabling TV-out with the nouveau driver

DISCUSSION Adrian Popa 2 participants 5 messages Jun 10, 2010 – Jun 11, 2010 4 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hello everyone,

First of all - congratulations on the success of your project. It was about time the community did something about the nvidia drivers! :)

Now, I'm still experimenting with nouveau and I have enabled it on a test system that has a rather old Nvidia card (GeForce4 I think) with tv-out. Everything works fine, but I haven't been able to find any examples on how to configure tv-out so I can extend my desktop to my TV.

Can anyone help with a demo configuration of Xorg.conf?

Also, I want to ask - if there is any chance of using two displays *and* enabling compositing (window transparency effects) - either with software or hardware acceleration?

By the way, I am using Xubuntu 10.04.

Regards,
Adrian

#2 lore raw
In reply to a message not in the archive
Quoted 10 lines · Adrian Popa

Hello everyone,

First of all - congratulations on the success of your project. It was about time the community did something about the nvidia drivers! :)

Now, I'm still experimenting with nouveau and I have enabled it on a test system that has a rather old Nvidia card (GeForce4 I think) with tv-out. Everything works fine, but I haven't been able to find any examples on how to configure tv-out so I can extend my desktop to my TV.

Which card exactly? nv1x-based gf4 cards should be fine but nv2x GPUs need an external TV encoder chip (and right now we only have a driver for ch7006 and similar external encoders). So, if your card has one of the supported encoders, you'll see a "TV-1" connector in the output of "xrandr".

Quoted 3 lines

Can anyone help with a demo configuration of Xorg.conf?

It's configured as a regular RandR12 output, so it should just work with the minimal xorg.conf [1], if you need to do something fancier like changing the relative output positions or setting TV-specific properties, see [2] and [3] (check out the TV-related kernel module parameters too, see "modinfo nouveau").

Quoted 3 lines

Also, I want to ask - if there is any chance of using two displays *and* enabling compositing (window transparency effects) - either with software or hardware acceleration?

It should work, but keep in mind that nv1x cards have a rather crude pitch limitation (you'll get no hw accel if your desktop is larger than 2048x2048).

Quoted 9 lines

By the way, I am using Xubuntu 10.04.

Regards,
Adrian
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

[1] http://nouveau.freedesktop.org/wiki/InstallNouveau
[2] http://nouveau.freedesktop.org/wiki/Randr12
[3] http://wiki.debian.org/XStrikeForce/HowToRandR12

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#4 lore raw
In reply to a message not in the archive

Hello,

I've checked and i have a GeForce 4 MX 440, and i do see a TV-1 in xrandr but I didn't manage to configure it with xrandr.

I've looked over [2] and by using *xrandr --output TV-1 --right-of VGA-1* i managed to extend my desktop to my TV. Also, i see the window transparency effect keeps working ;)

The problem is - I tried to configure xorg.conf but I didn't manage to add the displays side by side (the TV overlaps with the monitor from the top-left corner), even if they have different resolutions. I have attached my xorg.conf for reference. I realize I must be missing something trivial in the configuration. Anyone care to point it out?

Thanks,
Adrian

Quoted 53 lines · Francisco Jerez
Quoted 11 lines · Adrian Popa

Hello everyone,

First of all - congratulations on the success of your project. It was about time the community did something about the nvidia drivers! :)

Now, I'm still experimenting with nouveau and I have enabled it on a test system that has a rather old Nvidia card (GeForce4 I think) with tv-out. Everything works fine, but I haven't been able to find any examples on how to configure tv-out so I can extend my desktop to my TV.

Which card exactly? nv1x-based gf4 cards should be fine but nv2x GPUs need an external TV encoder chip (and right now we only have a driver for ch7006 and similar external encoders). So, if your card has one of the supported encoders, you'll see a "TV-1" connector in the output of "xrandr".

Quoted 3 lines

Can anyone help with a demo configuration of Xorg.conf?

It's configured as a regular RandR12 output, so it should just work with the minimal xorg.conf [1], if you need to do something fancier like changing the relative output positions or setting TV-specific properties, see [2] and [3] (check out the TV-related kernel module parameters too, see "modinfo nouveau").

Quoted 4 lines

Also, I want to ask - if there is any chance of using two displays *and* enabling compositing (window transparency effects) - either with software or hardware acceleration?

It should work, but keep in mind that nv1x cards have a rather crude pitch limitation (you'll get no hw accel if your desktop is larger than 2048x2048).

Quoted 9 lines

By the way, I am using Xubuntu 10.04.

Regards,
Adrian
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

[1] http://nouveau.freedesktop.org/wiki/InstallNouveau
[2] http://nouveau.freedesktop.org/wiki/Randr12
[3] http://wiki.debian.org/XStrikeForce/HowToRandR12

Signature · 8 lines
---
Adrian Popa
NOC Division
Network Engineer
Divizia Centrul National de Operare Retea
Departament Transport IP&  Metro
Compartiment IP Core&  Backbone
Phone: +40 21 400 3099

Section "ServerLayout"

	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"

EndSection

Section "Files"

	ModulePath   "/usr/lib/xorg/modules"
	FontPath     "/usr/share/fonts/X11/misc"
	FontPath     "/usr/share/fonts/X11/cyrillic"
	FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
	FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
	FontPath     "/usr/share/fonts/X11/Type1"
	FontPath     "/usr/share/fonts/X11/100dpi"
	FontPath     "/usr/share/fonts/X11/75dpi"
	FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
	FontPath     "built-ins"

EndSection

Section "Module"

	Load  "record"
	Load  "dri2"
	Load  "dri"
	Load  "glx"
	Load  "extmod"
	Load  "dbe"

EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"

	DisplaySize	  340   270	# mm
	Identifier   "VGA-1"
	VendorName   "NEC"
	ModelName    "LCD72VM"
	HorizSync    31.0 - 81.0
	VertRefresh  56.0 - 75.0
	Option	    "DPMS"

EndSection

Section "Monitor"

	Identifier   "TV-1" 
        HorizSync    30-50
	VertRefresh  60
	Option "RightOf" "Monitor0"
	# 720x576 @ 50Hz, 31.25kHz, itu-r bt.1358 625/50/p/1:1, RGB, YPbPr, HDMI
	ModeLine "720x576@50"  27     720 732 795 864  576 581 586 625 -hsync -vsync
	# nonstandard PAL (Works with BOB deinterlace) It is 60Hz but works well with nVIDIA PAL-B TV-OUT
	# Nvidia option: Option "TVStandard" "PAL-B"
	ModeLine "720x576@60" 32.7  720 744 816 912  576 577 580 597

	# This modeline is 50Hz interlaced and works well with kerneldeint:
	ModeLine "720x576i" 13.875  720 744 808 888  576 581 586 625 -hsync -vsync interlace

EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False", ### <string>: "String", <freq>: "<f> Hz/kHz/MHz" ### [arg]: arg optional
#Option "SWcursor" # [<bool>]
#Option "HWcursor" # [<bool>]
#Option "NoAccel" # [<bool>]
#Option "ShadowFB" # [<bool>]
#Option "UseFBDev" # [<bool>]
#Option "Rotate" # [<str>]
#Option "VideoKey" # <i>
#Option "FlatPanel" # [<bool>]
#Option "FPDither" # [<bool>]
#Option "CrtcNumber" # <i>
#Option "FPScale" # [<bool>]
#Option "FPTweak" # <i>
#Option "DualHead" "True" # [<bool>]
Identifier "Card0"
Driver "nouveau"
VendorName "nVidia Corporation"
BoardName "NV18 [GeForce4 MX 440 AGP 8x]"
BusID "PCI:2:0:0"
Option "Monitor-VGA-1" "VGA-1"
Option "Monitor-TV-1" "TV-1"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
#Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#6 lore raw
In reply to a message not in the archive

Hi,

Quoted 36 lines · Adrian Popa

Hello,

I've checked and i have a GeForce 4 MX 440, and i do see a TV-1 in xrandr but I didn't manage to configure it with xrandr.

I've looked over [2] and by using xrandr --output TV-1 --right-of VGA-1 i managed to extend my desktop to my TV. Also, i see the window transparency effect keeps working ;)

The problem is  - I tried to configure xorg.conf but I didn't manage to add the displays side by side (the TV overlaps with the monitor from the top-left corner), even if they have different resolutions. I have attached my xorg.conf for reference. I realize I must be missing something trivial in the configuration. Anyone care to point it out?

Thanks,
Adrian

Section "ServerLayout"

	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"

EndSection

Section "Files"

	ModulePath   "/usr/lib/xorg/modules"
	FontPath     "/usr/share/fonts/X11/misc"
	FontPath     "/usr/share/fonts/X11/cyrillic"
	FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
	FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
	FontPath     "/usr/share/fonts/X11/Type1"
	FontPath     "/usr/share/fonts/X11/100dpi"
	FontPath     "/usr/share/fonts/X11/75dpi"
	FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
	FontPath     "built-ins"

EndSection

Quoted 9 lines

Section "Module"

	Load  "record"
	Load  "dri2"
	Load  "dri"
	Load  "glx"
	Load  "extmod"
	Load  "dbe"

EndSection

You probably don't need any of the last two sections.

Quoted 14 lines

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"

Quoted 8 lines
	Identifier   "VGA-1"

	DisplaySize	  340   270	# mm
	VendorName   "NEC"
	ModelName    "LCD72VM"
	HorizSync    31.0 - 81.0
	VertRefresh  56.0 - 75.0
	Option	    "DPMS"

You shouldn't need any of the options above.

Quoted 5 lines

EndSection

Section "Monitor"
Identifier "TV-1"
Option "RightOf" "Monitor0"

The "Monitor0" identifier is wrong, I guess you meant "VGA-1".

Quoted 11 lines
        HorizSync    30-50
	VertRefresh  60
	# 720x576 @ 50Hz, 31.25kHz, itu-r bt.1358 625/50/p/1:1, RGB, YPbPr, HDMI
	ModeLine "720x576@50"  27     720 732 795 864  576 581 586 625 -hsync -vsync
	# nonstandard PAL (Works with BOB deinterlace) It is 60Hz but works well with nVIDIA PAL-B TV-OUT
	# Nvidia option: Option "TVStandard" "PAL-B"
	ModeLine "720x576@60" 32.7  720 744 816 912  576 577 580 597

	# This modeline is 50Hz interlaced and works well with kerneldeint:
	ModeLine "720x576i" 13.875  720 744 808 888  576 581 586 625 -hsync -vsync interlace

You shouldn't need to set any timings manually.

Quoted 49 lines

EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False", ### <string>: "String", <freq>: "<f> Hz/kHz/MHz" ### [arg]: arg optional
#Option "SWcursor" # [<bool>]
#Option "HWcursor" # [<bool>]
#Option "NoAccel" # [<bool>]
#Option "ShadowFB" # [<bool>]
#Option "UseFBDev" # [<bool>]
#Option "Rotate" # [<str>]
#Option "VideoKey" # <i>
#Option "FlatPanel" # [<bool>]
#Option "FPDither" # [<bool>]
#Option "CrtcNumber" # <i>
#Option "FPScale" # [<bool>]
#Option "FPTweak" # <i>
#Option "DualHead" "True" # [<bool>]
Identifier "Card0"
Driver "nouveau"
VendorName "nVidia Corporation"
BoardName "NV18 [GeForce4 MX 440 AGP 8x]"
BusID "PCI:2:0:0"
Option "Monitor-VGA-1" "VGA-1"
Option "Monitor-TV-1" "TV-1"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
#Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"

Quoted 9 lines

Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#8 lore raw
In reply to a message not in the archive

Hello Francisco,

You were right - the monitor name was wrong in that section. I replaced Monitor0 with VGA-1 and it worked just fine. Thank you a lot for your help!

Regards,
Adrian

Quoted 164 lines · Francisco Jerez

Hi,

Quoted 36 lines · Adrian Popa

Hello,

I've checked and i have a GeForce 4 MX 440, and i do see a TV-1 in xrandr but I didn't manage to configure it with xrandr.

I've looked over [2] and by using xrandr --output TV-1 --right-of VGA-1 i managed to extend my desktop to my TV. Also, i see the window transparency effect keeps working ;)

The problem is - I tried to configure xorg.conf but I didn't manage to add the displays side by side (the TV overlaps with the monitor from the top-left corner), even if they have different resolutions. I have attached my xorg.conf for reference. I realize I must be missing something trivial in the configuration. Anyone care to point it out?

Thanks,
Adrian

Section "ServerLayout"

	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"

EndSection

Section "Files"

	ModulePath   "/usr/lib/xorg/modules"
	FontPath     "/usr/share/fonts/X11/misc"
	FontPath     "/usr/share/fonts/X11/cyrillic"
	FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
	FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
	FontPath     "/usr/share/fonts/X11/Type1"
	FontPath     "/usr/share/fonts/X11/100dpi"
	FontPath     "/usr/share/fonts/X11/75dpi"
	FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
	FontPath     "built-ins"

EndSection

Quoted 10 lines

Section "Module"

	Load  "record"
	Load  "dri2"
	Load  "dri"
	Load  "glx"
	Load  "extmod"
	Load  "dbe"

EndSection

You probably don't need any of the last two sections.

Quoted 14 lines

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"

Quoted 10 lines
	Identifier   "VGA-1"
     
   
	DisplaySize	  340   270	# mm
	VendorName   "NEC"
	ModelName    "LCD72VM"
	HorizSync    31.0 - 81.0
	VertRefresh  56.0 - 75.0
	Option	    "DPMS"

You shouldn't need any of the options above.

Quoted 6 lines

EndSection

Section "Monitor"
Identifier "TV-1"
Option "RightOf" "Monitor0"

The "Monitor0" identifier is wrong, I guess you meant "VGA-1".

Quoted 12 lines
         HorizSync    30-50
	VertRefresh  60
	# 720x576 @ 50Hz, 31.25kHz, itu-r bt.1358 625/50/p/1:1, RGB, YPbPr, HDMI
	ModeLine "720x576@50"  27     720 732 795 864  576 581 586 625 -hsync -vsync
	# nonstandard PAL (Works with BOB deinterlace) It is 60Hz but works well with nVIDIA PAL-B TV-OUT
	# Nvidia option: Option "TVStandard" "PAL-B"
	ModeLine "720x576@60" 32.7  720 744 816 912  576 577 580 597

	# This modeline is 50Hz interlaced and works well with kerneldeint:
	ModeLine "720x576i" 13.875  720 744 808 888  576 581 586 625 -hsync -vsync interlace

You shouldn't need to set any timings manually.

Quoted 59 lines

EndSection
Section "Device"
### Available Driver options are:-
### Values:<i>: integer,<f>: float,<bool>: "True"/"False", ###<string>: "String",<freq>: "<f> Hz/kHz/MHz" ### [arg]: arg optional
#Option "SWcursor" # [<bool>]
#Option "HWcursor" # [<bool>]
#Option "NoAccel" # [<bool>]
#Option "ShadowFB" # [<bool>]
#Option "UseFBDev" # [<bool>]
#Option "Rotate" # [<str>]
#Option "VideoKey" #<i>
#Option "FlatPanel" # [<bool>]
#Option "FPDither" # [<bool>]
#Option "CrtcNumber" #<i>
#Option "FPScale" # [<bool>]
#Option "FPTweak" #<i>
#Option "DualHead" "True" # [<bool>]
Identifier "Card0"
Driver "nouveau"
VendorName "nVidia Corporation"
BoardName "NV18 [GeForce4 MX 440 AGP 8x]"
BusID "PCI:2:0:0"
Option "Monitor-VGA-1" "VGA-1"
Option "Monitor-TV-1" "TV-1"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
#Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

Signature · 8 lines
---
Adrian Popa
NOC Division
Network Engineer
Divizia Centrul National de Operare Retea
Departament Transport IP&  Metro
Compartiment IP Core&  Backbone
Phone: +40 21 400 3099