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 .. 10 11 12 13 14 15 16 17 18 19 20 .. 58 Next › Last »

sebalis commented on 2022-06-03 11:01 (UTC)

Works like a charm, yes! Including suspend and hibernate (when @Imh69 gave us the first report about a working solution I had this slight worry that ACPI would not be working but that was only the first approach I guess). Many thanks indeed from me too.

I did think that @JerryXiao or @taz-007 might want to use the change I suggested on 2022-05-20 to the two “make” lines in PKGBUILD. As this hasn’t happened I made these changes manually during my update. Therefore I can’t say if the unaltered version would still have warned about a compiler mismatch on my system.

auriculaire commented on 2022-05-29 16:51 (UTC)

nvidia-340xx-dkms 340.108-30 on 5.18.0-arch1-1 works fine. Thank you very much.

lmh69 commented on 2022-05-29 12:52 (UTC) (edited on 2022-05-29 13:09 (UTC) by lmh69)

@poluyan I was able to get a clean compilation using the @Viterzgir patch for 5.18 kernel, with 2 modifications. First one to "fix" the error in nv-vm.c


-    return pci_map_sg(dev, sg, 1, PCI_DMA_BIDIRECTIONAL);
+    return dma_map_sg(&dev->dev, sg, 1, DMA_BIDIRECTIONAL);
-    pci_unmap_sg(dev, sg, 1, PCI_DMA_BIDIRECTIONAL);
+    dma_unmap_sg(&dev->dev, sg, 1, DMA_BIDIRECTIONAL);
And the 2nd to ""solve"" the following error:
ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol 'acpi_fetch_acpi_dev'

that was replacing the @Viterzgir patch for nv-acpi.c, using this one that disable the acpi for the nvidia module: https://gist.github.com/joanbm/c00f9e19731d80269a4badc595f63b68

Subject: [PATCH] Buildfix NVIDIA 470.103.01 for Linux 5.18-rc2

acpi_bus_get_device was removed and its trivial replacement acpi_fetch_acpi_dev
is GPL-exported, so just disable ACPI support as I don't want to deal with it.

-#if defined(NV_LINUX_ACPI_EVENTS_SUPPORTED)
+#include <linux/version.h>
+#if defined(NV_LINUX_ACPI_EVENTS_SUPPORTED) && (LINUX_VERSION_CODE < KERNEL_VERSION(5, 18, 0))


I havent check if the module is properly working using this, yet.

poluyan commented on 2022-05-28 20:36 (UTC)

@calvinh, no. I have an error using this patch. Something is wrong with pci_map_sg, pci_unmap_sg and PCI_DMA_BIDIRECTIONAL. I can't find extra patch for this error fix. Please share if you find it.

calvinh commented on 2022-05-28 19:55 (UTC)

Anybody has success using Viterzgir's patch?

Zodigram commented on 2022-05-20 05:43 (UTC)

Thanks so much for maintaining this!

sebalis commented on 2022-05-20 03:13 (UTC)

I was able to avoid the message about a compiler mismatch and the subsequent non-zero exit status of the dkms install by changing PKGBUILD. I added a setting to the environment variable CC to the calls to make, turning

make ...

to

env CC=gcc make ...

for both lines. Maybe the maintainers would like to incorporate that change?

Viterzgir commented on 2022-05-14 17:39 (UTC)

Patch for 5.18 https://pastebin.com/WLLYJ6WR

bigjuck commented on 2022-05-13 06:53 (UTC)

@holyArch thanks a lto, works for me witk 5.15.38-1-lts

holyArch commented on 2022-05-11 12:18 (UTC) (edited on 2022-05-11 12:46 (UTC) by holyArch)

Build fails when upgrading to 5.17.5-arch1-2.

sudo env IGNORE_CC_MISMATCH=1 dkms install -m nvidia -v 340.108 -k 5.17.5-arch1-2 did the trick.