Author Topic: Controlling TV power on/off through HDMI  (Read 8118 times)

colinjones

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Controlling TV power on/off through HDMI
« on: September 03, 2009, 12:03:34 am »
Has anybody managed to control a TV's power (sleep/suspend) through an HDMI cable in the same way you can a VGA display using the xset commands? I would like to create a device to turn on and off my HDMI TV, but don't seem to be able to find even a command line that will do it. It doesn't seem that xset makes any translation for HDMI is that is what is connected, however I have seen a friend's VMC turn his (identical) TV on and off using an HDMI connection so it must be possible!

merkur2k

  • Addicted
  • *
  • Posts: 513
    • View Profile
Re: Controlling TV power on/off through HDMI
« Reply #1 on: September 03, 2009, 12:10:40 am »
if your tv supports it, the following should work as a test:
Code: [Select]
export DISPLAY=0:0
xset dpms force off
also can use 'suspend', 'standby', and 'on' in place of 'off' above.
« Last Edit: September 03, 2009, 12:17:42 am by merkur2k »

colinjones

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: Controlling TV power on/off through HDMI
« Reply #2 on: September 03, 2009, 12:16:21 am »
merkur2k

You have this working over HDMI not VGA?

Yes, I have tried all combinations of the above in the past, and the TV does not react at all. As I say, a friend has the same TV and it works without any issue, so I assumed it was using some other mechanism rather than dpms which is more a VGA thing, although I hoped that HDMI in some way simulated the DPMS lines.... if you have this working over HDMI then maybe it does and something else is wrong ....

merkur2k

  • Addicted
  • *
  • Posts: 513
    • View Profile
Re: Controlling TV power on/off through HDMI
« Reply #3 on: September 03, 2009, 12:18:11 am »
no i dont have it working at all, my tv doesnt support it apparently.
for my tv at least, all any of the commands do is cause it to complain about no signal.

colinjones

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: Controlling TV power on/off through HDMI
« Reply #4 on: September 03, 2009, 12:22:04 am »
actually come to think of it, yes, I think that's what mine does too! I suspect though, that this is just because the video output is turned off as well as signalling the dpms to switch the display off. So the TV ignores the off command and the GPU stops outputing a signal... thus we see what we see....


hmmm still doesn't explain how my friend's Vista MCE does it... there must be a way...

fastie81

  • Veteran
  • ***
  • Posts: 136
  • SSDD
    • View Profile
Re: Controlling TV power on/off through HDMI
« Reply #5 on: September 03, 2009, 12:31:48 am »
how do you guys know witch tv and model support this??

merkur2k

  • Addicted
  • *
  • Posts: 513
    • View Profile
Re: Controlling TV power on/off through HDMI
« Reply #6 on: September 03, 2009, 12:33:42 am »
i believe i read in the manual for my tv that the vga port will support it, but the hdmi port will not. many tvs are this way i think.

fastie81

  • Veteran
  • ***
  • Posts: 136
  • SSDD
    • View Profile
Re: Controlling TV power on/off through HDMI
« Reply #7 on: September 03, 2009, 12:38:12 am »
damm I need to see if my Sony does that save me digging around wit USB-Uirt and shitt..

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5495
  • DOES work for LinuxMCE.
    • View Profile
Re: Controlling TV power on/off through HDMI
« Reply #8 on: September 03, 2009, 12:47:16 am »
HDMI CEC right now is still in its infancy, and is protected heavily by intellectual property laws. This means that significant reverse engineering will need to be done to send control codes over the HDMI port, assuming of course, that the video cards in question will provide a link to do this.

-Thom

colinjones

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: Controlling TV power on/off through HDMI
« Reply #9 on: September 03, 2009, 10:36:35 am »
HDMI CEC right now is still in its infancy, and is protected heavily by intellectual property laws. This means that significant reverse engineering will need to be done to send control codes over the HDMI port, assuming of course, that the video cards in question will provide a link to do this.

-Thom

Agreed, Thom, nevertheless I have no reason to assume that 1) Vista MCE would be any better at using Samsung's AnyNet (CEC) than LMCE, nor that even if it was able to, that my friend would have the faintest clue how to set that up! Which is why I was considering the possibility that it is using some legacy approach similiar/same as DPMS.... I guess nobody here is certain whether HDMI connections do support anything other than CEC? I have to wonder, though, how "ordinary" PC users handle this if they happen to use HDMI to connect their PC to a monitor (yes, I realise this is likely to be rare unless we are talking about a media centre.... but...)

merkur2k

  • Addicted
  • *
  • Posts: 513
    • View Profile
Re: Controlling TV power on/off through HDMI
« Reply #10 on: September 03, 2009, 04:36:12 pm »
I believe the monitor can support DPMS over hdmi if the manufacturer wants to. it should be no different than dvi, which does work. there was a device template for this added recently.

lmwashere

  • Veteran
  • ***
  • Posts: 79
    • View Profile
Re: Controlling TV power on/off through HDMI
« Reply #11 on: April 16, 2010, 09:57:42 am »
merkur2k,

I cannot find that DVI monitor template, is there any way that you could point me in the right direction?


Thanks,
Josh

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4361
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Re: Controlling TV power on/off through HDMI
« Reply #12 on: April 16, 2010, 11:47:24 am »
I believe the monitor can support DPMS over hdmi if the manufacturer wants to. it should be no different than dvi, which does work. there was a device template for this added recently.

This is certainly correct. However support is patchy at best and is certainly not the norm.

The problem with CEC is that it is a bit like Zigbee in that yes its a 'standard' but every vendor implements it differently...it is nowhere near interoperable at all. We talk to a lot of professional CI's and none of them even see CEC as being viable as a generalised control standard.

All the best

Andrew
Andy Herron,
Convergent Home Technologies Ltd
United Kingdom

Read My Blog; http://ellipticalcurve.com

Contact me for Smart Home consulting advice here;
@herron on Twitter, totallymaxed+consulting@gmail.com via email or PM me here.

Get a Dianemo S License: http://forum.linuxmce.org/index.php?topic=8880.0
iOS Orbiter: http://wiki.linuxmce.org/index.php/Dianemo_iOS_Orbiter
Follow us on Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

Sales & Info:
http://www.dianemo.co.uk

lmwashere

  • Veteran
  • ***
  • Posts: 79
    • View Profile
Re: Controlling TV power on/off through HDMI
« Reply #13 on: April 16, 2010, 02:37:22 pm »
I would be happy if there was something that would terminate the signal going to the monitor. That will send the monitor into standby, which is more than fine. I was looking for the template because I am using an lcd monitor as a tv for this MD. I plugged it in with a dvi cable and I cannot seem to get it to switch off or over to standby. Kubuntu, ubuntu etc have no problem with it, I guess I am just not sure how to handle it in LMCE. I posted details about it here: http://forum.linuxmce.org/index.php?topic=9973.0

Thanks for your help and quick reply.
Josh