Summary: | powerdevil daemon hibernate twice when battery is critical | ||
---|---|---|---|
Product: | [Unmaintained] solid | Reporter: | Lukáš Karas <lukas.karas> |
Component: | powermanagement-daemon | Assignee: | Dario Freddi <drf> |
Status: | RESOLVED FIXED | ||
Severity: | minor | ||
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Lukáš Karas
2010-10-11 20:48:42 UTC
Ou, I overlook this condition before action call... if (Solid::Control::PowerManager::acAdapterState() == Solid::Control::PowerManager::Plugged) { return; } This code in daemon looks right. But why is called hibernate twice? What happen when charge level is decrease twice before system suspend? Is possible call this function synchronized? ...have C++ something similar like Java's synchronize block? Should be fixed in 4.6 |