Decided to give Fedora 40 a try, using KDE Plasma. I installed it on my laptop, which has an Nvidia dGPU and and an AMD iGPU.
ajw@fedora:~$ sudo lspci -k | grep -EA3 'VGA'
pcilib: Error reading /sys/bus/pci/devices/0000:00:08.3/label: Operation not permitted
01:00.0 VGA compatible controller: NVIDIA Corporation GN20-P0-R-K2 [GeForce RTX 3050 6GB Laptop GPU] (rev a1)
Subsystem: Hewlett-Packard Company Device 8bd5
Kernel driver in use: nvidia
Kernel modules: nouveau, nvidia_drm, nvidia
--
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Phoenix1 (rev c2)
Subsystem: Hewlett-Packard Company Device 8bd5
Kernel driver in use: amdgpu
Kernel modules: amdgpu
I’m aware of and have been experiencing the problems that come with using Nvidia with Wayland - frequent lag, horizontal glitch bars across the screen, etc. I don’t want to use x11 because of the other issues that introduces–I’d rather just use my AMD iGPU for everything–but I’m not sure how to switch. Here’s what I’ve tried:
ajw@fedora:~$ glxinfo | grep "NVIDIA"
glx: failed to create dri3 screen
failed to load driver: nouveau
Device: zink Vulkan 1.3(NVIDIA GeForce RTX 3050 6GB Laptop GPU (NVIDIA_PROPRIETARY)) (0x25ac)
OpenGL renderer string: zink Vulkan 1.3(NVIDIA GeForce RTX 3050 6GB Laptop GPU (NVIDIA_PROPRIETARY))
As you can see it’s using the Nvidia GPU for rendering…
in ~/.config/environment.d/envvars.conf
I put DRI_PRIME=1
but it didn’t seem to change anything.
I tried editing the Kwin enviromental config at ~/.config/environment.d/kwin.conf
to include KWIN_DRM_DEVICES="/dev/dri/by-path/pci-0000:05:00.0-card"
(which is the AMD iGPU) but after trying that I just couldn’t log in anymore and had to revert it in recovery mode
Any help would be appreciated, thanks!