Package Details: nvidia-340xx 340.108-37

Git Clone URL: https://aur.archlinux.org/nvidia-340xx.git (read-only, click to copy)
Package Base: nvidia-340xx
Description: NVIDIA drivers for linux, 340xx legacy branch
Upstream URL: https://www.nvidia.com/
Licenses: custom
Conflicts: nvidia
Submitter: simonsmh
Maintainer: JerryXiao
Last Packager: JerryXiao
Votes: 72
Popularity: 0.86
First Submitted: 2019-06-07 10:29 (UTC)
Last Updated: 2024-05-10 16:52 (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

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 11 12 .. 58 Next › Last »

sebalis commented on 2023-08-31 10:00 (UTC)

Sadly I don’t have the expertise or setup to work with patches, but I have seen a patch for nvidia-390xx mentioned on the AUR forum. Might that help? See https://bbs.archlinux.org/viewtopic.php?pid=2118130#p2118130

Lostless commented on 2023-08-29 10:31 (UTC)

Doesn't work with Linux 6.5.

auriculaire commented on 2023-08-28 09:15 (UTC)

@sebalis thank you. Your reply tells me that I'm not the only one concerned. The command you mention does indeed get around the opengl problem: by typing: 'GDK_DEBUG=gl-glx:opengl gnome-calculator' the application launches fine. Ditto for baobab... On the other hand, Totem always returns "OpenGL support initialization failed". Well, nothing serious for the moment, but I wanted to point it out.

sebalis commented on 2023-08-27 13:07 (UTC) (edited on 2023-08-27 13:09 (UTC) by sebalis)

I think it is getting old in a sense, because it seems that the driver doesn’t fully support what a modern OpenGL is expected to provide ... If I understand correctly.

I encountered something similar with baobab, the GNOME „disk usage analyzer“. Starting it from the command line, I get:

No provider of glGenSamplers found. Requires one of: Desktop OpenGL 3.3 GL_ARB_sampler_objects OpenGL ES 3.0

Research led me to https://gitlab.gnome.org/GNOME/gtk/-/issues/5858 and I ended up prefixing the command line with “usr/bin/env GDK_DEBUG=gl-glx” in my baobab starter. Now baobab is working again but I fear that this problem might spread.

auriculaire commented on 2023-08-26 14:47 (UTC)

Hello. I've been having some problems for a while with applications using OpenGL: 1- playing a video on Gnome's "totem" is no longer possible: "OpenGL support initialization failed"... 2- "gnome-calculator" no longer launches... 3- Qemu with "virtio-vga-gl" parameter is no longer possible (error messages). Is nvidia-340 getting old? or is it something else?

bigjuck commented on 2023-08-03 19:45 (UTC)

The very simple solution for me, is updating first gcc and so on, after that restart, and then updating linux and rebuilding nvidia dkms

sebalis commented on 2023-08-02 21:22 (UTC)

I tried it without rebooting after the upgrade, but then my X session would not start on the next reboot. I did not need to disable the login manager precisely for that reason :-) Just did the install again from the terminal and rebooted once again, and I’m back.

Regarding IGNORE_CC_MISMATCH=1, I still believe that prepending “env CC=gcc” to the two calls to “make” is the best recipe (although the maintainer disagreed previously). Normally I don’t get any messages about a mismatch, but I did get the error this time when dkms tried to install the old nvidia-340xx-dkms on the new kernel. That is of course correct and helpful as an alert that recompiling is needed.

Anakievs commented on 2023-08-02 19:42 (UTC) (edited on 2023-08-02 19:54 (UTC) by Anakievs)

It's just stupid every time gcc updates to ask for it. The kernel is build with the new gcc and your driver with the old one. You have to recompile the driver. And don't use IGNORE_CC_MISMATCH=1. This is how I do it (it also might be easier to build it in clean chroot https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot#Building_in_the_chroot):

Upgrade your system. Uninstall "nvidia-340xx-dkms" and "nvidia-340xx-utils". Reboot in tty (in grub add "3" to the kernel parameters) or disable the login manager. Clone and build both "https://aur.archlinux.org/nvidia-340xx-utils.git" and "https://aur.archlinux.org/nvidia-340xx.git". Install the new driver and reboot.

You may be able to rebuild it without reboot (after the system upgrade) but cannot confirm it because I haven't tried.

holyArch commented on 2023-08-02 02:37 (UTC)

dkms install --no-depmod nvidia/340.108 -k 6.4.7-arch1-2 Error! Bad return status for module build on kernel: 6.4.7-arch1-2 (x86_64) Consult /var/lib/dkms/nvidia/340.108/build/make.log for more information. `dkms install --no-depmod nvidia/340.108 -k 6.4.7-arch1-2' exited 10

Workaround: sudo env IGNORE_CC_MISMATCH=1 dkms install -m nvidia -v 340.108 -k 6.4.7-arch1-2