Subject: pkg/34032: Add options to nvtv command line
To: None <,,>
From: ptiJo <>
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
System: NetBSD 3.99.21 NetBSD 3.99.21 (GENERIC) #0: Sun Jul 9 09:43:28 UTC 2006 i386
Architecture: i386
Machine: i386
	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.
	It should apply to anyone when the hard defined mode don't match exactly the TV alignement.
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)},

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.