Package Base Details: nvidia-340xx

Git Clone URL: https://aur.archlinux.org/nvidia-340xx.git (read-only, click to copy)
Submitter: simonsmh
Maintainer: JerryXiao
Last Packager: JerryXiao
Votes: 70
Popularity: 0.165423
First Submitted: 2019-06-07 10:29 (UTC)
Last Updated: 2024-03-17 06:41 (UTC)

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

Latest Comments

1 2 3 4 5 6 .. 56 Next › Last »

Nebulosa commented on 2024-05-09 10:16 (UTC) (edited on 2024-05-09 18:13 (UTC) by Nebulosa)

Does not compile on gcc v14.

You should downgrade:

gcc 14.1.1+r1+g43b730b9134-1 -> 13.2.1-6

gcc-libs 14.1.1+r1+g43b730b9134-1 -> 13.2.1-6

AND

linux 6.8.9.arch1-2 -> 6.8.9.arch1-1

linux-headers 6.8.9.arch1-2 -> 6.8.9.arch1-1

Edit: may be this could help: https://bbs.archlinux.org/viewtopic.php?id=295600

sayonalion commented on 2024-05-09 09:46 (UTC) (edited on 2024-05-09 18:21 (UTC) by sayonalion)

When building it fails with the following error.

<...>/nvidia-340xx/src/NVIDIA-Linux-x86_64-340.108-no-compat32/kernel/nv-linux.h:326:2: error: #error "NV_PCI_DMA_MAPPING_ERROR() undefined!"
  326 | #error "NV_PCI_DMA_MAPPING_ERROR() undefined!"

What can be the reason of this? How the problem can be tackled?

linux-lts 6.6.30; gcc 14.1.1+r1+g43b730b9134

Anakievs commented on 2024-05-07 10:11 (UTC) (edited on 2024-05-07 10:15 (UTC) by Anakievs)

@MegaDeKay Yes, everything works with kernel 6.8 without manual intervention (tested on real hardware). Read here for more information:
https://github.com/archlinux-jerry/nvidia-340xx/issues/8
I've left the original post if someone still has a problem and copying 'drm_legacy.h' is a solution for them.

earlybird commented on 2024-05-07 09:14 (UTC)

is it possible to add an extra conflict package from conflicts=('nvidia') to conflicts=('nvidia' 'nvidia-dkms')

MegaDeKay commented on 2024-05-07 01:02 (UTC)

@Anakievs: To clarify, you are saying that everything works now with this driver compiled on Arch with a new 6.8 kernel, including direct rendering?

Anakievs commented on 2024-04-23 08:12 (UTC) (edited on 2024-04-23 08:14 (UTC) by Anakievs)

$ glxinfo | grep "direct rendering"
direct rendering: Yes

$ uname -r
6.8.7-arch1-1

holyArch commented on 2024-04-23 00:07 (UTC)

@Anakievs: What's the output if you run: glxinfo | grep "direct rendering"?

"Yes" or "No"?

Anakievs commented on 2024-04-15 19:03 (UTC)

@NSLW I don't have a black screen issue. I've thought I've made something revolutionary about the drm issue. Then I've realised that I've made nothing.

I've just compiled the driver on Debian 12. I like Arch a lot more but I look for other options.

NSLW commented on 2024-04-13 15:53 (UTC) (edited on 2024-04-13 15:54 (UTC) by NSLW)

@Anakievs did you try to add

Section "Device"
    Identifier  "Videocard0"
    Driver      "nvidia"
EndSection

to your /etc/X11/xorg.conf to fix the black screen issue?

Anakievs commented on 2024-04-07 18:21 (UTC) (edited on 2024-04-29 11:25 (UTC) by Anakievs)

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)