Raspberry Pi CEC Toggle TV ON/OFF instead of power off
#1
Question 
Hello first I am going to start off with that I am new to XBMC, but I know where to find files and how to go about editing them, and i have a Raspberry Pi with Raspbmc installed.

Reason for this thread:
I have a raspberry pi, and the trouble is that you cant turn it off with out unplugging it, i want to instead change the power off option into a toggle for turning on and off the tv using HDMI-CEC via the DialogButtonMenu.xml file. This is what i tried to do but i don't get anything other than the dialog dismissing (disappearing as if nothing happened):

<control type="button" id="3">
<description>Shutdown button</description>
<width>340</width>
<height>40</height>
<textcolor>grey2</textcolor>
<focusedcolor>white</focusedcolor>
<align>center</align>
<textwidth>290</textwidth>
<texturefocus border="25,5,25,5">ShutdownButtonFocus.png</texturefocus>
<texturenofocus border="25,5,25,5">ShutdownButtonNoFocus.png</texturenofocus>
<onclick>XBMC.CECToggleState()</onclick>
<visible>System.CanPowerDown</visible>
<pulseonselect>no</pulseonselect>
<font>font13</font>
<label>13016</label>
</control>



Here is what I am wanting to do and what I hope I can accomplish:

I just want it to toggle the TV status via CEC replacing the power off feature.
Reply

Logout Mark Read Team Forum Stats Members Help
Raspberry Pi CEC Toggle TV ON/OFF instead of power off0