Page 2 of 4

Re: HDMI Handshake? Totally Confused...

PostPosted: Wed Sep 09, 2015 5:33 am
by mad_ady
You can use a EXT3 image (root.bin). You can put whatever you want in the power_up_action section and the commands will be executed in order when you power up the WDTV (from standby, but not from regular boot as far as I remember).

Re: HDMI Handshake? Totally Confused...

PostPosted: Wed Sep 09, 2015 10:45 am
by playmo77
Some more infos :

I updated with the latest fw. Rebooting DMAOSD via ssh or webend works.
But I don't have a clue on how to automatise it. Power_up_action doesn't work because the remote doesn't work.

Here is what is prompted when i turn my TV off :

Code: Select all
[SLi.c:3223] [HDMI] *** Receiver change interrupt ***
[SLi.c:4140] [HDMI] *** Receiver differs, now off ***
[SLi.c:4146] [HDMI] *** Receiver off ***
[hdmi.c:966] [HDCP] Reached state H 1
    [HDMI]     Status: [-r-------]
[hdmi_loop.c:577] [HDMI]    ***   Request Reconfiguration.
[hdmi_loop.c:580] [HDMI]    ***   Not Operational.
(*)
  HH  HH  HHHHH   HH   HH  HHHH      HHHH   HHHHHH  HHHHHH
  HH  HH  HH  HH  HHH HHH   HH      HH  HH  HH      HH   
  HHHHHH  HH  HH  HH H HH   HH      HH  HH  HHHHH   HHHHH
  HH  HH  HH  HH  HH   HH   HH      HH  HH  HH      HH   
  HH  HH  HHHHH   HH   HH  HHHH      HHHH   HH      HH   

processConfigConfirm,2006
securesoho_ntsc_pal_get_inner[1742], PAL
sigma_dfb_config_confirm,1948:  hdmi_data.hdmi_ready=0,hdmi_data.receive_hotplug=0



And here is when i turn it back on :

Code: Select all
# [SLi.c:3218] [HDMI] *** HotPlug change interrupt ***
[SLi.c:4149] [HDMI] *** HotPlug differs, now off ***
[SLi.c:4154] [HDMI] *** HotPlug off ***
[hdmi.c:970] [HDCP] Reached state H 0, disabling HDCP
[SLi.c:2882] SLi: Setting HDCP FRAME_ENC to Off
[hdmi.c:1613] [HDMI] HotPlug high-to-low, invalidating EDID.
    [HDMI]     Status: [h------e-]
[hdmi_loop.c:548] HotPlug off, reporting now.
[hdmi_loop.c:580] [HDMI]    ***   Not Operational.
[hdmi_loop.c:584] [HDMI] Invalidate EDID on HotPlug
[hdmi_loop.c:781] [HDMI] EDID error, invalidating...
[CEC] notification - [[[  Unplugged  ]]]
[SLi.c:4195] [HDMI] HDCP is now disabled.
[SLi.c:2934] SLi: Setting HDCP STOP_AUTH
[SLi.c:2938] SLi: Setting HDCP HDCP_RESET
[SLi.c:4239] [HDMI] *** HDCP off ***
    [HDMI]     Status: [--D------]
[SLi.c:4195] [HDMI] HDCP is now disabled.
[SLi.c:4239] [HDMI] *** HDCP off ***
    [HDMI]     Status: [--D------]
[SLi.c:3223] [HDMI] *** Receiver change interrupt ***
[SLi.c:4140] [HDMI] *** Receiver differs, now on ***
[SLi.c:4146] [HDMI] *** Receiver on ***
    [HDMI]     Status: [-R-------]
[hdmi_loop.c:580] [HDMI]    ***   Not Operational.
[SLi.c:3218] [HDMI] *** HotPlug change interrupt ***
[SLi.c:4149] [HDMI] *** HotPlug differs, now on ***
[SLi.c:4154] [HDMI] *** HotPlug on ***
[hdmi.c:966] [HDCP] Reached state H 1
[hdmi.c:1625] [HDMI] HotPlug low-to-high, initiating EDID read.
[hdmi.c:1709] [HDMI] Reading EDID block 1.
    [HDMI] BusyStatus: [H--------B]
[CEC] notification - [[[  Plugged  ]]]
[hdmi.c:1666] [HDMI] EDID block 1 done.
[hdmi.c:1707] [HDMI] Reading EDID block 2 of 2.
[hdmi.c:1666] [HDMI] EDID block 2 done.
[hdmi.c:1731] [HDMI] Done reading all of 2 EDID blocks.
EDID[0][00]: 00 FF FF FF FF FF FF 00
EDID[0][08]: 4D D9 03 42 01 01 01 01
EDID[0][10]: 01 18 01 03 80 7A 44 78
EDID[0][18]: 0A 0D C9 A0 57 47 98 27
EDID[0][20]: 12 48 4C 21 08 00 81 80
EDID[0][28]: A9 C0 71 4F B3 00 01 01
EDID[0][30]: 01 01 01 01 01 01 02 3A
EDID[0][38]: 80 18 71 38 2D 40 58 2C
EDID[0][40]: 45 00 C2 AD 42 00 00 1E
EDID[0][48]: 01 1D 00 72 51 D0 1E 20
EDID[0][50]: 6E 28 55 00 C2 AD 42 00
EDID[0][58]: 00 1E 00 00 00 FC 00 53
EDID[0][60]: 4F 4E 59 20 54 56 20 20
EDID[0][68]: 2A 30 37 0A 00 00 00 FD
EDID[0][70]: 00 30 3E 0E 46 0F 00 0A
EDID[0][78]: 20 20 20 20 20 20 01 85
EDID[1][00]: 02 03 4D F0 57 1F 10 14
EDID[1][08]: 05 13 04 20 22 3C 3E 12
EDID[1][10]: 16 03 07 11 15 02 06 01
EDID[1][18]: 5D 5E 5F 62 26 0D 07 07
EDID[1][20]: 15 07 50 83 0F 00 00 78
EDID[1][28]: 03 0C 00 40 00 B8 3C 2F
EDID[1][30]: D0 8A 01 02 03 04 01 40
EDID[1][38]: 00 7F 20 30 70 80 90 76
EDID[1][40]: E2 00 FB E3 05 DF 01 E5
EDID[1][48]: 0E 60 61 65 66 02 3A 80
EDID[1][50]: D0 72 38 2D 40 10 2C 45
EDID[1][58]: 80 C2 AD 42 00 00 1E 01
EDID[1][60]: 1D 00 BC 52 D0 1E 20 B8
EDID[1][68]: 28 55 40 C2 AD 42 00 00
EDID[1][70]: 1E 00 00 00 00 00 00 00
EDID[1][78]: 00 00 00 00 00 00 00 C7
    [HDMI]     Status: [H------E-]
[hdmi_loop.c:544] HotPlug on, delaying report.
[hdmi_loop.c:631] [HDMI] Parsing new EDID with 2 blocks...
[hdmi_loop.c:659] hdmi_pending_loop,659
[hdmi_loop.c:43] [HDMI] Wrote EDID block 0 to file: RM_OK
[hdmi_loop.c:43] [HDMI] Wrote EDID block 1 to file: RM_OK
[hdmi_loop.c:190] alpha_hdmi_save_vic,190
[hdmi_loop.c:67] 1920x1080P59-16:9
[hdmi_loop.c:67] 1280x720P59-16:9
[hdmi_loop.c:67] 1920x1080P50-16:9
[hdmi_loop.c:67] 1280x720P50-16:9
[hdmi_loop.c:87] alpha_hdmi_save_vsd,87
[hdmi_loop.c:122] alpha_hdmi_save_audio,122
[hdmi_loop.c:256] alpha_hdmi_save_native,256
[hdmi_loop.c:67] 1920x1080P59-16:9
[hdmi_loop.c:665] hdmi_pending_loop,665
[hdmi_loop.c:670] [HDMI] EDID with 2 blocks parsed, supporting:
       HDMI, RGB and YCbCr, 36 bit 4:4:4 and RGB deep color, 3D.
       DTD 1920x1080p59.94 1218:685 - Preferred
       DTD 1280x720p59.94 1218:685
       DTD 1920x1080p50.00 1218:685
       DTD 1280x720p50.00 1218:685
       VIC 31 - 1920x1080p 50Hz (16:9)
       VIC 16 - 1920x1080p 59.94/60Hz (16:9)
       VIC 20 - 1920x1080i 50Hz (16:9)
       VIC  5 - 1920x1080i 59.94/60Hz (16:9)
       VIC 19 - 1280x720p 50Hz (16:9)
       VIC  4 - 1280x720p 59.94/60Hz (16:9)
       VIC 32 - 1920x1080p 23.97/24Hz (16:9)
       VIC 34 - 1920x1080p 29.97/30Hz (16:9)
       VIC 60 - 1280x720p 23.97/24Hz (16:9)
       VIC 62 - 1280x720p 29.97/30Hz (16:9)
       VIC 18 - 720x576p 50Hz (16:9)
       VIC 22 - 720(1440)x576i 50Hz (16:9)
       VIC  3 - 720x480p 59.94/60Hz (16:9)
       VIC  7 - 720(1440)x480i 59.94/60Hz (16:9)
       VIC 17 - 720x576p 50Hz (4:3)
       VIC 21 - 720(1440)x576i 50Hz (4:3)
       VIC  2 - 720x480p 59.94/60Hz (4:3)
       VIC  6 - 720(1440)x480i 59.94/60Hz (4:3)
       VIC  1 - 640x480p 59.94/60Hz (4:3)
LGActions command failed
LGActions command failed


I guess I am screwed ...

Re: HDMI Handshake? Totally Confused...

PostPosted: Wed Sep 09, 2015 10:54 am
by playmo77
i noticed CEC in the log, is it feasible to enable it on old wdtvlive (not rev 3) ?

Re: HDMI Handshake? Totally Confused...

PostPosted: Wed Sep 09, 2015 11:19 pm
by mad_ady
I haven't used HDMI-CEC, so I can't comment on it.

You can use POWER_UP events like this (make sure you delete any other POWER_DOWN/POWER_UP events that you don't fully understand):

Code: Select all
config_tool -c POWER_UP_ACTION05='wget -O - http://127.0.0.1/addons/systools/restart-dmaosd.php'
config_tool -s
config_tool -s


Reboot and give it a try. When you put your WDTV to standby nothing will happen. When you wake it up from standby (via remote), it will restart DMAOSD (you should see more flickering on the screen), but it should be functional afterwards.

Re: HDMI Handshake? Totally Confused...

PostPosted: Thu Sep 10, 2015 1:32 am
by playmo77
I tried this, unfortunately (and that is why I added the logs) it works until I turn off the TV.

then when I turn the TV back on dmaosd dies (LGActions command failed LGActions command failed) which means I can't wake up the unit using the remote (hence not trigger POWER_UP_ACTION).

Restarting with webend works.

So i guess I have no more option ... did you see anything interesting in the logs ?

One more question, instead of this :
Code: Select all
config_tool -c POWER_UP_ACTION05='wget -O - http://127.0.0.1/addons/systools/restart-dmaosd.php'


I tried this :
Code: Select all
config_tool -c POWER_UP_ACTION05=''/etc/init.d/S70dmaosd stop; /etc/init.d/S70dmaosd start"


But it is basically the same, isn't it ?

Re: HDMI Handshake? Totally Confused...

PostPosted: Thu Sep 10, 2015 3:43 am
by mad_ady
It's not exactly the same. The start command should be started in background and detached from the current terminal. Try the wget command and if it doesn't work, post back the contents of /tmp/messages.txt

Re: HDMI Handshake? Totally Confused...

PostPosted: Thu Sep 10, 2015 5:44 am
by playmo77
It doesn't work either work since I can't trigger power_up_action because I can't use the remote when my tv is turned off.

If I keep my tv up I can use the remote and the power_up_action is triggered and dmaosd is restarted

But here is the log when I turn my tv off:

Code: Select all
# [SLi.c:3218] [HDMI] *** HotPlug change interrupt ***
[SLi.c:4149] [HDMI] *** HotPlug differs, now off ***
[SLi.c:4154] [HDMI] *** HotPlug off ***
[hdmi.c:970] [HDCP] Reached state H 0, disabling HDCP
[SLi.c:2882] SLi: Setting HDCP FRAME_ENC to Off
[hdmi.c:1613] [HDMI] HotPlug high-to-low, invalidating EDID.
    [HDMI]     Status: [h------e-]
[hdmi_loop.c:548] HotPlug off, reporting now.
[hdmi_loop.c:580] [HDMI]    ***   Not Operational.
[hdmi_loop.c:584] [HDMI] Invalidate EDID on HotPlug
[hdmi_loop.c:781] [HDMI] EDID error, invalidating...
[CEC] notification - [[[  Unplugged  ]]]
[SLi.c:4195] [HDMI] HDCP is now disabled.
[SLi.c:2934] SLi: Setting HDCP STOP_AUTH
[SLi.c:2938] SLi: Setting HDCP HDCP_RESET
[SLi.c:4239] [HDMI] *** HDCP off ***
    [HDMI]     Status: [--D------]
[SLi.c:4195] [HDMI] HDCP is now disabled.
[SLi.c:4239] [HDMI] *** HDCP off ***
    [HDMI]     Status: [--D------]
[SLi.c:3223] [HDMI] *** Receiver change interrupt ***
[SLi.c:4140] [HDMI] *** Receiver differs, now on ***
[SLi.c:4146] [HDMI] *** Receiver on ***
    [HDMI]     Status: [-R-------]
[hdmi_loop.c:580] [HDMI]    ***   Not Operational.
[SLi.c:3218] [HDMI] *** HotPlug change interrupt ***
[SLi.c:4149] [HDMI] *** HotPlug differs, now on ***
[SLi.c:4154] [HDMI] *** HotPlug on ***
[hdmi.c:966] [HDCP] Reached state H 1
[hdmi.c:1625] [HDMI] HotPlug low-to-high, initiating EDID read.
[hdmi.c:1709] [HDMI] Reading EDID block 1.
    [HDMI] BusyStatus: [H--------B]
[CEC] notification - [[[  Plugged  ]]]
[hdmi.c:1666] [HDMI] EDID block 1 done.
[hdmi.c:1707] [HDMI] Reading EDID block 2 of 2.
[hdmi.c:1666] [HDMI] EDID block 2 done.
[hdmi.c:1731] [HDMI] Done reading all of 2 EDID blocks.
EDID[0][00]: 00 FF FF FF FF FF FF 00
EDID[0][08]: 4D D9 03 42 01 01 01 01
EDID[0][10]: 01 18 01 03 80 7A 44 78
EDID[0][18]: 0A 0D C9 A0 57 47 98 27
EDID[0][20]: 12 48 4C 21 08 00 81 80
EDID[0][28]: A9 C0 71 4F B3 00 01 01
EDID[0][30]: 01 01 01 01 01 01 02 3A
EDID[0][38]: 80 18 71 38 2D 40 58 2C
EDID[0][40]: 45 00 C2 AD 42 00 00 1E
EDID[0][48]: 01 1D 00 72 51 D0 1E 20
EDID[0][50]: 6E 28 55 00 C2 AD 42 00
EDID[0][58]: 00 1E 00 00 00 FC 00 53
EDID[0][60]: 4F 4E 59 20 54 56 20 20
EDID[0][68]: 2A 30 37 0A 00 00 00 FD
EDID[0][70]: 00 30 3E 0E 46 0F 00 0A
EDID[0][78]: 20 20 20 20 20 20 01 85
EDID[1][00]: 02 03 4D F0 57 1F 10 14
EDID[1][08]: 05 13 04 20 22 3C 3E 12
EDID[1][10]: 16 03 07 11 15 02 06 01
EDID[1][18]: 5D 5E 5F 62 26 0D 07 07
EDID[1][20]: 15 07 50 83 0F 00 00 78
EDID[1][28]: 03 0C 00 40 00 B8 3C 2F
EDID[1][30]: D0 8A 01 02 03 04 01 40
EDID[1][38]: 00 7F 20 30 70 80 90 76
EDID[1][40]: E2 00 FB E3 05 DF 01 E5
EDID[1][48]: 0E 60 61 65 66 02 3A 80
EDID[1][50]: D0 72 38 2D 40 10 2C 45
EDID[1][58]: 80 C2 AD 42 00 00 1E 01
EDID[1][60]: 1D 00 BC 52 D0 1E 20 B8
EDID[1][68]: 28 55 40 C2 AD 42 00 00
EDID[1][70]: 1E 00 00 00 00 00 00 00
EDID[1][78]: 00 00 00 00 00 00 00 C7
    [HDMI]     Status: [H------E-]
[hdmi_loop.c:544] HotPlug on, delaying report.
[hdmi_loop.c:631] [HDMI] Parsing new EDID with 2 blocks...
[hdmi_loop.c:659] hdmi_pending_loop,659
[hdmi_loop.c:43] [HDMI] Wrote EDID block 0 to file: RM_OK
[hdmi_loop.c:43] [HDMI] Wrote EDID block 1 to file: RM_OK
[hdmi_loop.c:190] alpha_hdmi_save_vic,190
[hdmi_loop.c:67] 1920x1080P59-16:9
[hdmi_loop.c:67] 1280x720P59-16:9
[hdmi_loop.c:67] 1920x1080P50-16:9
[hdmi_loop.c:67] 1280x720P50-16:9
[hdmi_loop.c:87] alpha_hdmi_save_vsd,87
[hdmi_loop.c:122] alpha_hdmi_save_audio,122
[hdmi_loop.c:256] alpha_hdmi_save_native,256
[hdmi_loop.c:67] 1920x1080P59-16:9
[hdmi_loop.c:665] hdmi_pending_loop,665
[hdmi_loop.c:670] [HDMI] EDID with 2 blocks parsed, supporting:
       HDMI, RGB and YCbCr, 36 bit 4:4:4 and RGB deep color, 3D.
       DTD 1920x1080p59.94 1218:685 - Preferred
       DTD 1280x720p59.94 1218:685
       DTD 1920x1080p50.00 1218:685
       DTD 1280x720p50.00 1218:685
       VIC 31 - 1920x1080p 50Hz (16:9)
       VIC 16 - 1920x1080p 59.94/60Hz (16:9)
       VIC 20 - 1920x1080i 50Hz (16:9)
       VIC  5 - 1920x1080i 59.94/60Hz (16:9)
       VIC 19 - 1280x720p 50Hz (16:9)
       VIC  4 - 1280x720p 59.94/60Hz (16:9)
       VIC 32 - 1920x1080p 23.97/24Hz (16:9)
       VIC 34 - 1920x1080p 29.97/30Hz (16:9)
       VIC 60 - 1280x720p 23.97/24Hz (16:9)
       VIC 62 - 1280x720p 29.97/30Hz (16:9)
       VIC 18 - 720x576p 50Hz (16:9)
       VIC 22 - 720(1440)x576i 50Hz (16:9)
       VIC  3 - 720x480p 59.94/60Hz (16:9)
       VIC  7 - 720(1440)x480i 59.94/60Hz (16:9)
       VIC 17 - 720x576p 50Hz (4:3)
       VIC 21 - 720(1440)x576i 50Hz (4:3)
       VIC  2 - 720x480p 59.94/60Hz (4:3)
       VIC  6 - 720(1440)x480i 59.94/60Hz (4:3)
       VIC  1 - 640x480p 59.94/60Hz (4:3)
LGActions command failed
LGActions command failed


After that I can't use the remote to wake the unit up ...

Re: HDMI Handshake? Totally Confused...

PostPosted: Sun Sep 13, 2015 10:26 pm
by mad_ady
Wait a second - you keep saying turning off TV. Are you trying to wake up the WDTV with the TV's remote? Via HDMI-CEC? Can you try to wake it up with WDTV's remote? I have no idea if the WDTV can be woken up with the TV's remote via HDMI-CEC.

Re: HDMI Handshake? Totally Confused...

PostPosted: Mon Sep 14, 2015 2:11 am
by playmo77
I am trying to wake the wd tv live using it's own remote not tv one.

I am always talking about the TV because it is causing DMAOSD to crash.

First connection always work flawlessly TV on i turn on WD TV Live everything works perfectly. I can even turn on and off the unit as long as the TV is on.

When I turn off my TV and turn it back on again there is something going wrong with the HDMi handshake which crashes DMAOSD, which means that I cannot turn the unit back on with it's remote (DMAOSD dead means no IR receiver).

The only options I have are to reboot or reload DMAOSD.

I hope this is clearer, I copy/pasted in my previous posts the log to show you what happens when I turn my tv back on hoping you'll find why DMAOSD is crashing.

Re: HDMI Handshake? Totally Confused...

PostPosted: Mon Sep 14, 2015 5:46 am
by mad_ady
Ok, now I understand better.

Well, in that case, the POWER_UP scripts won't help. Also, DMAOSD crashing is not exactly the same thing as DMAOSD shutting down. I expect bits of memory to remain allocated.

Question - if you power off the WDTV and then power off the TV, does DMAOSD still crash?

The only workaround I can think of - for you - would be to write some script to parse dmasod's log, and when it detects a crash to stop/start DMAOSD. How does it behave if you start DMAOSD with the TV off? By the way, what kind of TV do you have? Maybe there's a newer firmware for it that may solve this.