63 lines
2.1 KiB
Diff
Executable File
63 lines
2.1 KiB
Diff
Executable File
From 1a69465a1b75db75087fd9d060109284feafe190 Mon Sep 17 00:00:00 2001
|
|
From: Nikhil Jain C S <nikhil.jain.c.s@intel.com>
|
|
Date: Fri, 24 Jun 2022 16:54:25 +0530
|
|
Subject: [PATCH] Polarity Issue
|
|
|
|
Reversing the polarity on D-Bus
|
|
|
|
Tested on AVC.
|
|
|
|
Power is off -> OSStatus Inactive
|
|
Power is On -> OSStatus Standby
|
|
|
|
Signed-off-by: Nikhil Jain C S <nikhil.jain.c.s@intel.com>
|
|
Upstream-Status: Pending
|
|
---
|
|
src/power_control.cpp | 12 ++++++------
|
|
1 file changed, 6 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/src/power_control.cpp b/src/power_control.cpp
|
|
index bc30b71..cfd0eb0 100644
|
|
--- a/src/power_control.cpp
|
|
+++ b/src/power_control.cpp
|
|
@@ -2276,12 +2276,12 @@ static void postCompleteHandler(bool state)
|
|
if (!state)
|
|
{
|
|
sendPowerControlEvent(Event::postCompleteAssert);
|
|
- setOperatingSystemState(OperatingSystemStateStage::Standby);
|
|
+ setOperatingSystemState(OperatingSystemStateStage::Inactive);
|
|
}
|
|
else
|
|
{
|
|
sendPowerControlEvent(Event::postCompleteDeAssert);
|
|
- setOperatingSystemState(OperatingSystemStateStage::Inactive);
|
|
+ setOperatingSystemState(OperatingSystemStateStage::Standby);
|
|
}
|
|
}
|
|
|
|
@@ -2565,8 +2565,8 @@ void setInitialValue(const ConfigData& configData, bool initialValue)
|
|
else if (configData.name == "PostComplete")
|
|
{
|
|
OperatingSystemStateStage osState =
|
|
- (initialValue ? OperatingSystemStateStage::Inactive
|
|
- : OperatingSystemStateStage::Standby);
|
|
+ (initialValue ? OperatingSystemStateStage::Standby
|
|
+ : OperatingSystemStateStage::Inactive);
|
|
setOperatingSystemState(osState);
|
|
}
|
|
else
|
|
@@ -3412,8 +3412,8 @@ int main(int argc, char* argv[])
|
|
else
|
|
{
|
|
osState = getProperty(postCompleteConfig) > 0
|
|
- ? OperatingSystemStateStage::Inactive
|
|
- : OperatingSystemStateStage::Standby;
|
|
+ ? OperatingSystemStateStage::Standby
|
|
+ : OperatingSystemStateStage::Inactive;
|
|
}
|
|
|
|
osIface->register_property(
|
|
--
|
|
2.25.1
|
|
|