From 871934d36a072fbb36fea8949b09158697ceb41a Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Mon, 13 Feb 2012 13:01:14 +0100 Subject: [PATCH] cec: send power state 'standby->on' to the tv when initing the SL handler --- src/lib/implementations/SLCommandHandler.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/lib/implementations/SLCommandHandler.cpp b/src/lib/implementations/SLCommandHandler.cpp index f1e3d7e..7771b20 100644 --- a/src/lib/implementations/SLCommandHandler.cpp +++ b/src/lib/implementations/SLCommandHandler.cpp @@ -77,12 +77,17 @@ bool CSLCommandHandler::InitHandler(void) return true; m_bHandlerInited = true; - /* reply with LGs vendor id */ CCECBusDevice *primary = m_processor->GetPrimaryDevice(); if (m_busDevice->GetLogicalAddress() != primary->GetLogicalAddress()) + { + /* start as 'in transition standby->on' */ + primary->SetPowerStatus(CEC_POWER_STATUS_IN_TRANSITION_STANDBY_TO_ON); + primary->TransmitPowerState(CECDEVICE_TV); + + /* reply with LGs vendor id */ primary->TransmitVendorID(CECDEVICE_BROADCAST, false); + } - primary->SetPowerStatus(CEC_POWER_STATUS_IN_TRANSITION_STANDBY_TO_ON); return true; } -- 2.34.1