https://bugs.kde.org/show_bug.cgi?id=441372

            Bug ID: 441372
           Summary: optimus laptop: nvidia driver is unnecessarily
                    loaded/grabbed by kwin on an intel GPU session
           Product: kwin
           Version: 5.22.4
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: platform-wayland
          Assignee: kwin-bugs-n...@kde.org
          Reporter: rom1...@gmail.com
  Target Milestone: ---

SUMMARY
(This indirectly causes my laptop to not suspend any more, which seems related
to https://bugzilla.rpmfusion.org/show_bug.cgi?id=6066)

As it appears, only on a Wayland session, the nvidia kernel driver gets loaded
even though I am not using the discrete GPU of my laptop

STEPS TO REPRODUCE
1. After a cold boot, from SDDM, jump to a non-graphical terminal and observe
that `lsmod | grep nvidia` returns nothing
2. Then, login into a KDE-Wayland session from SDDM, switch to the same
non-graphical terminal and observe that the same command indicates "nvidia" and
"nvidia_uvm" to be loaded
3. Note that `modprobe -r nvidia` fails with "modprobe: FATAL: Module nvidia is
in use."
4. Note from the system info that the session runs on intel and not actually on
nvidia
5. Log-out from the Wayland shell back into SDDM
6. Then, `modprobe -r nvidia` completes successfully
7. Log into an X11 shell, and observe that no nvidia driver is loaded

OBSERVED RESULT
The nvidia driver is unnecessarily loaded on Wayland

EXPECTED RESULT
The nvidia driver to be loaded only on demand (through PRIME_RENDER_OFFLOAD,
optirun & al.) on such a machine with a discrete GPU

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.13.10-200.fc34.x86_64/plasma-desktop-5.22.4-1.fc34.x86_64
KDE Frameworks Version: kf5-kwindowsystem-5.85.0-1.fc34.x86_64
Qt Version: qt5-qtbase-5.15.2-16.fc34.x86_64

ADDITIONAL INFORMATION
xorg-x11-drv-nvidia-470.63.01-1.fc34.x86_64
User Eighth_Doctor‎ on LiberaChat reporting that this might have to do with
display enumeration

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to