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.21
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

« First ‹ Previous 1 .. 4 5 6 7 8 9 10 11 12 13 14 .. 55 Next › Last »

visious commented on 2022-12-01 21:26 (UTC) (edited on 2022-12-01 21:30 (UTC) by visious)

@freeartist Yes I have trouble to build dkms manually. The original script is on top right of the page:

Package Actions

View PKGBUILD

I guess report your problem to Devuan Community, maybe there are able to help you.

freeartist commented on 2022-12-01 21:08 (UTC)

@visious5d Hello! I am using inttf-nvidia-patcher.sh on Devuan(Debian fork) This patcher script using patches from here. Usually all works well. But now after kernel updated to 6.0.0.5 i have error at compiling DKMS. Also driver working without dkms. But i whant go deeper:) I whant to know why exactly this error happens? I thout may be here i get answer? I see you have trouble too building dkms manually? Where is you got this script https://pastebin.com/ypZAUE07

visious commented on 2022-12-01 18:39 (UTC) (edited on 2022-12-01 19:36 (UTC) by visious)

@freeartist Hi, let me understand. You are using arch linux patches on fedora system, right?. These patches are already loaded in driver, see the sources above. The only difference is I don't know what is doing the "inttf-nvidia-patcher.sh". I can't answer to you in this question, because I'm not maintainer or contributor. I'm arch linux user.

freeartist commented on 2022-12-01 13:34 (UTC)

Devuan, kernel 6.0.0.5 DKMS compilation error https://imgur.com/a/WFW84UC https://pastebin.com/JqQBYX6V https://pastebin.com/MuzLMj3w

i use this script https://www.if-not-true-then-false.com/2020/inttf-nvidia-patcher/?amp=1 that uses that patch, its patch or script error?

visious commented on 2022-10-30 06:32 (UTC) (edited on 2022-10-30 13:15 (UTC) by visious)

Hi again, I just upgrade my system and the driver from AUR is working well, here is the proof:

$ cpu-x -D

System <<<<<<<<<<

***** Operating System *****
      Kernel: Linux 6.0.5-arch1-1
Distribution: Arch Linux
    Hostname: archlinux
      Uptime: 0 days, 0 hours, 11 minutes, 41 seconds
    Compiler: cc (GCC) 12.2.0

***** Memory *****
        Used: 1.46 GiB / 7.75 GiB
     Buffers: 0.09 GiB / 7.75 GiB
      Cached: 1.06 GiB / 7.75 GiB
        Free: 5.15 GiB / 7.75 GiB
        Swap: 0.00 MiB / 1024.00 MiB

Graphics <<<<<<<<<<

***** Card 0 *****
      Vendor: NVIDIA
      Driver: nvidia
 UMD Version: NVIDIA 340.108
       Model: GT218M [GeForce G 105M]
Compute Unit: 
    DeviceID: 0x0A68:0xA2

VBIOS Version: 70.18.1F.00.2F Interface: Temperature: 59.00°C Usage: [Not Supported]% Core Voltage: Power Avg: GPU clock: Memory clock: Memory Used: 166 MiB / 511 MiB Resizable BAR: Disabled Vulkan RT: Disabled OpenGL Version: 3.30 NVIDIA via Cg compiler Vulkan Version: OpenCL Version:

Now can you please tell me why I can't build the same package from my computer and getting this error:

==> Entering fakeroot environment... chmod: cannot access '/home/visious/Downloads/Nvidia-340.108/Nvidia-340xx-dkms/pkg': No such file or directory /usr/bin/fakeroot: line 178: 65206 User defined signal 1 FAKEROOTKEY=$FAKEROOTKEY LD_LIBRARY_PATH="$PATHS" LD_PRELOAD="$FAKEROOT_LIB" "$@"

What should I do to fix it? Here is the PKGBUILD: https://pastebin.com/ypZAUE07

KrisKorn commented on 2022-10-14 22:03 (UTC)

Hi! I have successful manual installation from https://github.com/archlinux-jerry/nvidia-340xx

but have an error from pacman-manager installer on Manjaro:

 ./scripts/check-local-export /mnt/hd/Comp_Temp/nvidia-340xx/src/NVIDIA-Linux-x86_64-340.108-no-compat32/kernel/nv-chrdev.o
make[2]: *** [scripts/Makefile.build:250: /mnt/hd/Comp_Temp/nvidia-340xx/src/NVIDIA-Linux-x86_64-340.108-no-compat32/kernel/nv-acpi.o] Error 1
make[2]: *** Se espera a que terminen otras tareas....
make[1]: *** [Makefile:1852: /mnt/hd/Comp_Temp/nvidia-340xx/src/NVIDIA-Linux-x86_64-340.108-no-compat32/kernel] Error 2
make[1]: se sale del directorio '/usr/lib/modules/6.0.0-1-MANJARO/build'
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make: *** [Makefile:202: nvidia.ko] Error 1
==> ERROR: Se produjo un fallo en build().
    Cancelando... 

holyArch commented on 2022-10-14 14:56 (UTC) (edited on 2022-10-14 14:57 (UTC) by holyArch)

The new patch is working with kernel 6.0.1.

visious commented on 2022-10-14 11:07 (UTC) (edited on 2022-10-14 14:00 (UTC) by visious)

Hi everyone. Can you please tell me why the driver from AUR is working and from my computer is not working? I have edited the PKGBUILD a little bit. Here it is:

https://paste.rs/x0o.bash

Now I'm getting this error:

==> Entering fakeroot environment... chmod: cannot access '/home/visious/Downloads/Nvidia-340.108/Nvidia-340xx-dkms/pkg': No such file or directory /usr/bin/fakeroot: line 178: 3298711 User defined signal 1 FAKEROOTKEY=$FAKEROOTKEY LD_LIBRARY_PATH="$PATHS" LD_PRELOAD="$FAKEROOT_LIB" "$@"

I don't know what does means this.

sayonalion commented on 2022-10-14 01:52 (UTC)

@JerryXiao The patch for kernel 6.0 works. Thanks.

hceldop commented on 2022-10-14 01:09 (UTC) (edited on 2024-03-12 03:50 (UTC) by hceldop)

It's working! Thanks @JerryXiao!

Here is how I made it work on a fresh Manjaro install:

# install prerequisites
sudo pacman -S yay patch make linux60 linux60-headers

# [optional] clean the aur cache, N, Y, Y
yay -Scc

# install aur prerequisites
yay -S nvidia-340xx-utils lib32-nvidia-340xx-utils

# remove linux61
yay -R linux61

# restart
sudo restart

# link lib modules to /usr/src/linux
cd /lib/modules/$(uname -r)/build/ | echo $(uname -r) \
  | sudo tee /lib/modules/$(uname -r)/build/version > /dev/null \
  | sudo ln -s /lib/modules/$(uname -r)/build /usr/src/linux

# remove conflicting folder before installing the nvidia-340xx package
sudo rm -rf /usr/lib/modules/$(uname -r)/extramodules/

# install the drivers
yay -S nvidia-340xx

# copy nvidia xorg config
sudo cp /etc/X11/xorg.conf.d/20-nvidia.conf /usr/share/nvidia-340xx/20-nvidia.conf

# restart
sudo reboot