Switching to integrated graphics

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!

I assume that you haven’t already fixed the issue, but here I go:
I have been using my Ryzen 5600x RTX 2070 PC with Fedora KDE for a year and then some by now.

Up to Fedora 39 it was not a nice and smooth experience, but now it’d decent enough.

Still, the RPM Fusion drivers haven’t given me problems with almost any game at all, and the “other software misbehaving a little” is due to Fedora still being developed for.

The question which comes to my mind is this:
What drivers did you try to install on your laptop?
Where them these?