https://bugs.kde.org/show_bug.cgi?id=520622
Bug ID: 520622
Summary: watch_displays / org_kde_powerdevil spiking CPU
Classification: I don't know
Product: kde
Version First unspecified
Reported In:
Platform: Fedora RPMs
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
DESCRIPTION: This may have started with a recent Fedora 43 update (recent
meaning past week or so). It continues after an F44 upgrade.
I observe CPU spikes every 2-4 seconds caused by powerdevil with a thread name
of "watch_displays" (per htop). One of my GPU's that normally sits idle at 14W
(no connected displays; dedicated to part-time inferencing) is bouncing from 17
to 27W.
STEPS TO REPRODUCE
1. Boot system.
2. Wonder why my GTX 3060 isn't idle.
(no user interaction is required)
Looking over my system journal (from back when there was no issue) I see a long
history of:
`Watching for display connection changes, resolved watch mode =
Watch_Mode_Xevent, poll loop interval = 100 millisec`
Instead, within the past few days I see:
```
org_kde_powerdevil[6507]: X11 RANDR API unavailable. Switching to
Watch_Mode_Poll
org_kde_powerdevil[6507]: [ 6507] X11 RANDR API unavailable. Switching to
Watch_Mode_Poll
org_kde_powerdevil[6507]: [ 6507] Watching for display connection changes,
resolved watch mode = Watch_Mode_Poll, poll loop interval = 2000 millisec
```
So this may be precipitated by a RANDR API issue but I reckon powerdevil eating
CPU cycles should be regarded as pathological regardless?
There's also a bunch of:
```
systemd[3745]: plasma-gmenudbusmenuproxy.service: Main process exited,
code=dumped, status=6/ABRT
systemd[3745]: plasma-gmenudbusmenuproxy.service: Failed with result
'core-dump'.
systemd[3745]: plasma-gmenudbusmenuproxy.service: Scheduled restart job,
restart counter is at 4.
```
...and a litany of:
```
<various service names> Failed to register with host portal
QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID:
Unable to open /proc/4285/root")
<various service names> Failed to register with host portal
QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID:
App info not found for 'org.kde.ActivityManager'")
```
Both of these are new so I reckon there's definitely underlying pathology here.
But should powerdevil handle this better?
SOFTWARE/OS VERSIONS
Operating System: both F43 and F44
KDE Plasma Version: 6.6.5
KDE Frameworks Version: 6.26.0
Qt Version: 6.11.1
powerdevil 6.6.5-1
Happy to engage verbose/debug logging -- just let me know what's needed. Will
also amend this bug if I can figure out what's causing the RANDR API and the
QDbus issues.
--
You are receiving this mail because:
You are watching all bug changes.