Edit:
The driver works and the steps bellow aren't requared. I've trusted the people saying there is an issue without confirming it myself.
Original:
Here is a workaround I've used (it's based on lmh69's comment).
I've extracted 'drm_legacy.h' from 'linux-headers-6.7.arch3-1-x86_64.pkg.tar.zst' to '/usr/lib/modules/6.8.4-arch1-1/build/include/drm/drm_legacy.h'. Then I've reinstalled both 'linux-headers' (to run dkms) [and 'linux' to run mkinitcpio] you can run them manually but this way was easier for me.
I've tested just a few things: vdpau, glx, Xorg.0.log and dmesg. I haven't found any issues so far.
IMPORTANT: I am still with 'nvidia-340xx-dkms 340.108-35'. I've never updated. It won't work with 'nvidia-340xx-dkms 340.108-36'.
I don't know if it's wrong but works for me:
$ uname -r 6.8.4-arch1-1 $ glxgears Running synchronized to the vertical refresh. The framerate should be approximately the same as the monitor refresh rate. 303 frames in 5.0 seconds = 60.491 FPS 300 frames in 5.0 seconds = 59.972 FPS $ mpv ... (+) Video --vid=1 (*) (h264 1280x720 25.000fps) (+) Audio --aid=1 (*) (aac 2ch 44100Hz) Using hardware decoding (vdpau). AO: [pulse] 44100Hz stereo 2ch float VO: [gpu] 1280x720 vdpau[yuv420p] Exiting... (Quit)
Pinned Comments
JerryXiao commented on 2022-10-13 03:51 (UTC) (edited on 2022-10-14 02:44 (UTC) by JerryXiao)
For testing users, contributors: check out https://github.com/archlinux-jerry/nvidia-340xx
Warning: force push may happen to match the aur tree