I have Nvidia RTX 5080, after an update several days ago some games (Last of us 2, Kingdom come deliverance 2) freeze and crash after several minutes or seconds with this error in dmesg and journalctl: NVRM: Xid (PCI:0000:01:00): 109, pid=11353, name=tlou-ii.exe, channel 0x0000000c, errorString CTX SWITCH TIMEOUT
Kernel headers are packages whose names have suffix -headers.
For example, the headers package for linux is linux-headers and for linux-lts it is linux-lts-headers.
The latter command doesn’t change anything but suggests the commands you’d need to switch the driver.
You can show the output here if you are not sure about them.
Note that nvidia-inst has many options, and some are what you might want to use.
To revert the driver back to previous, you may run
Downgrading also worked via sudo downgrade lib32-nvidia-utils libxnvctrl nvidia-open-dkms nvidia-settings nvidia-utils
At first I thought it helped but then it crashed again a bit later. But looks like at least for one of the games it’s a game-specific issue, I limited the fps and refresh rate to 60 as suggested in the ProtonDB comments for Last of us 2 and it stopped crashing.