Bug 480030 - KDE Power Management System Closed Unexpectedly
Summary: KDE Power Management System Closed Unexpectedly
Status: RESOLVED UPSTREAM
Alias: None
Product: Powerdevil
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: 5.27.10
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 480031 480046 480753 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-01-19 03:49 UTC by Johnny
Modified: 2024-02-02 23:22 UTC (History)
10 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
The backtrace of powerdevil against ddcutil-2.1.0-1 (20.28 KB, text/plain)
2024-01-19 11:34 UTC, Sishun Liu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johnny 2024-01-19 03:49:19 UTC
SUMMARY
***
After Kernel update to latest version, a warning notification will appear on the taskbar. The notification lasts a few seconds, then disappears for a few seconds, then re-appears. This happens forever.  The power management section in the system-settings is greyed out because it says the process is not running.

Clicking the warning brings up a pop-up window. Which also disappears rather quickly. Meaning the bug report button in there doesn't work either.
 
This appears to be the same issue as  https://bugs.kde.org/show_bug.cgi?id=466181  However, 466181 is listed as fixed. This appears to be cropping up again.
***


STEPS TO REPRODUCE
1.  Log into a KDE wayland session

OBSERVED RESULT
Power management in system settings isn't working. Error icon flashes every few seconds on bottom right of screen

EXPECTED RESULT
Power management in system settings functional and no error indicator

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Arch Linux
(available in About System)
KDE Plasma Version: 5.27.10
KDE Frameworks Version:  I'm honestly not sure. It's whatever the latest is in the arch repos
Qt Version:  I'm honestly not sure. It's whatever the latest is in the arch repos

ADDITIONAL INFORMATION
Comment 1 Sishun Liu 2024-01-19 11:34:23 UTC
Created attachment 165035 [details]
The backtrace of powerdevil against ddcutil-2.1.0-1
Comment 2 Sishun Liu 2024-01-19 11:38:26 UTC
I encountered this issue after updating ddcutil to 2.1.0. Downgrading it to 2.0.0 fixes this issue. Backtrace uploaded.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Arch Linux
KDE Plasma Version: 5.27.10
KDE Frameworks Version:  5.114.0
Qt Version:  5.15.12
Comment 3 Nicolas Fella 2024-01-19 16:44:08 UTC
*** Bug 480046 has been marked as a duplicate of this bug. ***
Comment 4 Nicolas Fella 2024-01-19 16:44:37 UTC
*** Bug 480031 has been marked as a duplicate of this bug. ***
Comment 5 Nicolas Fella 2024-01-19 16:45:20 UTC
See https://github.com/rockowitz/ddcutil/issues/365
Comment 6 Bug Janitor Service 2024-01-19 17:03:04 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/powerdevil/-/merge_requests/309
Comment 7 Nicolas Fella 2024-01-19 21:00:28 UTC
Git commit 46609206d5ccb821427791a2603fd1eb2477b8c3 by Nicolas Fella.
Committed on 19/01/2024 at 18:00.
Pushed by nicolasfella into branch 'master'.

Allow disabling DDC brightness via env variable

Interacting with ddcutils has shown to be troublesome on occasion, so it
might be interesting to disable it, if only for debugging

When starting powerdevil with POWERDEVIL_NO_DDCUTIL=1 it will skip
initializing/using ddcutil

M  +5    -0    daemon/controllers/ddcutilbrightness.cpp

https://invent.kde.org/plasma/powerdevil/-/commit/46609206d5ccb821427791a2603fd1eb2477b8c3
Comment 8 Nicolas Fella 2024-01-19 21:00:55 UTC
Git commit 77b115ee73f8f2eb4c7148b0f8c1f884ae779ca3 by Nicolas Fella.
Committed on 19/01/2024 at 22:00.
Pushed by nicolasfella into branch 'Plasma/6.0'.

Allow disabling DDC brightness via env variable

Interacting with ddcutils has shown to be troublesome on occasion, so it
might be interesting to disable it, if only for debugging

When starting powerdevil with POWERDEVIL_NO_DDCUTIL=1 it will skip
initializing/using ddcutil
(cherry picked from commit 46609206d5ccb821427791a2603fd1eb2477b8c3)

M  +5    -0    daemon/backends/upower/ddcutilbrightness.cpp

https://invent.kde.org/plasma/powerdevil/-/commit/77b115ee73f8f2eb4c7148b0f8c1f884ae779ca3
Comment 9 Jakob Petsovits 2024-01-20 18:44:55 UTC
Resolved in the yet unreleased libddcutil 2.1.1 as per https://github.com/rockowitz/ddcutil/issues/365#issuecomment-1902139509.

The explanation that the maintainer gives would also mean that starting from Plasma 6.0 RC1, it should be safe to use libddcutil 2.1.0 because ddca_init() is called before making any other API calls. This bug was reported for Plasma 5.27, which is in bugfix-only mode and has not been targeting the new 2.0 API explicitly. We may want to consider backporting the ddca_init() call (https://invent.kde.org/plasma/powerdevil/-/commit/334e0c041a34fbcd09b90b4481878f71a7aac0ec) to the 5.27 branch as well to provide a second layer of fixing.
Comment 10 Antonio Rojas 2024-02-02 23:22:48 UTC
*** Bug 480753 has been marked as a duplicate of this bug. ***