https://bugs.kde.org/show_bug.cgi?id=394945

--- Comment #6 from m_loui...@yahoo.com ---
Finally got a breakpoint set at the right place. Here is what I see:

Thread 1 "org_kde_powerde" hit Breakpoint 2,
PowerDevil::BundledActions::BrightnessControl::onProfileLoad
(this=0x55cba3ef1910) at ./daemon/actions/bundled/brightnesscontrol.cpp:80
80      in ./daemon/actions/bundled/brightnesscontrol.cpp
(gdb) print m_lastProfile
$9 = "LowBattery"
(gdb) print m_currentProfile
$10 = "LowBattery"

Even if I plug AC between two "LowBattery" events, m_lastProfile remains at
"LowBattery". This is because I unchecked "Screen Brightness" in the "AC" and
"Battery" tabs. When this is the case, the brightness control action doesn't
get notifications for profile changes and thus it doesn't update
m_currentProfile accordingly.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to