View: 76230|Reply: 77

[SOLVED] Tvout

[Copy link]

1

threads

32

posts

216

credits

Intermediate member

Rank: 3Rank: 3

credits
216
Published in 2016-3-29 00:58:28 | Show all floors |Read mode
Edited by jernej at 2016-5-6 17:37

Hello, how to enable analog tvout for openelec build. I tried to modify script.fex - but got nothing. Then I built my own image and did not found module tv.ko(i read many other topics about it). Is there any information how to enable tvout for openelec builds?
PS
If tvout is not work with current build. Do you plan to add this possibility in the future?

If not - how can i add it myself? I really need working tvout for OpenElec...

PS2
I have OpiPC board


4

threads

1118

posts

9497

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9497
Published in 2016-3-29 03:36:45 | Show all floors
Several people already reported that TV out doesn't work. I don't have TV at hand so I never tested. I can give you few pointers if you tell me what script.fex do you plan to use and if those TV setttings worked on some other distro? At least in a short run I won't actively work on old kernel/CedarX.

P.S. You don't need to modprobe tv.ko, it is already included in the kernel.

1

threads

32

posts

216

credits

Intermediate member

Rank: 3Rank: 3

credits
216
 Author| Published in 2016-3-29 05:26:53 | Show all floors
well.. with scripts i worked out before decided to do my own build, so I just make bin2fex for latest buld (here https://mega.nz/#F!ENxTQZiT!uEJh4YKV1-X7KxLxqHb4dg) in script.fex i make several changes
[disp_init]
disp_init_enable = 1
disp_mode = 1
screen0_output_type = 3
screen0_output_mode = 10
screen1_output_type = 2
screen1_output_mode = 11
fb0_format = 0
fb0_width = 0
fb0_height = 0
fb1_format = 0
fb1_width = 0
fb1_height = 0

[tv_para]
tv_used = 1
tv_dac_used = 1
tv_dac_src0 = 0

[tvout_para]
tvout_used =
tvout_channel_num =
tv_en =

[tvin_para]
tvin_used =
tvin_channel_num =

I read this in many forums (but mostly about loboris builds.. ubuntu etc)
but still nothing - no tv signal, no noise or anything else - just black screen without signal...

PS
at this moment i have no such time to do experiments with own build, so i decide write this topic... may be you will help me.. Not only me - very many my friends want to buy opi for openelec exactly to use it with old tvs(summer country houses, cars with tv aux, pocket tvs with composite input, etc)... tvout is very very needed

4

threads

1118

posts

9497

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9497
Published in 2016-3-29 05:51:40 | Show all floors
Hm... Is there a reason why did you change screen1 settings? Kodi is using only screen0. What happens if you configure screen0 as TV out?

As I already said, I have only HDMI display and no TV, so I can't develop this functionality and my focus already shifted to mainline kernel. I will gladly help here whoever wants to implement that.

1

threads

32

posts

216

credits

Intermediate member

Rank: 3Rank: 3

credits
216
 Author| Published in 2016-3-31 17:13:52 | Show all floors
finally i tested script.bin with screen0_output_type = 2 and screen0_output_mode = 11 still no signal at all

I checked my board with ubuntu image (added "tv" to /etc/modules and fixed script.bin) and my tvout worked well. I noticed that when ubuntu image is loading tvout already gives to me black picture signal, even tv module swiched off. So i think that in openelec image tvout swiched off - on hardware level. May be you help me how to turn it on..

1

threads

32

posts

216

credits

Intermediate member

Rank: 3Rank: 3

credits
216
 Author| Published in 2016-3-31 17:20:34 | Show all floors
additionaly in ubuntu script.fex have [boot_disp] section - may be i must add it...

1

threads

32

posts

216

credits

Intermediate member

Rank: 3Rank: 3

credits
216
 Author| Published in 2016-3-31 19:06:14 | Show all floors
it seems [boot_disp] section has no effect

4

threads

1118

posts

9497

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9497
Published in 2016-4-1 00:11:25 | Show all floors
fsmoke replied at 2016-3-31 12:06
it seems  section has no effect

No, it hasn't. All sections which don't have any effect were removed.

From what you told me, I would assume that TV out is possible only on screen1. For this to work, Kodi needs to be changed. I can only help you with kodi code because as I said, I can't test this easily.

BTW: I think that cloned screen should be possible to set up. At least it was possible to do it with older devices like A20. You can try to search something in that direction.

1

threads

32

posts

216

credits

Intermediate member

Rank: 3Rank: 3

credits
216
 Author| Published in 2016-4-24 17:32:23 | Show all floors
Edited by fsmoke at 2016-4-24 17:34

Finally i've got some free time ...
I use ttl converter for debug my opipc, and find something interesting

This is piece of log:
...
[    2.135404] cmdline,disp=
[    2.169360] cmdline,disp=
[    2.172308] [DISP] disp_init_tv,line:531:screen 0 do not support TV TYPE!
[    2.179844] [DISP] bsp_disp_tv_register,line:938:'ptv is null
[    2.186252] [DISP] disp_device_attached_and_enable,line:159:attched ok, mgr0<-->device1, type=2, mode=11
....

It seems disp_mode param in disp_init section has no effect at all - i test it with = 0 and = 1 values - but kernel always falls to screen 0. On the other hand - tvout cannot work on screen 0 at all!! I've explored sources of sunxi display driver and found this:

static const int de_supported_output_types[] = {
        /* DISP0 */
        4, /*HDMI*/
        /* DISP1 */
        2, /*TV*/
};

So only display number = 1 could be as tv out and display number = 0 could be as hdmi only.

I have 2 questions for you:
1) why kernel ignores disp_mode parameter even if kodi does not support it - is it hardcoded somewhere in configs? If yes - then where?
2) Earlier you told about display=0 only for kodi - why? Is it possible to change this?

1

threads

32

posts

216

credits

Intermediate member

Rank: 3Rank: 3

credits
216
 Author| Published in 2016-4-24 17:40:05 | Show all floors
Edited by fsmoke at 2016-4-24 17:41

another strange thing - i have config
.....
[disp_init]
disp_init_enable = 1
disp_mode = 1
screen0_output_type = 3
screen0_output_mode = 10
screen1_output_type = 2
screen1_output_mode = 11
fb0_format = 0
fb0_width = 0
fb0_height = 0
fb1_format = 0
fb1_width = 0
fb1_height = 0

but message
[    2.172308] [DISP] disp_init_tv,line:531:screen 0 do not support TV TYPE!

not disappeared - so kernel tries to apply settings for display1 on display0 - why??
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list