From 2667f5a4bc9f1d488030d0f07457a74024d703e0 Mon Sep 17 00:00:00 2001 From: gsanto722 Date: Mon, 14 Jul 2025 15:48:14 +0000 Subject: [PATCH 1/5] RDKEMW-5739 Led debug --- helpers/frontpanel.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/helpers/frontpanel.cpp b/helpers/frontpanel.cpp index 83192cb7..a0a26dd0 100644 --- a/helpers/frontpanel.cpp +++ b/helpers/frontpanel.cpp @@ -180,7 +180,7 @@ namespace WPEFramework #endif globalLedBrightness = device::FrontPanelIndicator::getInstance("Power").getBrightness(); LOGINFO("Power light brightness, %d, power status %d", globalLedBrightness, powerStatus); - +#if 0 for (uint i = 0; i < fpIndicators.size(); i++) { LOGWARN("Initializing light %s", fpIndicators.at(i).getName().c_str()); @@ -189,7 +189,9 @@ namespace WPEFramework device::FrontPanelIndicator::getInstance(fpIndicators.at(i).getName()).setState(false); } - +#else + LOGWARN("GSK: NOT Initializing light %s since we continue with bootloader patern", fpIndicators.at(i).getName().c_str()); +#endif if (powerStatus) device::FrontPanelIndicator::getInstance("Power").setState(true); From e40321c95d09aa9eee61641e9ad7344ee4736799 Mon Sep 17 00:00:00 2001 From: gsanto722 Date: Tue, 15 Jul 2025 06:51:31 +0000 Subject: [PATCH 2/5] RDKEMW-5739 Led booting time debug --- helpers/frontpanel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/frontpanel.cpp b/helpers/frontpanel.cpp index a0a26dd0..c0ec6717 100644 --- a/helpers/frontpanel.cpp +++ b/helpers/frontpanel.cpp @@ -190,7 +190,7 @@ namespace WPEFramework device::FrontPanelIndicator::getInstance(fpIndicators.at(i).getName()).setState(false); } #else - LOGWARN("GSK: NOT Initializing light %s since we continue with bootloader patern", fpIndicators.at(i).getName().c_str()); + LOGWARN("GSK: NOT Initializing light power since we continue with bootloader patern"); #endif if (powerStatus) device::FrontPanelIndicator::getInstance("Power").setState(true); From fadcda3dd24e0afe8edbd357908f5104346dcd6b Mon Sep 17 00:00:00 2001 From: gsanto722 Date: Tue, 15 Jul 2025 11:43:13 +0000 Subject: [PATCH 3/5] RDKEMW-5739 LED booting debug --- helpers/frontpanel.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/helpers/frontpanel.cpp b/helpers/frontpanel.cpp index c0ec6717..f57a3a5a 100644 --- a/helpers/frontpanel.cpp +++ b/helpers/frontpanel.cpp @@ -171,6 +171,7 @@ namespace WPEFramework if (pwrStateCur == WPEFramework::Exchange::IPowerManager::POWER_STATE_ON) powerStatus = true; } + LOGINFO(" pwrStateCur %d, pwrStatePrev %d powerStatus=%d", pwrStateCur, pwrStatePrev, powerStatus); } } #endif @@ -180,7 +181,7 @@ namespace WPEFramework #endif globalLedBrightness = device::FrontPanelIndicator::getInstance("Power").getBrightness(); LOGINFO("Power light brightness, %d, power status %d", globalLedBrightness, powerStatus); -#if 0 +#if 0 //Need to fix this logic based on the device type. for (uint i = 0; i < fpIndicators.size(); i++) { LOGWARN("Initializing light %s", fpIndicators.at(i).getName().c_str()); @@ -190,7 +191,7 @@ namespace WPEFramework device::FrontPanelIndicator::getInstance(fpIndicators.at(i).getName()).setState(false); } #else - LOGWARN("GSK: NOT Initializing light power since we continue with bootloader patern"); + LOGWARN("Power LED Initializing is not set since we continue with bootloader patern"); #endif if (powerStatus) device::FrontPanelIndicator::getInstance("Power").setState(true); From 376d5250c1a91088560b71ca570f8891134a852a Mon Sep 17 00:00:00 2001 From: gsanto722 Date: Thu, 17 Jul 2025 08:48:39 +0000 Subject: [PATCH 4/5] RDKEMW-5739: LED booting pattern Reason for change: Power LED Initializing is not set from MW and continue with bootloader patern Test Procedure: Refer RDKEMW-5739 Risks: High Signed-off-by:gsanto722 grandhi_santoshkumar@comcast.com --- helpers/frontpanel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/helpers/frontpanel.cpp b/helpers/frontpanel.cpp index f57a3a5a..165512b6 100644 --- a/helpers/frontpanel.cpp +++ b/helpers/frontpanel.cpp @@ -181,6 +181,7 @@ namespace WPEFramework #endif globalLedBrightness = device::FrontPanelIndicator::getInstance("Power").getBrightness(); LOGINFO("Power light brightness, %d, power status %d", globalLedBrightness, powerStatus); + #if 0 //Need to fix this logic based on the device type. for (uint i = 0; i < fpIndicators.size(); i++) { From e99bec3fdd4a944f7dec779478c52a2409402459 Mon Sep 17 00:00:00 2001 From: gsanto722 Date: Thu, 17 Jul 2025 15:35:00 +0000 Subject: [PATCH 5/5] RDKEMW-5739: LED booting pattern Reason for change: Power LED Initializing is not set from MW and continue with bootloader patern Test Procedure: Refer RDKEMW-5739 Risks: High Signed-off-by:gsanto722 grandhi_santoshkumar@comcast.com --- helpers/frontpanel.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/helpers/frontpanel.cpp b/helpers/frontpanel.cpp index 165512b6..9b0afb91 100644 --- a/helpers/frontpanel.cpp +++ b/helpers/frontpanel.cpp @@ -182,18 +182,16 @@ namespace WPEFramework globalLedBrightness = device::FrontPanelIndicator::getInstance("Power").getBrightness(); LOGINFO("Power light brightness, %d, power status %d", globalLedBrightness, powerStatus); -#if 0 //Need to fix this logic based on the device type. for (uint i = 0; i < fpIndicators.size(); i++) { LOGWARN("Initializing light %s", fpIndicators.at(i).getName().c_str()); if (powerStatus) + { device::FrontPanelIndicator::getInstance(fpIndicators.at(i).getName()).setBrightness(globalLedBrightness, false); - - device::FrontPanelIndicator::getInstance(fpIndicators.at(i).getName()).setState(false); + LOGINFO("Initialized light %s with brightness %d", fpIndicators.at(i).getName().c_str(), globalLedBrightness); + } } -#else - LOGWARN("Power LED Initializing is not set since we continue with bootloader patern"); -#endif + if (powerStatus) device::FrontPanelIndicator::getInstance("Power").setState(true);