Enter ActivateDisplayUsingDPMS even if SetPowerMode off
Hello, when I invoke HWC2::Error HwcDisplay::SetPowerMode
, no matter parameter is HWC2::PowerMode::Off
or HWC2::PowerMode::On
, always meet the condition if (a_args.active)
, enter GetPipe().atomic_state_manager->ActivateDisplayUsingDPMS()
and return before GetPipe().atomic_state_manager->ExecuteAtomicCommit(a_args)
.
Since type of a_args.active is std::optional<bool>
, bool(a_args.active) is true after a_args.active = false;
.
I suspect the condition if (a_args.active)
should be if (*a_args.active)
.