Subject: pkg/34032: Add options to nvtv command line
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: ptiJo <joel@carnat.net>
List: pkgsrc-bugs
Date: 07/18/2006 22:40:00
>Number:         34032
>Category:       pkg
>Synopsis:       Add command-line option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 18 22:40:00 +0000 2006
>Originator:     ptiJo
>Release:        NetBSD 3.99.21
>Organization:
	
>Environment:
	
	
System: NetBSD atheria.tumfatig.net 3.99.21 NetBSD 3.99.21 (GENERIC) #0: Sun Jul 9 09:43:28 UTC 2006 builds@b3.netbsd.org:/home/builds/ab/HEAD/i386/200606220000Z-obj/home/builds/ab/HEAD/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
	My configuration (GeForce2 MX 400 and Toshiba TV) requires me to slip TV alignement to get a center image and no pink stripes on the right of the TV screen. The official nvtv program does not have a scriptable way t set the alignement ; it is possible with the GUI only though. The patch comes from the geekbox project where the position is chageable from the console.
>How-To-Repeat:
	It should apply to anyone when the hard defined mode don't match exactly the TV alignement.
>Fix:
Add a patch in nvtv pkgsrc:
# cat graphics/nvtv/patches/patch-aa 
--- src/nvtv.c.orig     2004-04-20 16:55:17.000000000 +0200
+++ src/nvtv.c  2006-07-18 23:18:27.000000000 +0200
@@ -173,4 +173,8 @@
   {"Sharpness",       min:   0, max:100, SET_FIELD(sharpness)},
   {"CrossColor",      min:   0, max:100, SET_FIELD(cross_color)},
+  {"TVPositionX",     min:-100, max:100, SET_FIELD(tv_hoffset)},
+  {"TVPositionY",     min:-100, max:100, SET_FIELD(tv_voffset)},
+  {"MonitorPositionX",     min:-100, max:100, SET_FIELD(mon_hoffset)},
+  {"MonitorPositionY",     min:-100, max:100, SET_FIELD(mon_voffset)},
   {NULL}
 };

I use it this way:
# sudo nvtv -S PAL -r 800,600 -s Normal -C SVIDEO --set TVPositionX:7,0 -t

This matches the "TV Position" value of the "Position" tab in the nvtv-gtk2 GUI.

>Unformatted: