I am using a Lenovo Legion 5 Pro laptop that has the following specifications:
Kernel: 6.7.0-arch3-1
OS: EndeavourOS Linux x86_64
Resolution: 2560x1600
DE: Plasma 5.27.10
CPU: AMD Ryzen 7 7745HX with Radeon Graphics (16) @ 5.151GHz
GPU: NVIDIA GeForce RTX 4060 Max-Q / Mobile
GPU: AMD ATI 08:00.0 Raphael
I have set up the GPU to use PRIME render offloading so that I can switch between the graphics cards and ensure a better battery life.
I have been having an issue of graphical glitches ever since I had installed endeavourOS, back then my system was running on open source graphics drivers so I assumed that the issues would go away when I would install proprietary drivers but the issue persisted.
It sometimes starts randomly but one way to force it to happen is to run some GUI apps and resize the window repeatedly. The glitch starts simple like the cursor is glitched or icons is glitched and then the entire screen glitches leaving the only option of force shutdown by the power button.
I would be very grateful if someone can help me in resolving this issue. Do let me know if additional logs are required.
Add nvidia-drm.modeset=1 to /etc/kernel/cmdline and run sudo reinstall-kernels
Remove all those nvidia packages you have installed that aren’t from the Arch repos as a debugging step and see if any those are the cause of the issue
Early load the nvidia drivers as described in our wiki
The steps above didn’t help but I found the solution on a reddit thread. The fix is to add the following kernel parameters: amd_iommu=pgtbl_v2 iommu=pt acpi=copy_dsdt to /etc/kernel/cmdline and then run sudo reinstall-kernels to regenerate the initrds. It appears to be an issue of the AMD iGPU.