maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [ANNOUNCE] TV out control home plugin (https://talk.maemo.org/showthread.php?t=68294)

pali 2011-11-17 09:50

Re: [ANNOUNCE] TV out control home plugin
 
I cable detection is not working for you, how can we check if disable button should be shown? (As I understand you enable/disable button is redundant with disconnected cable)

maacruz 2011-11-17 11:28

Re: [ANNOUNCE] TV out control home plugin
 
Quote:

Originally Posted by pali (Post 1124912)
I cable detection is not working for you, how can we check if disable button should be shown?

Cable detection is working: connecting cable to video input -> tvout automatically turns on -> I see image in TV
/sys/.../nokia-av/detect is not working or unreliable -> always 3
Because cable detection is working but nokia-av/detect==3 -> there is another way to detect cable
Sollution is in tvout desktop applet: connecting cable to video input -> applet "on/off" button automatically changes to on. Why?
(Hope you understand now)
Quote:

(As I understand you enable/disable button is redundant with disconnected cable)
That is correct.

pali 2011-11-17 11:37

Re: [ANNOUNCE] TV out control home plugin
 
Quote:

Originally Posted by maacruz (Post 1124961)
Sollution is in tvout desktop applet: connecting cable to video input -> on/off button automatically changes to on (Why?)

Xorg driver change Xv tvout enable attribute automatically (when tvout cable is plugin/unplugged). "Old" tvout desktop widget listening for Xv attributes changes so it update button text ON/OFF.

Auto enable/disable tvout output is done by Xorg driver (not software, daemon or tvout widget).

Status menu plugin using same code for Xv attributes, so it should update gconf key when Xorg driver disable tvout output. Desktop widget now monitor only gconf keys, so if you did not see that button ON/OFF changed, there is problem in status menu widget...


I think that in status menu widget is some race condition (and that is maybe reason why is not working):

Xv enable attrbite was changed --> run callback function which should update gconf key

and when gconf key is changed --> run callback function which should update Xv attributes (and Xorg driver will enable/disable output)

Estel 2011-11-17 16:35

Re: [ANNOUNCE] TV out control home plugin
 
Quote:

Originally Posted by maacruz (Post 1124876)
On the other hand, thinking again about the on/off setting from a usability point of view, I think it should be removed from the control pannel applet, because it is redundant and very probably will cause problems because the semantics it implies.

Can't agree, and please, don't even think about it.

N900 turns tv-out automatically, when a resistance of ~75 Ohm is detected, between appropriate pins of jack socket. Particularly, it's result of it detecting such resistance on plug, due to it being connected to composite video in of TV - resistance there *should* be 75 Ohm.

Ho ever, many TV's - especially new ones - doesn't follow rule of 75 Ohm (it was technical reason, not a rule of thumb - some part got such resistance in older TV's), and, in "worse" cases (at least for our device), it doesn't enable composite in (and such 75 Ohm resistance), unless it detect signal.

At the same time, N900 doesn't enable signal, until it gets 75 Ohm. So, both devices are waiting forever for each other. In times before TV-Out control widget, one need to prepare special cable, with 75 Ohm resistor bundled inside, and switch, to "cheat" N900 into detecting 75 Ohm, and quickly turn switch, so TV detect signal - and hope, that it will be detected by N900, again, before it disables signal "thinking", that TV cable isn't connected.

So, with all due respect, ideas of disabling manual control over TV-Out, should be fought with fire. I don't care about noobs messing up in their control panel - if someone doesn't understand basic things, he/she got enough things inside controls, to f*** everything this way or another. If someone doesn't feel confident with changing settings, let them stay away from control panel.

At the same time, I doesn't have anything against removing on/off from desktop widget - little inconvenient, but, if it's available from CP, it's ok.

/Estel

maacruz 2011-11-17 17:41

Re: [ANNOUNCE] TV out control home plugin
 
Quote:

Originally Posted by Estel (Post 1125074)
Can't agree, and please, don't even think about it.

...

Ho ever, many TV's - especially new ones - doesn't follow rule of 75 Ohm (it was technical reason, not a rule of thumb - some part got such resistance in older TV's), and, in "worse" cases (at least for our device), it doesn't enable composite in (and such 75 Ohm resistance), unless it detect signal.

At the same time, N900 doesn't enable signal, until it gets 75 Ohm. So, both devices are waiting forever for each other. In times before TV-Out control widget, one need to prepare special cable, with 75 Ohm resistor bundled inside, and switch, to "cheat" N900 into detecting 75 Ohm, and quickly turn switch, so TV detect signal - and hope, that it will be detected by N900, again, before it disables signal "thinking", that TV cable isn't connected.

/Estel

Ok, if you are going to be that angry, I'll admit "octopus" as pet :D
Let's the control panel have the option to force enable the tv out. But it should be made clear that is an override, so instead of "[] Enable" it should read "[] Force enable" or "[] Manually turn on" or something like that, so at least intelligent noobs understand that they are screwing something.

maacruz 2011-11-17 18:02

Re: [ANNOUNCE] TV out control home plugin
 
Quote:

Originally Posted by pali (Post 1124963)
Xorg driver change Xv tvout enable attribute automatically (when tvout cable is plugin/unplugged). "Old" tvout desktop widget listening for Xv attributes changes so it update button text ON/OFF.

Auto enable/disable tvout output is done by Xorg driver (not software, daemon or tvout widget).

Ok, understood.
Quote:

Status menu plugin using same code for Xv attributes, so it should update gconf key when Xorg driver disable tvout output. Desktop widget now monitor only gconf keys, so if you did not see that button ON/OFF changed, there is problem in status menu widget...
Your desktop widget works. Button changes. Gconf key is updated.

Quote:

I think that in status menu widget is some race condition (and that is maybe reason why is not working):
status menu widget is not shown

Quote:

Xv enable attrbite was changed --> run callback function which should update gconf key
This works
Quote:

and when gconf key is changed --> run callback function which should update Xv attributes (and Xorg driver will enable/disable output)
This works too.

willi6868 2011-11-25 12:07

Re: [ANNOUNCE] TV out control home plugin
 
Quote:

Originally Posted by alex-12gods (Post 1122937)
after installing .dep files(with clean app) i lost all apples on status menu and also tvout control widget wont start.... what did i do wrong???(sorry for my english)

have the same problem!! Reboot and removing of the app didn't work:( What should I do?!

What have i to do to see my apps in status bar again?! :confused:

pls help me


EDIT:

Ok it works.:cool: I restarted my phone about 5 times... :)

Gusse 2011-11-30 13:10

Re: [ANNOUNCE] TV out control home plugin
 
There seems to be a bug with scaling. Scale > 93%, picture disappear totally. Tested via control panel setup.
Tested with 2 TV sets.

pali 2011-11-30 14:50

Re: [ANNOUNCE] TV out control home plugin
 
Quote:

Originally Posted by Gusse (Post 1131048)
There seems to be a bug with scaling. Scale > 93%, picture disappear totally. Tested via control panel setup.
Tested with 2 TV sets.

This is problem in Xorg driver, not in plugins...

pali 2011-11-30 14:51

Re: [ANNOUNCE] TV out control home plugin
 
Quote:

Originally Posted by willi6868 (Post 1128835)
have the same problem!! Reboot and removing of the app didn't work:( What should I do?!

What have i to do to see my apps in status bar again?! :confused:

pls help me


EDIT:

Ok it works.:cool: I restarted my phone about 5 times... :)

If you have any uninstall problems, you could try to shutdown device, wait some minutes and power on again.


All times are GMT. The time now is 09:11.

vBulletin® Version 3.8.8