Mark Adams a écrit :
Try posting the output from the vt1622 utility from the unichrome
project when you type 'D' and I'll see if I can spot anything obvious.
Please see attached a log file of some tests I just made.
Summary :
* dfbshow main.png on /dev/fb0
* fbset -i + directfbrc included
* monitor + TV connected (S-video, PAL)
* viafb patcher2k (patch 3), no mods, or patched tables
* vt1622 program, modified by me, or modified by Mark Adams
* before or after setting registers for 720x576 PAL
TIA
--
NH
* no DFB apps launched (/dev/fb0 is free)
[EMAIL PROTECTED]:~# fbset -s
mode "720x576-74"
# D: 41.475 MHz, H: 44.693 kHz, V: 74.488 Hz
geometry 720 576 720 1152 32
timings 24111 88 32 16 4 88 4
rgba 8/16,8/8,8/0,8/24
endmode
* dfbshow main.png on /dev/fb0 with following directfbrc
* viafb patcher2k (patch 3), no mods
[EMAIL PROTECTED]:~# fbset -s
mode "720x576-50"
# D: 28.000 MHz, H: 31.250 kHz, V: 50.000 Hz
geometry 720 576 720 1152 32
timings 35714 32 8 46 0 136 3
rgba 8/16,8/8,8/0,8/24
endmode
Frame buffer device information:
Name : UNICHROME
Address : 0xe4000000
Size : 33288192
Type : PACKED PIXELS
Visual : TRUECOLOR
XPanStep : 0
YPanStep : 1
YWrapStep : 0
LineLength : 2880
MMIO Address: 0xe8000000
MMIO Size : 16777216
Accelerator : Unknown (77)
[EMAIL PROTECTED]:~# cat /etc/directfbrc | grep -v '^#'
mode=720x576
depth=32
pixelformat=ARGB
disable-module=lirc
disable-module=joystick
disable-module=cle266
no-vt
* vt1622 program, modified by me (clock calculations): just displaying register
settings
[EMAIL PROTECTED]:/home/nhuillard/prog/viafb_tv3_tests/vt1622# ./vt1622
VT1622 Register display/change program: 1.0.5
Please look at source code for information ....
WARNING: Playing around with TV settings could seriously damage your TV !
Enable IO Result: 0 Success
Enable IO Result: 0 Success
Main commands are:
q - Quit
D - Display registers
A - Set regs for PAL 720x576
B - Set regs for NTSC 720x480
S - Save regs for PAL
T - Save regs for NTSC
C - Change a TV register
[1-z] - Change a particular register
See the source code for more info ....
Enter Command Character: D
TVRegs 0 1 2 3 4 5 6 7 8 9 A B C D E F
0x00: 04 00 00 a0 00 00 10 df 80 3a 60 00 57 46 00 8d
0x10: 00 00 e5 07 21 10 cb 8a 09 2a 00 03 02 80 00 04
0x20: 13 0c 04 7b 48 64 30 93 49 5f 15 a5 23 77 ff 00
0x30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x40: 00 00 00 00 00 00 00 00 00 00 e7 45 04 00 00 45
0x50: e7 d0 23 a2 02 5f d0 7e 23 94 d0 27 8f 16 00 00
0x60: 00 00 00 37 04 00 00 00 cb 8a 09 2a
CRTCRegs
0x00: 78 59 59 9c 61 93 a1 f0 00 60 1e 00 00 00 3f ff
0x10: 5a 03 3f 68 00 3f a2 e3 ff
CLK1: 78.749990
CLK2: 67.499991
CRTC_HTOTAL : 00000078 120
CRTC_HEND : 00000059 89
CRTC_HSTART_BLAN: 00000059 89
CRTC_HEND_BLANK : 0000007c 124
CRTC_HSTART_SYNC: 00000061 97
CRTC_HEND_SYNC : 00000013 19
CRTC_VTOTAL : 000002a1 673
CRTC_VEND : 0000023f 575
CRTC_VSTART_BLAN: 0000003f 63
CRTC_VEND_BLANK : 000000a2 162
CRTC_VSTART_SYNC: 0000025a 602
CRTC_VEND_SYNC : 00000003 3
CRTC_VMAX_SCAN_L: 00000060 96
PLL_N : 00000021 33
PLL_D : 00000007 7
PLL_P : 00000004 4
PLL_P2 : 00000005 5
PLL_R : 00000007 7
SUB_CARRIER : 2a098acb 705268427
SUB_CARRIER_PHAS: 00000204 516
GH_TOTAL : 000003e7 999
GH_ACTIVE : 000002d0 720
GV_TOTAL : 000002a2 674
TH_TOTAL : 0000035f 863
TH_ACTIVE : 000002d0 720
START_VIDEO : 000000df 223
START_HORIZ : 00000080 128
START_VERT : 0000013a 314
TVIDEO_START : 00000127 295
TVIDEO_END : 0000068f 1679
THSYNC_WIDTH : 0000007e 126
TBURST_START : 00000394 916
TBURST_END : 000000d0 208
TV_BURST_STEP : 0000000c 12
VSCALE_FAC : 00000000 0
HSCALE_FAC : 00000000 0
SH_TOTAL : 00000437 1079
CR_AMP : 00000060 96
BLACK_LEVEL : 00000000 0
Y_AMP : 00000057 87
CB_AMP : 00000046 70
BLANK_LEVEL : 0000007b 123
HUE : 00000000 0
INPUT_THRESHOLD : 000000e7 231
INPUT_DELTA : 00000045 69
* vt1622 program, modified by Mark Adams: just displaying register settings
[EMAIL PROTECTED]:/home/nhuillard/prog/viafb_tv3_tests/vt1622#
./vt1622-mark_adams
VT1622 Register display/change program: 1.0.5
Please look at source code for information ....
WARNING: Playing around with TV settings could seriously damage your TV !
Enable IO Result: 0 Success
Enable IO Result: 0 Success
Enable IO Result: 0 Success
Main commands are:
q - Quit
D - Display registers
A - Set regs for PAL 720x576
B - Set regs for NTSC 720x480
S - Save regs for PAL
T - Save regs for NTSC
C - Change a TV register
[1-z] - Change a particular register
See the source code for more info ....
Enter Command Character: D
TVRegs
0x00: 04 00 00 a0 00 00 10 df 80 3a 60 00 57 46 00 8d
0x10: 00 00 e5 07 21 10 cb 8a 09 2a 00 03 02 80 00 04
0x20: 13 0c 04 7b 48 64 30 93 49 5f 15 a5 23 77 ff 00
0x30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x40: 00 00 00 00 00 00 00 00 00 00 e7 45 04 00 00 45
0x50: e7 d0 23 a2 02 5f d0 7e 23 94 d0 27 8f 16 00 00
0x60: 00 00 00 37 04 00 00 00 cb 8a 09 2a 04
CRTCRegs
0x00: 78 59 59 9c 61 93 a1 f0 00 60 1e 00 00 00 3f ff
0x10: 5a 03 3f 68 00 3f a2 e3 ff 00 00 00 00 00 00 00
0x20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x30: 00 00 01 26 00 20 01 00 3e 0c 1c 05 71 40 00 00
0x40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x50: 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
0x60:
SequencerRegs
0x00: 03 01 0f 03 0e 00 00 00 00 00 00 00 00 00 00 00
0x10: 01 78 30 08 01 ae 08 1f 4e 00 1e f0 b5 00 f1 00
0x20: 00 00 1f 00 00 00 3c 00 00 00 00 00 00 ff ff e8
0x30: e4 3d 00 00 3f 06 11 22 31 08 0f 02 00 00 03 00
0x40: 00 b0 10 00 c3 2a 47 1c 07 41 46 48 00 00 00 00
0x50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x60:
CLK1: 33.749996
CLK2: 26.999997
CRTC_HTOTAL : 00000078 120
CRTC_HEND : 00000059 89
CRTC_HSTART_BLAN: 00000059 89
CRTC_HEND_BLANK : 0000007c 124
CRTC_HSTART_SYNC: 00000061 97
CRTC_HEND_SYNC : 00000013 19
CRTC_VTOTAL : 000002a1 673
CRTC_VEND : 0000023f 575
CRTC_VSTART_BLAN: 0000023f 575
CRTC_VEND_BLANK : 000000a2 162
CRTC_VSTART_SYNC: 0000025a 602
CRTC_VEND_SYNC : 00000003 3
CRTC_VMAX_SCAN_L: 00000060 96
PLL_N : 00000021 33
PLL_D : 00000007 7
PLL_P : 00000004 4
PLL_P2 : 00000005 5
PLL_R : 00000007 7
SUB_CARRIER : 2a098acb 705268427
SUB_CARRIER_PHAS: 00000204 516
GH_TOTAL : 000003e7 999
GH_ACTIVE : 000002d0 720
GV_TOTAL : 000002a2 674
TH_TOTAL : 0000035f 863
TH_ACTIVE : 000002d0 720
START_VIDEO : 000000df 223
START_HORIZ : 00000080 128
START_VERT : 0000013a 314
TVIDEO_START : 00000127 295
TVIDEO_END : 0000068f 1679
THSYNC_WIDTH : 0000007e 126
TBURST_START : 00000394 916
TBURST_END : 000000d0 208
TV_BURST_STEP : 0000000c 12
VSCALE_FAC : 00000000 0
HSCALE_FAC : 00000000 0
SH_TOTAL : 00000437 1079
CR_AMP : 00000060 96
BLACK_LEVEL : 00000000 0
Y_AMP : 00000057 87
CB_AMP : 00000046 70
BLANK_LEVEL : 0000007b 123
HUE : 00000000 0
INPUT_THRESHOLD : 000000e7 231
INPUT_DELTA : 00000045 69
* after setting registers for 720x576 PAL (Marks' program)
* TV is blanked (after a very little no-synch time), no high-pitched noise
* monitor is also blanked (even in DPMS sleep, aparently)
[EMAIL PROTECTED]:/home/nhuillard/prog/viafb_tv3_tests/vt1622#
./vt1622-mark_adams
VT1622 Register display/change program: 1.0.5
Please look at source code for information ....
WARNING: Playing around with TV settings could seriously damage your TV !
Enable IO Result: 0 Success
Enable IO Result: 0 Success
Enable IO Result: 0 Success
Main commands are:
q - Quit
D - Display registers
A - Set regs for PAL 720x576
B - Set regs for NTSC 720x480
S - Save regs for PAL
T - Save regs for NTSC
C - Change a TV register
[1-z] - Change a particular register
See the source code for more info ....
Enter Command Character: A
Clock: 0.000000 0 0 0
CLK1: 26.999997
CLK2: 26.999997
VSync: -0.007175
HSync: -0.013988
HTotal: -965083096
Enter Command Character: D
TVRegs
0x00: 04 00 00 a0 00 00 10 b3 4c 2a 5a 00 49 46 00 8d
0x10: 00 00 a7 1e c6 1c 24 8b 09 2a 00 03 06 80 00 04
0x20: 13 0c 04 7b 48 64 30 93 49 5f 15 a5 23 77 ff 00
0x30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x40: 00 00 00 00 00 00 00 00 00 00 e7 45 04 00 00 45
0x50: 27 d0 20 70 02 27 d0 7e 20 94 d0 98 38 00 00 00
0x60: 00 00 00 27 00 00 00 00 24 8b 09 2a 04
CRTCRegs
0x00: 00 59 58 84 5b 03 6f f0 00 60 1e 00 00 00 3f ff
0x10: 5a 33 3f 68 00 40 70 e3 ff 00 00 00 00 00 00 00
0x20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x30: 00 00 01 06 00 20 01 00 3e 0c 1c 05 71 40 00 00
0x40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x50: 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
0x60:
SequencerRegs
0x00: 03 01 0f 03 0e 00 00 00 00 00 00 00 00 00 00 00
0x10: 01 78 30 08 01 ae 08 1f 4e 00 1e f0 b5 00 f1 00
0x20: 00 00 1f 00 00 00 3c 00 00 00 00 00 00 ff ff e8
0x30: e4 3d 00 00 3f 06 11 22 31 08 0f 02 00 00 03 00
0x40: 00 b0 10 00 c3 2a 47 1c 07 41 46 48 00 00 00 00
0x50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x60:
CLK1: 26.999997
CLK2: 26.999997
CRTC_HTOTAL : 00000000 0
CRTC_HEND : 00000059 89
CRTC_HSTART_BLAN: 00000058 88
CRTC_HEND_BLANK : 00000004 4
CRTC_HSTART_SYNC: 0000005b 91
CRTC_HEND_SYNC : 00000003 3
CRTC_VTOTAL : 0000026f 623
CRTC_VEND : 0000023f 575
CRTC_VSTART_BLAN: 00000240 576
CRTC_VEND_BLANK : 00000070 112
CRTC_VSTART_SYNC: 0000025a 602
CRTC_VEND_SYNC : 00000003 3
CRTC_VMAX_SCAN_L: 00000060 96
PLL_N : 000000c6 198
PLL_D : 0000001e 30
PLL_P : 00000007 7
PLL_P2 : 00000007 7
PLL_R : 00000005 5
SUB_CARRIER : 2a098b24 705268516
SUB_CARRIER_PHAS: 00000204 516
GH_TOTAL : 00000027 39
GH_ACTIVE : 000002d0 720
GV_TOTAL : 00000270 624
TH_TOTAL : 00000027 39
TH_ACTIVE : 000002d0 720
START_VIDEO : 000000b3 179
START_HORIZ : 0000014c 332
START_VERT : 0000012a 298
TVIDEO_START : 00000098 152
TVIDEO_END : 00000038 56
THSYNC_WIDTH : 0000007e 126
TBURST_START : 00000094 148
TBURST_END : 000000d0 208
TV_BURST_STEP : 0000000c 12
VSCALE_FAC : 00000000 0
HSCALE_FAC : 00000000 0
SH_TOTAL : 00000027 39
CR_AMP : 0000005a 90
BLACK_LEVEL : 00000000 0
Y_AMP : 00000049 73
CB_AMP : 00000046 70
BLANK_LEVEL : 0000007b 123
HUE : 00000000 0
INPUT_THRESHOLD : 000000e7 231
INPUT_DELTA : 00000045 69
* vt1622 program, setting 720x576 mode very much like the original code was
(few mods)
* TV is blanked, but TV menu (OSD) has a few glitches on less than 5 lines, at
random places on the screen, 2 times per second approx
* monitor says "scan rate out of range"
[EMAIL PROTECTED]:/home/nhuillard/prog/viafb_tv3_tests/vt1622# ./vt1622
VT1622 Register display/change program: 1.0.5
Please look at source code for information ....
WARNING: Playing around with TV settings could seriously damage your TV !
Enable IO Result: 0 Success
Enable IO Result: 0 Success
Main commands are:
q - Quit
D - Display registers
A - Set regs for PAL 720x576
B - Set regs for NTSC 720x480
S - Save regs for PAL
T - Save regs for NTSC
C - Change a TV register
[1-z] - Change a particular register
See the source code for more info ....
Enter Command Character: A
CLK1: 58.333326
CLK2: 58.333326
VSync: -0.167016
HSync: 0.016019
HTotal: 1820786720
Enter Command Character: D
TVRegs 0 1 2 3 4 5 6 7 8 9 A B C D E F
0x00: 04 00 00 a0 00 00 10 40 40 3a 5a 00 49 46 00 8d
0x10: 00 00 a9 19 dc 24 aa 0e 75 13 00 03 0e 80 00 04
0x20: 13 0c 04 7b 48 64 30 93 49 5f 15 a5 23 77 ff 00
0x30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x40: 00 00 00 00 00 00 00 00 00 00 e7 45 04 00 00 45
0x50: 1f d0 20 70 02 1f d0 32 20 94 d0 80 20 00 00 00
0x60: 00 00 00 1f 00 00 00 00 aa 0e 75 13
CRTCRegs
0x00: ee 59 59 83 5c 00 6f f0 00 60 1e 00 00 00 3f ff
0x10: 5a 03 3f 68 00 3f a2 e3 ff
CLK1: 58.333326
CLK2: 58.333326
CRTC_HTOTAL : 000000ee 238
CRTC_HEND : 00000059 89
CRTC_HSTART_BLAN: 00000059 89
CRTC_HEND_BLANK : 00000003 3
CRTC_HSTART_SYNC: 0000005c 92
CRTC_HEND_SYNC : 00000000 0
CRTC_VTOTAL : 0000026f 623
CRTC_VEND : 0000023f 575
CRTC_VSTART_BLAN: 0000003f 63
CRTC_VEND_BLANK : 000000a2 162
CRTC_VSTART_SYNC: 0000025a 602
CRTC_VEND_SYNC : 00000003 3
CRTC_VMAX_SCAN_L: 00000060 96
PLL_N : 000000dc 220
PLL_D : 00000019 25
PLL_P : 00000009 9
PLL_P2 : 00000009 9
PLL_R : 00000005 5
SUB_CARRIER : 13750eaa 326438570
SUB_CARRIER_PHAS: 00000204 516
GH_TOTAL : 0000001f 31
GH_ACTIVE : 000002d0 720
GV_TOTAL : 00000270 624
TH_TOTAL : 0000001f 31
TH_ACTIVE : 000002d0 720
START_VIDEO : 00000140 320
START_HORIZ : 00000140 320
START_VERT : 0000013a 314
TVIDEO_START : 00000080 128
TVIDEO_END : 00000020 32
THSYNC_WIDTH : 00000032 50
TBURST_START : 00000094 148
TBURST_END : 000000d0 208
TV_BURST_STEP : 0000000c 12
VSCALE_FAC : 00000000 0
HSCALE_FAC : 00000000 0
SH_TOTAL : 0000001f 31
CR_AMP : 0000005a 90
BLACK_LEVEL : 00000000 0
Y_AMP : 00000049 73
CB_AMP : 00000046 70
BLANK_LEVEL : 0000007b 123
HUE : 00000000 0
INPUT_THRESHOLD : 000000e7 231
INPUT_DELTA : 00000045 69
* vith my modified viafb tables
* TV is not locked, image totally black, TV menu is noisy (but lines are +/-2
cm horizontally, and vertical lock is lost every 2 seconds)
* monitor is out of range
[EMAIL PROTECTED]:/home/nhuillard/prog/viafb_tv3_tests/vt1622# ./vt1622
VT1622 Register display/change program: 1.0.5
Please look at source code for information ....
WARNING: Playing around with TV settings could seriously damage your TV !
Enable IO Result: 0 Success
Enable IO Result: 0 Success
Main commands are:
q - Quit
D - Display registers
A - Set regs for PAL 720x576
B - Set regs for NTSC 720x480
S - Save regs for PAL
T - Save regs for NTSC
C - Change a TV register
[1-z] - Change a particular register
See the source code for more info ....
Enter Command Character: D
TVRegs 0 1 2 3 4 5 6 7 8 9 A B C D E F
0x00: 04 00 00 a4 00 00 10 4f 84 2a 5a 00 49 46 00 8d
0x10: 00 00 a7 1e dc 24 e3 33 89 28 ee 03 02 80 00 04
0x20: 17 0c 6f 79 48 64 30 93 49 5f 15 a5 23 77 ff 00
0x30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 42
0x50: 5f d0 23 70 02 5f d0 7e 23 94 d0 08 a8 16 00 00
0x60: 00 00 00 5f 03 00 00 00 e3 33 89 28
CRTCRegs
0x00: 67 59 58 8b 5b 83 6f f0 00 60 1e 00 00 00 3f ff
0x10: 5a 03 3f 68 00 40 70 e3 ff
CLK1: 47.014919
CLK2: 60.576915
CRTC_HTOTAL : 00000067 103
CRTC_HEND : 00000059 89
CRTC_HSTART_BLAN: 00000058 88
CRTC_HEND_BLANK : 0000006b 107
CRTC_HSTART_SYNC: 0000005b 91
CRTC_HEND_SYNC : 00000003 3
CRTC_VTOTAL : 0000026f 623
CRTC_VEND : 0000023f 575
CRTC_VSTART_BLAN: 00000040 64
CRTC_VEND_BLANK : 00000070 112
CRTC_VSTART_SYNC: 0000025a 602
CRTC_VEND_SYNC : 00000003 3
CRTC_VMAX_SCAN_L: 00000060 96
PLL_N : 000000dc 220
PLL_D : 0000001e 30
PLL_P : 00000009 9
PLL_P2 : 00000007 7
PLL_R : 00000005 5
SUB_CARRIER : 288933e3 680080355
SUB_CARRIER_PHAS: 0000026f 623
GH_TOTAL : 0000035f 863
GH_ACTIVE : 000002d0 720
GV_TOTAL : 00000270 624
TH_TOTAL : 0000035f 863
TH_ACTIVE : 000002d0 720
START_VIDEO : 0000004f 79
START_HORIZ : 00000084 132
START_VERT : 0000012a 298
TVIDEO_START : 00000108 264
TVIDEO_END : 000006a8 1704
THSYNC_WIDTH : 0000007e 126
TBURST_START : 00000394 916
TBURST_END : 000000d0 208
TV_BURST_STEP : 0000000c 12
VSCALE_FAC : 00000000 0
HSCALE_FAC : 00000000 0
SH_TOTAL : 0000035f 863
CR_AMP : 0000005a 90
BLACK_LEVEL : 00000000 0
Y_AMP : 00000049 73
CB_AMP : 00000046 70
BLANK_LEVEL : 00000079 121
HUE : 00000000 0
INPUT_THRESHOLD : 00000000 0
INPUT_DELTA : 00000000 0
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users