LinuxMCE Forums
June 19, 2013, 04:57:48 pm GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: Controlling TV power on/off through HDMI  (Read 5904 times)
colinjones
Alumni
LinuxMCE God
*
Posts: 3003


View Profile
« on: September 02, 2009, 11:03:34 pm »

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!
Logged
merkur2k
Addicted
*
Posts: 513


View Profile
« Reply #1 on: September 02, 2009, 11:10:40 pm »

if your tv supports it, the following should work as a test:
Code:
export DISPLAY=0:0
xset dpms force off
also can use 'suspend', 'standby', and 'on' in place of 'off' above.
« Last Edit: September 02, 2009, 11:17:42 pm by merkur2k » Logged
colinjones
Alumni
LinuxMCE God
*
Posts: 3003


View Profile
« Reply #2 on: September 02, 2009, 11:16:21 pm »

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 ....
Logged
merkur2k
Addicted
*
Posts: 513


View Profile
« Reply #3 on: September 02, 2009, 11:18:11 pm »

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.
Logged
colinjones
Alumni
LinuxMCE God
*
Posts: 3003


View Profile
« Reply #4 on: September 02, 2009, 11:22:04 pm »

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...
Logged
fastie81
Veteran
***
Posts: 136


SSDD


View Profile WWW
« Reply #5 on: September 02, 2009, 11:31:48 pm »

how do you guys know witch tv and model support this??
Logged
merkur2k
Addicted
*
Posts: 513


View Profile
« Reply #6 on: September 02, 2009, 11:33:42 pm »

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.
Logged
fastie81
Veteran
***
Posts: 136


SSDD


View Profile WWW
« Reply #7 on: September 02, 2009, 11:38:12 pm »

damm I need to see if my Sony does that save me digging around wit USB-Uirt and shitt..
Logged
tschak909
LinuxMCE God
****
Posts: 5116

DOES work for LinuxMCE.


View Profile
« Reply #8 on: September 02, 2009, 11:47:16 pm »

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
Logged
colinjones
Alumni
LinuxMCE God
*
Posts: 3003


View Profile
« Reply #9 on: September 03, 2009, 09: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...)
Logged
merkur2k
Addicted
*
Posts: 513


View Profile
« Reply #10 on: September 03, 2009, 03: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.
Logged
lmwashere
Veteran
***
Posts: 79



View Profile
« Reply #11 on: April 16, 2010, 08: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
Logged
totallymaxed
LinuxMCE God
****
Posts: 4316


View Profile WWW
« Reply #12 on: April 16, 2010, 10: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
Logged

Andy Herron,
Convergent Home Technologies Ltd
United Kingdom

Dianemo S Now Shipping on Ubuntu 12.04LTS
Build your system on the latest Ubuntu OS Release!

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
« Reply #13 on: April 16, 2010, 01: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
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!