X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FSLCommandHandler.cpp;h=7771b20b662b7d4a42552831f38a5983cc26071b;hb=871934d36a072fbb36fea8949b09158697ceb41a;hp=f1e3d7e229539980e1b34e9c71e74f32661c25ec;hpb=96b887ec283ed6ede1db692baf792e214d8946c8;p=deb_libcec.git 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; }