| Summary: | optimus laptop: nvidia driver is unnecessarily loaded/grabbed by kwin on an intel GPU session | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | Romain D. <rom1dep> |
| Component: | platform-drm | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | normal | CC: | jgrulich, nate, ngompa, rdieter, xaver.hugl |
| Priority: | NOR | ||
| Version First Reported In: | 5.22.4 | ||
| Target Milestone: | --- | ||
| Platform: | Fedora RPMs | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Romain D.
2021-08-22 15:29:29 UTC
> User Eighth_Doctor on LiberaChat reporting that this might have to do with display enumeration
That is correct. We have to load the GPU to be able to list its outputs; when there are no outputs we do unload it again though.
I double checked and there is a bug in the gpu removal code but it's pretty unlikely to cause this as it's mostly a memory leak.
Git commit fbff8636b9a1d21772fccaacb8b2a55aa517aa90 by Xaver Hugl. Committed on 24/08/2021 at 12:36. Pushed by zamundaaa into branch 'master'. platforms/drm: fix gpu removal As soon as m_backends.removeOne(*it) returns, "it" no longer points to the same value. M +3 -3 src/plugins/platforms/drm/egl_multi_backend.cpp https://invent.kde.org/plasma/kwin/commit/fbff8636b9a1d21772fccaacb8b2a55aa517aa90 Git commit 5611c905cea800ee57ba5690c3ec75b086258612 by Xaver Hugl. Committed on 24/08/2021 at 12:37. Pushed by zamundaaa into branch 'Plasma/5.22'. platforms/drm: fix gpu removal As soon as m_backends.removeOne(*it) returns, "it" no longer points to the same value. (cherry picked from commit fbff8636b9a1d21772fccaacb8b2a55aa517aa90) M +3 -3 src/plugins/platforms/drm/egl_multi_backend.cpp https://invent.kde.org/plasma/kwin/commit/5611c905cea800ee57ba5690c3ec75b086258612 Is this still happening on Plasma 5.27? (In reply to Zamundaaa from comment #4) > Is this still happening on Plasma 5.27? Hard for me to reproduce nowadays, because my distro switched to sddm-wayland since, and current power management features require the module to be loaded at all times (AFAIU). I'd say it's ok to close if nobody objects. Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone! This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone! |