All of lore.kernel.org
 help / color / mirror / Atom feed
From: Emil Velikov <emil.l.velikov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Wade Berrier <wberrier-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: SVIDEO and xrandr
Date: Sun, 25 Nov 2012 23:56:35 +0000	[thread overview]
Message-ID: <50B2B033.4030803@gmail.com> (raw)
In-Reply-To: <20121125084608.GA5165@miniwade>

On 25/11/12 08:46, Wade Berrier wrote:
> Hello,
> 
> I've been trying to get my n17 card to do SVIDEO tv out
> 
> --------------------------
> 01:00.0 VGA compatible controller: NVIDIA Corporation NV17 [GeForce4 MX 440] (rev a3)
> --------------------------
> 
> It is close to working.  The first issue is that it was outputting PAL, and I
> found the module parameter and kernel boot config to change that:
> 
> --------------------------
> nouveau.tv_norm=NTSC-M
> --------------------------
> 
> That makes the picture look much better, but the colors are still off.
> 
> Then I notice that the card thinks it's outputting COMPOSITE instead of SVIDEO:
> 
> --------------------------
> wberrier@myth:~$ xrandr --prop
> Screen 0: minimum 320 x 200, current 640 x 480, maximum 4096 x 4096
> VGA-1 disconnected (normal left inverted right x axis y axis)
> TV-1 connected 640x480+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
>         overscan: 50 (0x00000032)       range:  (0,100)
>         hue: 0 (0x00000000)     range:  (0,100)
>         saturation: 50 (0x00000032)     range:  (0,100)
>         flicker reduction: 50 (0x00000032)      range:  (0,100)
>         mode:   NTSC-M
>                 supported: PAL          PAL-M        PAL-N        PAL-Nc      
>                            NTSC-M       NTSC-J      
>         subconnector:   Composite
>                 supported: Unknown      Composite    SVIDEO       Component   
>                            SCART       
>         select subconnector:    Automatic
>                 supported: Automatic    Composite    SVIDEO       Component   
>                            SCART       
>    720x480        59.9 +
>    1024x768       59.9  
>    800x600        59.9  
>    720x576        59.9  
>    640x480        59.9* 
>    400x300       119.9                                                                                                                                                    
>    320x240       119.9  
>    320x200       119.9  
> --------------------------
> 
> When trying to change the subconnector it to SVIDEO, it fails:
> 
> --------------------------
> wberrier@myth:~$ xrandr --output TV-1 --set subconnector SVIDEO
> X Error of failed request:  BadValue (integer parameter out of range for operation)
>   Major opcode of failed request:  149 (RANDR)
>   Minor opcode of failed request:  13 (RRChangeOutputProperty)
>   Value in failed request:  0x52
>   Serial number of failed request:  29
>   Current serial number in output stream:  30
> --------------------------
> 
> It appears that other people on the net are also having this issue.
> 
> I dug around the kernel nouveau/drm source and found where the default for
> COMPOSITE gets set, and also discovered that the "override_conntype" wasn't
> what I was looking for.
> 
> Any help about how to solve this and what the best method is?
> 
> An additional module parameter for nouveau may be nice for forcing the
> subconnector.
> 
> Fixing xrandr to work would also be nice, as it also fails to set the mode:
> 
> --------------------------
> wberrier@myth:~$ xrandr --output TV-1 --set mode PAL
> X Error of failed request:  BadValue (integer parameter out of range for operation)
>   Major opcode of failed request:  149 (RANDR)
>   Minor opcode of failed request:  13 (RRChangeOutputProperty)
>   Value in failed request:  0x52
>   Serial number of failed request:  29
>   Current serial number in output stream:  30
> --------------------------
> 
> Help?
> 
> Wade
> _______________________________________________
> Nouveau mailing list
> Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
> http://lists.freedesktop.org/mailman/listinfo/nouveau
> 

Hi Wade

If you look at nv17_tv.c it will answer all your questions

It boils down to nv17_tv_set_property()

* if (property == conf->tv_mode_property) {
  	if (connector->dpms != DRM_MODE_DPMS_OFF)
  		return -EINVAL;
* if (property == conf->tv_select_subconnector_property) {
  	if (tv_norm->kind != TV_ENC_MODE)
  		return -EINVAL;

For a list of TV_ENC_MODE vs CTV_ENC_MODE take a look in nv17_tv_modes.c

Have fun :P

      reply	other threads:[~2012-11-25 23:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-25  8:46 SVIDEO and xrandr Wade Berrier
2012-11-25 23:56 ` Emil Velikov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50B2B033.4030803@gmail.com \
    --to=emil.l.velikov-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    --cc=wberrier-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.