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: 71
Popularity: 0.25
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 .. 55 Next › Last »

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-08 19:14 (UTC) by Anakievs)

Edit: I've thought about it and lmh69's method is better and produces the same thing.

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)

xbelanch commented on 2024-03-24 15:02 (UTC) (edited on 2024-03-24 15:03 (UTC) by xbelanch)

Although I have installed nvidia-340xx-dkms 340.108-36 under 6.8.1-arch1-1 kernel, every time I'm trying to launch any "opengl" application raises this:

$ kitty
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  155 (NV-GLX)
  Minor opcode of failed request:  4 ()
  Resource id in failed request:  0x1000009
  Serial number of failed request:  241
  Current serial number in output stream:  241

TheExplorer commented on 2024-03-20 12:18 (UTC)

@lmh69 @ JerryXiao Who maintains the patches? I mean who writes them? I guess someone has to help him with 'drm' thing.

lmh69 commented on 2024-03-19 14:34 (UTC) (edited on 2024-03-19 14:35 (UTC) by lmh69)

I just checked the code changes in the kernel code and did a fast test, restoring the removed drm_legacy.h file from the lastest 6.7 kernel (I paste it in a new folder and changed the code to reference to it:

include <path_to_the_file/drm_legacy.h>


Seems to be working ok. I got a little bit worst fps in a first test I'm doing but could be something random... need to check more. Xorg.log, dmesg, nvidia logs seems the same as with 6.7 series and the previous ones.

TheExplorer commented on 2024-03-19 13:46 (UTC)

@lmh69 Thanks. Well, that's sad news. Anyway, I guess I'm not using any h/w acceleration. At least I disable it everywhere like the browser etc.

lmh69 commented on 2024-03-19 12:19 (UTC)

@TheExplorer "What is 'drm functionality' and how does it affect the driver's performance?"
No 3d hardware acceleration here. Vdpau and 2D acceleration seems to be working...

[    72.370] (II) "glx" will be loaded. This was enabled by default and also specifie
d in the config file.
[    72.370] (II) LoadModule: "glx"
[    72.374] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    72.503] (II) Module glx: vendor="X.Org Foundation"
[    72.503]    compiled for 1.21.1.11, module version = 1.0.0
[    72.503]    ABI class: X.Org Server Extension, version 10.0
...
[    72.503] (II) LoadModule: "nvidia"
[    72.506] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[    72.517] (II) Module nvidia: vendor="NVIDIA Corporation"
[    72.517]    compiled for 4.0.2, module version = 1.0.0
[    72.517]    Module class: X.Org Video Driver
...
[    72.527] (**) NVIDIA(0): Enabling 2D acceleration
[    72.527] (**) NVIDIA(0): ConnectedMonitor string: "DFP-1"
[    72.527] (EE) NVIDIA(0): Failed to initialize the GLX module; please check in your X
[    72.527] (EE) NVIDIA(0):     log file that the GLX module has been loaded in your X
[    72.527] (EE) NVIDIA(0):     server, and that the module is the NVIDIA GLX module.  If
[    72.527] (EE) NVIDIA(0):     you continue to encounter problems, Please try
[    72.527] (EE) NVIDIA(0):     reinstalling the NVIDIA driver.
[    73.576] (II) NVIDIA(0): Using ConnectedMonitor string "DFP-1".
...
[    75.119] (II) Loading sub module "dri2"
[    75.119] (II) LoadModule: "dri2"
[    75.119] (II) Module "dri2" already built-in
[    75.119] (II) NVIDIA(0): [DRI2] Setup complete
[    75.119] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
...
[    75.123] (II) AIGLX: Screen 0 is not DRI2 capable
[    75.357] (II) IGLX: Loaded and initialized swrast
[    75.357] (II) GLX: Initialized DRISWRAST GL provider for screen 0
$ glxinfo 
name of display: :0
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  153 (NV-GLX)
  Minor opcode of failed request:  4 ()
  Resource id in failed request:  0x220000a
  Serial number of failed request:  59
  Current serial number in output stream:  59

TheExplorer commented on 2024-03-18 08:10 (UTC)

@JerryXiao Thank you for the info. Cheers!

JerryXiao commented on 2024-03-18 03:41 (UTC) (edited on 2024-03-18 03:42 (UTC) by JerryXiao)

On second thought, spending too much effort maintaining this package is not the best use of time. Go fix nouveau reclocking for NV50 cards if you really had that time. This driver will eventually bit rot into nothing sooner or later.