Loggytronic Forum

VOMP => VOMP for Raspberry Pi => Topic started by: svalavuo on August 07, 2013, 11:38:06

Title: No signal from MLD vomp after TV power off
Post by: svalavuo on August 07, 2013, 11:38:06
Hi,
Is it just me or does someone else suffer from following error:
1) When I turn on my TV and Raspberry Pi with vompclient on MLD, everything works flawlessly (well, except the ui is in english and I'm from Finland) :)
2) When I turn my TV off, it (the TV shuts down as it should)
3) When I turn my TV on, it turns on and gives me "No Signal" -message.

Raspberry Pi is on (I have ssh connection to it online), but I can't get vompserver (or RPi) to send picture to TV.

RPi: Linux MLD 3.6.11.158 #1 PREEMPT
       vompclient      2013.02.25_50

VDR: 1.7.33-1yavdr0~precise
Vompserver: 0.4.0-1
Title: Re: No signal from MLD vomp after TV power off
Post by: MartenR on August 08, 2013, 07:17:44
You should be able to switch the language to finish in the properties menu, if not the l10n folder is not in the right place at the server side.

For the second problem, it depends a bit wether you are using CEC or not. If you are using cec it is likely that the switch off of the tv also turned the vompserver off. (switvhing the TV signal off).
Then you have to turn vomp on after the TV is powered on again (with the key of your remote control of the tv designed to turn on the selected cec device).

Marten
Title: Re: No signal from MLD vomp after TV power off
Post by: svalavuo on August 08, 2013, 07:29:34
Quote from: MartenR on August 08, 2013, 07:17:44
You should be able to switch the language to finish in the properties menu, if not the l10n folder is not in the right place at the server side.
Ok, I'll have to check this then.

Quote from: MartenR on August 08, 2013, 07:17:44For the second problem, it depends a bit wether you are using CEC or not. If you are using cec it is likely that the switch off of the tv also turned the vompserver off. (switvhing the TV signal off).
Then you have to turn vomp on after the TV is powered on again (with the key of your remote control of the tv designed to turn on the selected cec device).
I use CEC. How come CEC could switch my vompserver off? Vompserver is on my VDR -machine (not on RPi). Seems more likely that CEC switches something off from RPi. I haven't tried if reboot of RPi would bring signal again. RPi is in my kitchen and WAF (Wife Acceptance Factor) suffers a lot when RPi needs to be disconnected from power and connected again to gain picture. :)
Title: Re: No signal from MLD vomp after TV power off
Post by: svalavuo on August 08, 2013, 08:37:51
Quote from: svalavuo on August 08, 2013, 07:29:34
Quote from: MartenR on August 08, 2013, 07:17:44
You should be able to switch the language to finish in the properties menu, if not the l10n folder is not in the right place at the server side.
Ok, I'll have to check this then.
This helped! Some text is in germany, but...

Quote from: MartenR on August 08, 2013, 07:17:44For the second problem, it depends a bit wether you are using CEC or not. If you are using cec it is likely that the switch off of the tv also turned the vompserver off. (switvhing the TV signal off).
Then you have to turn vomp on after the TV is powered on again (with the key of your remote control of the tv designed to turn on the selected cec device).
OK. Seems like RPi informs vompserver that it's off.
10:07:56.864180 [debug]  RRProc - Config save: General Last Power State Off
10:07:56.864583 [debug]  RRProc - threadMethod waiting
10:07:56.865122 [debug]  Client - Received chan=3 kats=1375945675
10:07:56.865154 [debug]  Client - Waiting
10:07:56.866521 [debug]  TCP - TCP has closed socket
10:07:56.866541 [debug]  Client - Disconnection detected
10:07:56.866570 [debug]  Client - Vomp client destructor
10:07:56.866611 [info]   RRProc - threadMethod err 2 or quit

How come it doesn't inform that TV is on again? My TV is a cheap one (Logik) and it doesn't seem to have a separate key for attached cec equipment :(
Can I somehow make vompclient (or RPi) to learn one of my remotes keys to work as power -key or something?
Or can I somehow disable this functionality (turning off)?

Reboot helped after TV was on again.

I know this isn't vompserver problem, but how do I save settings in RPi MLD?
For some reason every boot changes localtime to point to Berlin, but I would like it to be Helsinki. Is there a way to save this setting or do I make the change in wrong place?
Title: Re: No signal from MLD vomp after TV power off
Post by: MartenR on August 09, 2013, 07:17:57
Well, I would suggest, that you try different configurations for CEC on your TV. (What kind of TV do you have?)

Of course you can uncomment the power related switch  cases in "TranslateHWCFixed(ULLONG code)" in RemoteLinux.
This will disable the power key, but these change is only a dirty fix and thus will not go into the main development tree. (POWER is a special signal in CEC and is hardcoded in vomp).

Anyway the client side log with the CEC Messages will help.

Marten

Title: Re: No signal from MLD vomp after TV power off
Post by: svalavuo on August 09, 2013, 12:38:06
As I mentioned earlier, TV is cheap one (Logik) and there is no settings for CEC.

Basically best solution would be that RPi sends PowerOn -message to vompserver when I turn my TV on :)
Maybe this works for other TV:s, but mine stays blank (only this "No Signal" -message appears on screen).

My vompclient is ready package from MLD (their site is down btw) and thus I didin't compile that myself.
Title: Re: No signal from MLD vomp after TV power off
Post by: MartenR on August 10, 2013, 06:58:22
QuoteBasically best solution would be that RPi sends PowerOn -message to vompserver when I turn my TV on
Yes sure, but I need the logs on the client side to see what is happening on the CEC side. E.g. if some message from the TV is not recognised.
You can  turn on in the client config on the server side network logging, then the client logging messages should appear on the server side.

If you can not provide the logs, I am not able to help.

Marten


Title: Re: No signal from MLD vomp after TV power off
Post by: svalavuo on August 11, 2013, 06:36:57
Thanks! I'll do this.  Can you tell me how to turn client logging on from server side?
Sorry, but I really don't know.
Title: Re: No signal from MLD vomp after TV power off
Post by: MartenR on August 11, 2013, 08:41:20
In the client config add to the section "Advanced", the option "Network logging" and set it to "On". 

Marten
Title: Re: No signal from MLD vomp after TV power off
Post by: svalavuo on August 11, 2013, 19:00:07
Hi,

Now I feel stupid.

Where should this log go? On server location defined in vomp.conf?
my vomp.conf says:

[General]
Log file = /var/log/vdr/vompserver.log


Is that the location where vompclient will write it's data?
When I press Power Off for my TV, I'll get this to vompserve.log:
...
20:39:07.727752 [debug]  Client - Received chan=1, ser=122, op=11, edl=29
20:39:07.727768 [debug]  RRProc - recvReq
20:39:07.727784 [debug]  RRProc - recvReq set req and signalled
20:39:07.727800 [debug]  Client - Waiting
20:39:07.727804 [debug]  RRProc - thread woken with req, queue size: 1
20:39:07.727819 [debug]  Client - Received chan=4 loglen=57
20:39:07.727856 [debug]  RRProc - Config save: General Last Power State Off
20:39:07.727870 [debug]  Client - Waiting
20:39:07.728215 [debug]  RRProc - threadMethod waiting
20:39:07.728860 [debug]  Client - Received chan=4 loglen=54
20:39:07.728882 [debug]  Client - Waiting
20:39:07.730374 [debug]  Client - Received chan=3 kats=1376242746
20:39:07.730398 [debug]  Client - Waiting
20:39:07.730422 [debug]  Client - Received chan=4 loglen=80
20:39:07.730439 [debug]  Client - Waiting
20:39:07.730457 [debug]  Client - Received chan=4 loglen=47
20:39:07.730473 [debug]  Client - Waiting
20:39:07.730491 [debug]  Client - Received chan=4 loglen=75
20:39:07.730508 [debug]  Client - Waiting
20:39:07.730537 [debug]  TCP - TCP has closed socket
20:39:07.730551 [debug]  Client - Disconnection detected
20:39:07.730564 [debug]  Client - Vomp client destructor
20:39:07.730608 [info]   RRProc - threadMethod err 2 or quit

When I press Power button of TV remote (to switch it on), nothing happens in vompserver.log :(
Title: Re: No signal from MLD vomp after TV power off
Post by: MartenR on August 12, 2013, 07:17:03
It looks like network logging is still switched off.

Title: Re: No signal from MLD vomp after TV power off
Post by: svalavuo on August 12, 2013, 07:30:03
Hi,

I tried to put these:
[Advanced]
Network logging = On

to both vomp.conf and vomp-MAC.conf, but nothing seems to change. :(

I did restart my VDR and RPi too.
Title: Re: No signal from MLD vomp after TV power off
Post by: MartenR on August 13, 2013, 07:12:00
I have unfortunetely no idea, why it does not work.
Anyway you can also start vomp locally on the rpi with "vompclient -d> debug.log" and you get a log file.

Marten
Title: Re: No signal from MLD vomp after TV power off
Post by: svalavuo on August 13, 2013, 07:30:07
hmmmm
When I run your command, I get this:
/usr/bin/vompclient: error while loading shared libraries: libOpenVG.so: cannot open shared object file: No such file or directory


I found out, that I was missing a config parameter.
15:47:38.735292 [debug]  Config - Config error: Key Network logging file not found

I added that, and now I get some data to my new log file :)

http://pastebin.com/96prYKLp
Title: Re: No signal from MLD vomp after TV power off
Post by: MartenR on August 14, 2013, 07:28:47
Ok, this is in principle what I need, but for me it is a bit hard to interpret the result.
I need in some way to figure out, what happens, when you switch the tv off and what happens, if you switch it on again.
So please switch the TV off and note the time, then wait 5 minutes and switch it on (note also the time).
Then I need the log from the switch off to the switch off together with the correct times.

Marten
Title: Re: No signal from MLD vomp after TV power off
Post by: svalavuo on August 14, 2013, 08:29:45
The log I sent is from the time I switched TV off (I quess it's the third line (16:43:58.301218) that was the first signal from remote).

After that last line nothing happened to log (when I turnd TV on or off).
Basically vompclient just disconnected and that's it.

- Samuli
Title: Re: No signal from MLD vomp after TV power off
Post by: MartenR on August 15, 2013, 07:16:44
Well, if it hears nothing from the tv, then there is nothing I can do....
You can just hack the software, so that it ignores the power key, but this will result in higher power consumption.
The only thing would be if there is some thing in the tv you can adjust.


Marten
Title: Re: No signal from MLD vomp after TV power off
Post by: svalavuo on August 15, 2013, 07:35:17
So basically vompclient listens CEC codes and it writes them to logfile even when it is "turned off"?

So it's not possible that my TV sends some CEC code that RPi ignores? :(
Ok, back to my MVP then (picture quality is so much better with RPi).
And RPi goes to my "electronic junkyard" for now :)

Thanks Marten for your help!
Title: Re: No signal from MLD vomp after TV power off
Post by: MartenR on August 16, 2013, 07:16:56
Yes, that is my diagnosis. (If you tell me the modell of your TV I will look into the manual, if you missed something about CEC in your TV. Because the power button might turn vomp off, but probably it only turns the tv on).
Another way would to connect the raspberry pi and to not run vompclient, but run cec-client and to listen at the commands coming from the tv.

But since CEC seems to be faulty on your TV, just try something like an USB remote (Hid device) instead.
You can assign a POWER key  of the USB remote then to turn vomp on.

Marten
Title: Re: No signal from MLD vomp after TV power off
Post by: svalavuo on August 16, 2013, 08:32:35
Our TV is Logik 24" Full HD LED TV (L24FE12N)

As I told earlier, it's about the cheapest Full HD LED TV we could find :)
Title: Re: No signal from MLD vomp after TV power off
Post by: sirwio on August 16, 2013, 09:56:23
Is the power cost that overwhelming for you that you cannot have the raspberry pi on 24/7. The cost for me in Sweden is dirt cheap to drive a raspberry.

Realise that the energy cost where I live is very low compared to other places round the world but compared to other energy thieves in an household I wouldn't even bother turning the raspberry off. The advantage of having a picture instantly when the tv is turned on is significantly more important in our household.
Title: Re: No signal from MLD vomp after TV power off
Post by: svalavuo on August 16, 2013, 11:14:42
Nope!

Problem is, that RPi turns vompclient off when I turn my TV off, but doesn't turn it on when I turn my TV on.
RPi would be on 24/7 if I can get it to work correctly.

I don't like to keep my TV on 24/7 :)
Title: Re: No signal from MLD vomp after TV power off
Post by: MartenR on August 17, 2013, 08:46:09
Ok, the only thing, that I found is that you can turn on and off CEC, not much usefull to customize.
Especially no comment how to stear the devices, it is possible, that my implementation of cec misses something for this case since all my tv have a separate power button.
Anway I do not have a clue.

Marten
Title: Re: No signal from MLD vomp after TV power off
Post by: svalavuo on August 19, 2013, 07:45:13
Hi MartenR,

Is there a way to make RPi log all CEC -Data it "hears"?
Title: Re: No signal from MLD vomp after TV power off
Post by: svalavuo on August 19, 2013, 19:35:41
http://pastebin.com/EJ6wjxFE

That's what happens in log when RPi is on and I turn my TV on.

-Samuli
Title: Re: No signal from MLD vomp after TV power off
Post by: MartenR on August 20, 2013, 07:26:22
Ok, there seems to be another message, than just a key press to turn vomp on.
I will see, if I can implement it without a device that handles it that way.
I will be busy the next weeks, I either implement it tomorrow and push it to my git or you have to remind me after one  month.

Marten
Title: Re: No signal from MLD vomp after TV power off
Post by: MartenR on August 21, 2013, 12:59:49
Please check my current git version.
I changed the behaviour of vompclient a bit.
vomp now reports to libcec, when it is turned off and on.
It seens that your TV does not  turn a device, which already reports that it is turned on.

Marten
Title: Re: No signal from MLD vomp after TV power off
Post by: svalavuo on August 21, 2013, 13:03:58
There's no binary version available?  ;)

As I said, I have MLD (MiniDVBLinux Distribution) on my RPi.
Or should I use this http://forum.loggytronic.com/index.php?topic=707.0 (http://forum.loggytronic.com/index.php?topic=707.0) quide to build a new vompclient?
Title: Re: No signal from MLD vomp after TV power off
Post by: MartenR on August 22, 2013, 06:48:38
Yes, you should use the guide but use my git development repository.

Marten
Title: Re: No signal from MLD vomp after TV power off
Post by: svalavuo on August 22, 2013, 06:59:16
Hi,

Is there an address for that in here somewhere?
Title: Re: No signal from MLD vomp after TV power off
Post by: svalavuo on August 22, 2013, 18:38:58
http://pastebin.com/Hp8L5jyf

compiled vompclient from git (Marten branch)

It doesn't work :(

- Samuli
Title: Re: No signal from MLD vomp after TV power off
Post by: sirwio on August 22, 2013, 19:17:18
Notice that you succeeded in retrieving the sources after I started responding but I will still post...

The available vomp git repositories can be discovered here:
git.vomp.tv (http://git.vomp.tv)
Martens repository is vompclient-marten.git

Simply follow the guide but instead of
git clone http://git.vomp.tv/vompclient.git
cd vompclient


do
git clone http://git.vomp.tv/vompclient-marten.git
cd vompclient-marten

Title: Re: No signal from MLD vomp after TV power off
Post by: clausmuus on September 03, 2013, 16:28:18
Hi,

I have updated the vompclinet of the MLD

Claus