Summary: | powerdevil high CPU usage with ddcutil 2.2.0 | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | Avraham Hollander <anhollander516> |
Component: | Power management & brightness | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | anhollander516, jpetso, julien.dlq, kdedev, nate, sam |
Priority: | NOR | ||
Version First Reported In: | 6.3.2 | ||
Target Milestone: | 1.0 | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
See Also: |
https://bugs.kde.org/show_bug.cgi?id=476375 https://bugs.kde.org/show_bug.cgi?id=501971 https://bugs.kde.org/show_bug.cgi?id=508550 |
||
Latest Commit: | Version Fixed In: | Plasma 6.4.4 with ddcutil 2.2.0 | |
Sentry Crash Report: |
Description
Avraham Hollander
2025-02-27 20:16:29 UTC
I'm not seeing this on Plasma 6.3.2 or git-master (both systems have ddcutils 2.2.0) For instance, on 6.3.2: $ ps -p 533706 -o %cpu,%mem,cmd %CPU %MEM CMD 0.0 0.1 /usr/lib64/kf6/org_kde_powerdevil Can you get the pid of powerdevil, use it in the following command: ps -p PID -o %cpu,%mem,cmd and paste the output in this report? Thanks! ddcutil 2.2.0 has two different "watch modes", as per release notes: http://www.ddcutil.com/c_api_220/ The logs from Comment #0 indicate that this user's system is using the POLL watch mode, see this snippet: > watch mode = Watch_Mode_Poll, poll loop interval = 2000 millisec On my system, I get Watch_Mode_Xevent which according to ddcutil is easier on the CPU. So, if ddcutil with POLL watch mode is too CPU-intensive on a Ryzen 5600G (which isn't even all that old) then that's not so great. As mentioned in Bug 500951 comment #2, possible attempt on the powerdevil side of things could be to abandon ddcutil's display change notifications altogether, and instead trigger manual ddcutil redetection after libkscreen tells us about new or removed displays. I'm not sure when exactly this was fixed, but I've actually been using ddcutil 2.2.0 for a while now and it's been fine. So I'm closing this as fixed. Thanks for letting us know :) |