Display Artifacts After Login. TTY works fine

After I login to kde I get display artifacts.

Distro : Fedora 39
Hw : Dell G15 5515 (Laptop)
GPU : AMD + Nvidia optimus

Try these instructions Howto/Optimus - RPM Fusion

I have already done these instructions. Nvidia drivers and optimus was working fine before this bug.

What changed between it all working and now?
New kernel? Did you wait for the nvidia drivers to be built?

No, it’s a clean install. And it was already up to date before the bug happened.

I did change the refresh rate to 60hz. It was 120Hz before. This is a freesync display. VRR is off in settings.

You will need to provide some details please.

inxi -Gfxx
rpm -qa | grep nvidia

inxi -Gfxx

  Info: 6-core model: AMD Ryzen 5 5600H with Radeon Graphics bits: 64 type: MT MCP arch: Zen 3
    rev: 0 cache: L1: 384 KiB L2: 3 MiB L3: 16 MiB
  Speed (MHz): avg: 765 high: 2567 min/max: 400/4280 cores: 1: 400 2: 2567 3: 400 4: 400 5: 1397
    6: 1623 7: 400 8: 400 9: 400 10: 400 11: 400 12: 400 bogomips: 79051
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1 bmi2 bpext cat_l3
    cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy constant_tsc cpb cppc cpuid cqm cqm_llc
    cqm_mbm_local cqm_mbm_total cqm_occup_llc cr8_legacy cx16 cx8 de debug_swap decodeassists
    erms extapic extd_apicid f16c flushbyasid fma fpu fsgsbase fsrm fxsr fxsr_opt ht hw_pstate
    ibpb ibrs ibs invpcid irperf lahf_lm lbrv lm mba mca mce misalignsse mmx mmxext monitor movbe
    msr mtrr mwaitx nonstop_tsc nopl npt nrip_save nx ospke osvw overflow_recov pae pat
    pausefilter pclmulqdq pdpe1gb perfctr_core perfctr_llc perfctr_nb pfthreshold pge pku pni
    popcnt pse pse36 rapl rdpid rdpru rdrand rdseed rdt_a rdtscp rep_good sep sha_ni skinit smap
    smca smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 stibp succor svm svm_lock syscall tce
    topoext tsc tsc_scale umip user_shstk v_spec_ctrl v_vmsave_vmload vaes vgif vmcb_clean vme
    vmmcall vpclmulqdq wbnoinvd wdt xgetbv1 xsave xsavec xsaveerptr xsaveopt xsaves
  Device-1: NVIDIA GA107M [GeForce RTX 3050 Mobile] vendor: Dell driver: nvidia v: 545.29.06
    arch: Ampere pcie: speed: 8 GT/s lanes: 8 ports: active: none empty: HDMI-A-1 bus-ID: 01:00.0
    chip-ID: 10de:25a2
  Device-2: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series] vendor: Dell driver: amdgpu
    v: kernel arch: GCN-5 pcie: speed: 8 GT/s lanes: 16 ports: active: eDP-1 empty: DP-1
    bus-ID: 05:00.0 chip-ID: 1002:1638 temp: 40.0 C
  Device-3: Microdia [] driver: uvcvideo type: USB rev: 2.0 speed: 480 Mb/s lanes: 1
    bus-ID: 1-4:3 chip-ID: 0c45:6a09
  Display: server: X.org v: 1.20.14 with: Xwayland v: 23.2.3 compositor: kwin_wayland driver: X:
    loaded: amdgpu,modesetting unloaded: fbdev,vesa dri: radeonsi,nouveau gpu: amdgpu tty: 240x67
  Monitor-1: eDP-1 model: BOE Display 0x0a8a res: 1920x1080 dpi: 142 diag: 395mm (15.5")
  API: EGL v: 1.5 platforms: device: 0 drv: nvidia device: 1 drv: radeonsi device: 3 drv: swrast
    surfaceless: drv: nvidia inactive: gbm,wayland,x11,device-2
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: mesa v: 23.2.1 note: console (EGL sourced)
    renderer: NVIDIA GeForce RTX 3050 Laptop GPU/PCIe/SSE2, AMD Radeon Graphics (renoir LLVM 16.0.6
    DRM 3.54 6.6.6-200.fc39.x86_64), llvmpipe (LLVM 16.0.6 256 bits)
  API: Vulkan v: 1.3.268 surfaces: N/A device: 0 type: integrated-gpu driver: mesa radv
    device-ID: 1002:1638 device: 1 type: discrete-gpu driver: nvidia device-ID: 10de:25a2 device: 2
    type: cpu driver: mesa llvmpipe device-ID: 10005:0000

rpm -qa | grep nvidia


What happens if you do sudo dnf reinstall \*nvidia\*

There are packages that get installed by default that are missing or extra in that list.

xorg-x11-drv-nvidia-libs.i686 & xorg-x11-drv-nvidia-cuda-libs.i686 are both missing and
libva-nvidia-driver is extra (not included) for a default installation of the nvidia drivers from rpmfusion.

It reinstalled the existing packages. Did not install new packages.

I removed the home directory and created new one. Plasma worked fine, so it’s definitely a config issue. Any way to find what the problem is ?

Maybe settings related to “variable refresh rate” and “refresh rate” ? I did change those settings before this issue happened. I also changed the power profile to battery in the last working boot.

Continued here since the issue is more specific now.