x11/nvidia-driver-340 issue

hi.
i am good used nvidia-driver-340,
but after wine problems i try to install x11/nvidia-driver-340,
and now xfce booted to desktop but mouse and keyboard not working,
am try install previous nvidia-driver-340 but its not help, desktop booted but mouse and keyboard not working,
also i am recreate xorg.cfg, all same
where's issue here?
xorg server broken? or x11/nvidia-driver-340 heve uncommon xorg.cfg location?
 
On what version of FreeBSD? The Nvidia driver has nothing to do with it in any case (I have the 340 version working just fine on 15.0-RELEASE). And you shouldn't need an xorg.conf, only a small Device section is needed to actually enable the NVidia driver (it's not auto-detected).
 
thanks for reply,
15.2(latest repos),
nvidia-driver-340 worked good,
but x11/nvidia-driver-340 give me issues with mouse and keyboard,
with both driver os booted good to xfce desktop but afrer x11/nvidia-driver-340 mouse&keyboard not work even when i switch back to nvidia-driver-340.
may be somthing with xorg? and i need reinstall it?
 
15.2(latest repos),
Yeah, that's unlikely as 15.0 has recently been released. I expect 15.2 some time in 2027.
nvidia-driver-340 worked good,
but x11/nvidia-driver-340 give me issues with mouse and keyboard,
No idea what you're talking about here. The port x11/nvidia-driver-340 and the package named nvidia-driver-340 are the same thing.
may be somthing with xorg?
Possible, but I would have expected a lot more support questions if that were the case. I'm more leaning towards a configuration issue. Post your Xorg.0.log; cat /var/log/Xorg.0.log | nc termbin.com 9999.
 

Attachments

  • IMG_20260106_014036.jpg
    IMG_20260106_014036.jpg
    118.2 KB · Views: 49
No idea what you're talking about here. The port x11/nvidia-driver-340 and the package named nvidia-driver-340 are the same thing.
If the previous installation is 2025Q3 (assuming quarterly) or older and you didn't properly followed UPDATING entry dated 20250930 on upgrading, you could be missed x11/nvidia-kmod-340 installed.
But I don't think it related with your keyboard and mouse. (Mouse alone could be fallen back to default software mouse pointer instead of hardware mouse pointer [silken mouse functionality], though.) I suspect mis-configuration of evdev on base?

And as upstream already EoL'ed 3xx series at the end of 2022, next update (not upgrade!) to x11/{linux-}nvidia-{kmod|driver|libs}-340 would be any of:
  • deletion as of unavailability of upstream tarballs or reports of unfixed CVEs
  • infrastructual changes due to ports framework or builders
  • build fixes possible using source codes bundled (basically for base main branch).
Anything others would be impossible on ports side we can manage.
 
Is the computer connected to Internet? Or is the network configuration including DNS setups sane? Or output to port 9999 is somehow blocked?
 
T-Aoki
its something mess for me with x11/nvidia-driver-340 and nvidia-driver-340
if i do install x11/nvidia-driver-340, so xorg is removed?!
that why mouse and keyboard was not worked

so x11/nvidia-driver-340 and nvidia-driver-340 its 2 different things?
what x11/nvidia-driver-340 or nvidia-driver-340 have support of x32 libs?

Code:
freeartist-bsd@home:~/Downloads/Evil Twin $ sudo pkg install x11/nvidia-driver-340
Updating FreeBSD-ports repository catalogue...
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
FreeBSD-ports-kmods repository is up to date.
All repositories are up to date.
Checking integrity... done (3 conflicting)
  - xlibre-server-25.1.0 [FreeBSD-ports] conflicts with xorg-server-21.1.20,1 [installed] on /usr/local/bin/X
  - xlibre-nvidia-driver-340-340.108_5 [FreeBSD-ports] conflicts with nvidia-driver-340-340.108_5 [installed] on /usr/local/bin/nvidia-bug-report.sh
  - xlibre-nvidia-driver-340-340.108_5 [FreeBSD-ports] conflicts with nvidia-driver-340-340.108_5 [FreeBSD-ports] on /usr/local/bin/nvidia-bug-report.sh
Checking integrity... done (0 conflicting)
The following 13 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
    basu: 0.2.1 [FreeBSD-ports]
    seatd: 0.9.1_1 [FreeBSD-ports]
    xlibre-nvidia-driver-340: 340.108_5 [FreeBSD-ports]
    xlibre-server: 25.1.0 [FreeBSD-ports]

Installed packages to be REMOVED:
    nvidia-driver-340: 340.108_5
    xf86-input-keyboard: 1.9.0_6
    xf86-input-libinput: 1.3.0_1
    xf86-input-mouse: 1.9.3_5
    xf86-video-scfb: 0.0.7_2
    xf86-video-vesa: 2.5.0_3
    xorg: 7.7_3
    xorg-drivers: 7.7_7
    xorg-server: 21.1.20,1

Number of packages to be removed: 9
Number of packages to be installed: 4

Proceed with this action? [y/N]:
freeartist-bsd@home:~/Downloads/Evil Twin $ sudo pkg install x11/nvidia-driver-340
 
T-Aoki
its something mess for me with x11/nvidia-driver-340 and nvidia-driver-340
if i do install x11/nvidia-driver-340, so xorg is removed?!
that why mouse and keyboard was not worked

so x11/nvidia-driver-340 and nvidia-driver-340 its 2 different things?
what x11/nvidia-driver-340 or nvidia-driver-340 have support of x32 libs?

Code:
freeartist-bsd@home:~/Downloads/Evil Twin $ sudo pkg install x11/nvidia-driver-340
Updating FreeBSD-ports repository catalogue...
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
FreeBSD-ports-kmods repository is up to date.
All repositories are up to date.
Checking integrity... done (3 conflicting)
  - xlibre-server-25.1.0 [FreeBSD-ports] conflicts with xorg-server-21.1.20,1 [installed] on /usr/local/bin/X
  - xlibre-nvidia-driver-340-340.108_5 [FreeBSD-ports] conflicts with nvidia-driver-340-340.108_5 [installed] on /usr/local/bin/nvidia-bug-report.sh
  - xlibre-nvidia-driver-340-340.108_5 [FreeBSD-ports] conflicts with nvidia-driver-340-340.108_5 [FreeBSD-ports] on /usr/local/bin/nvidia-bug-report.sh
Checking integrity... done (0 conflicting)
The following 13 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
    basu: 0.2.1 [FreeBSD-ports]
    seatd: 0.9.1_1 [FreeBSD-ports]
    xlibre-nvidia-driver-340: 340.108_5 [FreeBSD-ports]
    xlibre-server: 25.1.0 [FreeBSD-ports]

Installed packages to be REMOVED:
    nvidia-driver-340: 340.108_5
    xf86-input-keyboard: 1.9.0_6
    xf86-input-libinput: 1.3.0_1
    xf86-input-mouse: 1.9.3_5
    xf86-video-scfb: 0.0.7_2
    xf86-video-vesa: 2.5.0_3
    xorg: 7.7_3
    xorg-drivers: 7.7_7
    xorg-server: 21.1.20,1

Number of packages to be removed: 9
Number of packages to be installed: 4

Proceed with this action? [y/N]:
freeartist-bsd@home:~/Downloads/Evil Twin $ sudo pkg install x11/nvidia-driver-340
Wait, xlibre?! Are you using XLibre instead of Xorg?
Yes, these mutually conflicts. And this is why I strongly dislike current FLAVOR approach on porting XLibre.
It should have been DEFAULT_VERSIONS way that require anyone to try XLibre before it becomes default to build by themselves locally. No pre-built versions should be provided to avoid this kind of confusions.
Or make XLibre possible to coexist with existing Xorg implementations and make configurable which implementations should be used on the same computer if FLAVOR way is preferred.

Note that x11/nvidia-kmod-340 should not affected.
Limiting with nvidia things only, x11/nvidia-driver@default (nvidia-driver-340* pkg) is needed to be deinstalled and x11/nvidia-driver@xlibre (xlibre-nvidia-driver-340* pkg) is needed to be installed for XLibre.
 
Wait, xlibre?! Are you using XLibre instead of Xorg?
i am figured out that

there is

1. nvidia-driver-340
2. xorg-server

and

1. x11/nvidia-driver-340
2. xlibere-server

i am tried both
xlibre worked very weird - xfce desktop loaded "one half" no panels and mouse pointer
now i am at Xorg(old) + nvidia-driver-340 and i have a question
is there x32 libs at nvidia-driver-340 FreeBSD driver?
 
Code:
sh: /usr/local/share/wine/patch-nvidia.sh: not found
how i can do this at FreeBSD 15.0?
 
now i am at Xorg(old) + nvidia-driver-340 and i have a question
is there x32 libs at nvidia-driver-340 FreeBSD driver?
No for amd64.

32bit compat libraries in 64bit version were provided for versions dropped i386 version of drivers to run 32bit softwares with compat32 option of kernel (with /usr/lib32 and /usr/local/lib32).

340 series (precisely, all 3xx series) has native i386 (aka x86) version of driver package, thus, no compat libraries are provided.

And adding support to install i386 version as compat libraries is just a mess in maintainance burden. All versions supporting i386 natively are EoL'ed upstream at the end of 2022.

On the other hand, as we haven't removed x11/{linux-}nvidia-{driver|kmod|libs}-3{04|40|90} even though EoL'ed upstream, if you're running on i386 "natively", you can still use them for now.
 
Code:
sh: /usr/local/share/wine/patch-nvidia.sh: not found
how i can do this at FreeBSD 15.0?
I cannot confirm as I'm not using emulators/wine*.
But the directory name strongly suggests that it should have been installed by some version of wine. If it's dropped at some point, no way to do, unless you can somehow "salvage" it. But there would be no assurances.
 
340 series (precisely, all 3xx series) has native i386 (aka x86) version of driver package, thus, no compat libraries are provided.
freebsd 340 driver also have x32 bit nvidia libs?
But the directory name strongly suggests that it should have been installed by some version of wine.
i cant find this script at 15.0 realese

here my topic about not working wine at gf9800(340 driver)
 
linux 340 driver have x32 compat nvidia libs why bsd not?
It's 100% on nvidia, not on us. And it's already "happened at past", as 3xx series are all EoL'ed on nvidia side. Just they haven't deleted old driver tarballs from their site yet. I don't surprise if they remove the tarballs just after I post this. I'm not an nvidia insider and not at the position that can know when it happenes.

They provide 340 series of drivers for amd64 and i386 as "different tarball" that need to be built (partially extract only, though) "natively for each architecture" for FreeBSD.

Considering all the above and my previous posts, I have no plan to try making "merged" 3xx series.
 
Note that, I'm working as 100% volunteer basis within my limited spare time.
Have no time to work on for clearly "just a mess" things.
 
1. so i do not cleary understood, freebsd 340 driver has x32 nvidia libs or not?
1. so i do not cleary understood, freebsd 340 driver has x32 nvidia libs or not?
I've never heared x32. So don't know.
If you mean x86 or IA32, and if you're running i386 version of FreeBSD, you'll have i386 version of driver / library.
If you're running amd64, you have 64bit version only.

On FreeBSD version of 3xx drivers, it's exclusive.
And re-read comment #17.
More, even if a brave new volunteer pops in to implement "merged" driver ports, there's still possibilities that upstream tarballs of 3xx are no longer available when the brave work is completed. So, not at all worth trying.
I strongly recommend to switch to newer GPU supported by any non-EoL'ed drivers (not limited with nvidia ones).

2. so no chances launch old x32 bit game via wine at freebsd 15.0?
I "can't" know. I have nothing to test even if I install wine.
Need wine experts from now on.

And again, as I've commented on comment #6, 3xx series of drivers are already EoL'ed upstream (link the info again here). Even critical fixes wouldn't be provided anymore for 3xx series. Only 470 (and additionally 580 once 590 or later become Production Branch) series is the supported legacy version.
 
1. so i do not cleary understood, freebsd 340 driver has x32 nvidia libs or not?
I've never heared x32. So don't know.
thanks for anwers,
i mean 32bit nvidia compat libs at 340 bsd driver,
i think that my problem with wine due lack of 32bit nvidia compat libs at 340 bsd driver,
how i can be sure that 32bit nvidia compat libs at 340 bsd driver is present and its working with wine?
 
how i can be sure that 32bit nvidia compat libs at 340 bsd driver is present and its working with wine?
I cannot understand why you cannot understand the simple fact I've repeatedly explained in multiple forms, including reasons.

YOU CANNOT WITH 304, 340 AND 390 DRIVERS FOR FreeBSD.
 
YOU CANNOT WITH 304, 340 AND 390 DRIVERS FOR FreeBSD.
i want proofs;)
how i can see detailed file view of nvidia-driver-340 pkg in freebsd for compare with same 340 linux driver?
because propietary 340 linux driver provide 32bit nvidia libs, but proprietary bsd driver not provide it?
i cant believe.
thx:)
 
i want proofs;)
how i can see detailed file view of nvidia-driver-340 pkg in freebsd for compare with same 340 linux driver?
because propietary 340 linux driver provide 32bit nvidia libs, but proprietary bsd driver not provide it?
i cant believe.
thx:)
THIS IS MY LAST REPLY TO THIS THREAD.

WE ARE VOLUNTEERS.

NOT PAID WORKERS FOR MAINTAINING NVIDIA DRIVER PORTS!


NO TIME FOR NON-CONSTRUCTIVE WORKS LIKE RECONSTRUCTING UNSUPPORTED, END OF LIFE OLD VERSIONS.

YOU SHALL CLEARLY UNDERSTAND LINUX VERSION IS NOT FREEBSD VERSION. FOR EXAMPLE, CUDA SUPPORT IS NOT CONTAINED IN FREEBSD VERSION, EVEN THOUGH LINUX VERSION HAS!!!

I have no duty to provide proofs for whom not understanding these simple facts like you, but here we go, as this is the very last for me here.

If you have recent enough ports tree at default place, you can confirm as below on amd64. You need to re-read work-xorg to work-xlibre if you're using XLibre instead of Xorg.

Code:
# cd /usr/ports/x11/nvidia-driver-340
# make extract
===>  License NVIDIA accepted by the user
===>   nvidia-driver-340-340.108_5 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by nvidia-driver-340-340.108_5 for building
===>  Extracting for nvidia-driver-340-340.108_5
=> SHA256 Checksum OK for NVIDIA-FreeBSD-x86_64-340.108.tar.gz.
# ls -l work-xorg/NVIDIA-FreeBSD-x86_64-340.108/
total 117
-rw-r--r--   1 root wheel    505 Dec 12  2019 Makefile
-rw-r--r--   1 root wheel 184967 Dec 12  2019 NVIDIA_Changelog
drwxr-xr-x   3 root wheel      8 Dec 12  2019 doc
drwxr-xr-x  15 root wheel     16 Dec 12  2019 lib
drwxr-xr-x   2 root wheel      3 Dec 12  2019 mk
drwxr-xr-x   3 root wheel     21 Dec 12  2019 obj
drwxr-xr-x   2 root wheel      4 Dec 12  2019 scripts
drwxr-xr-x   2 root wheel     24 Dec 12  2019 src
drwxr-xr-x   6 root wheel      7 Dec 12  2019 x11
# ls -l work-xorg/NVIDIA-FreeBSD-x86_64-340.108/obj/
total 30438
-rwxr-xr-x  1 root wheel   959336 Dec 12  2019 libEGL.so.1
-rwxr-xr-x  1 root wheel  1217952 Dec 12  2019 libGL.so.1
-rwxr-xr-x  1 root wheel    47896 Dec 12  2019 libGLESv1_CM.so.1
-rwxr-xr-x  1 root wheel    60184 Dec 12  2019 libGLESv2.so.2
-rwxr-xr-x  1 root wheel 16598432 Dec 12  2019 libglx.so.1
-rwxr-xr-x  1 root wheel   154856 Dec 12  2019 libnvidia-cfg.so.1
-rwxr-xr-x  1 root wheel 42099400 Dec 12  2019 libnvidia-eglcore.so.1
-rwxr-xr-x  1 root wheel 42272512 Dec 12  2019 libnvidia-glcore.so.1
-rwxr-xr-x  1 root wheel   470096 Dec 12  2019 libnvidia-glsi.so.1
-rwxr-xr-x  1 root wheel     4872 Dec 12  2019 libnvidia-tls.so.1
-rwxr-xr-x  1 root wheel     6112 Dec 12  2019 libvdpau.so.1
-rw-r--r--  1 root wheel  1918496 Dec 12  2019 libvdpau_nvidia.so.1
-rwxr-xr-x  1 root wheel    46856 Dec 12  2019 libvdpau_trace.so.1
drwxr-xr-x  3 root wheel       16 Dec 12  2019 linux
-rw-r--r--  1 root wheel     3530 Dec 12  2019 nvidia-application-profiles-rc
-rwxr-xr-x  1 root wheel    14753 Dec 12  2019 nvidia-bug-report.sh
-rwxr-xr-x  1 root wheel  1950872 Dec 12  2019 nvidia-settings
-rwxr-xr-x  1 root wheel   184520 Dec 12  2019 nvidia-xconfig
-rwxr-xr-x  1 root wheel  9606672 Dec 12  2019 nvidia_drv.so

Here, /usr/ports/x11/nvidia-driver-340/work-xorg/NVIDIA-FreeBSD-x86_64-340.108/obj is the directory that contains libraries provided by nvidia.
/usr/ports/x11/nvidia-driver-340/work-xorg/NVIDIA-FreeBSD-x86_64-340.108/src is the directory that contains needed source codes to build KERNEL MODULES. No source codes for libraries at all.

Makefiles for libraries exists just for installing them into proper directory nvidia thinks. Not for builds.

Doing the same (except directory names) for x11/nvidia-driver-470, oldest supported version in-tree having 32bit compat libraries.

Code:
# cd /usr/ports/x11/nvidia-driver-470
# make extract
===>  License NVIDIA accepted by the user
===>   nvidia-driver-470-470.256.02_2 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by nvidia-driver-470-470.256.02_2 for building
===>  Extracting for nvidia-driver-470-470.256.02_2
=> SHA256 Checksum OK for NVIDIA-FreeBSD-x86_64-470.256.02.tar.xz.
# ls -l work-xorg/NVIDIA-FreeBSD-x86_64-470.256.02/
total 154
-rw-r--r--   1 root wheel    562 May  2  2024 Makefile
-rw-r--r--   1 root wheel 273723 May  2  2024 NVIDIA_Changelog
drwxr-xr-x   4 root wheel      9 May  3  2024 doc
drwxr-xr-x  20 root wheel     21 May  3  2024 lib
drwxr-xr-x   2 root wheel      3 May  3  2024 mk
-rw-r--r--   1 root wheel    140 May  2  2024 nvidia_icd.json
-rw-r--r--   1 root wheel    643 May  2  2024 nvidia_layers.json
drwxr-xr-x   4 root wheel      5 May  3  2024 nvml
drwxr-xr-x   5 root wheel     31 May  3  2024 obj
drwxr-xr-x   2 root wheel      4 May  3  2024 scripts
drwxr-xr-x   5 root wheel      6 May  3  2024 src
drwxr-xr-x   6 root wheel      7 May  3  2024 x11
# ls -l work-xorg/NVIDIA-FreeBSD-x86_64-470.256.02/obj/
total 36191
-rw-r--r--  1 root wheel      107 May  2  2024 10_nvidia.json
-rw-r--r--  1 root wheel      115 May  2  2024 10_nvidia_wayland.json
drwxr-xr-x  2 root wheel       13 May  3  2024 32
-rwxr-xr-x  1 root wheel  1301360 May  2  2024 libEGL_nvidia.so.0
-rwxr-xr-x  1 root wheel    63440 May  2  2024 libGLESv1_CM_nvidia.so.1
-rwxr-xr-x  1 root wheel   114344 May  2  2024 libGLESv2_nvidia.so.2
-rwxr-xr-x  1 root wheel  1284000 May  2  2024 libGLX_nvidia.so.0
drwxr-xr-x  3 root wheel       10 May  3  2024 libglvnd
-rwxr-xr-x  1 root wheel 12683168 May  2  2024 libglxserver_nvidia.so.1
-rwxr-xr-x  1 root wheel   204240 May  2  2024 libnvidia-cfg.so.1
-rwxr-xr-x  1 root wheel    41824 May  2  2024 libnvidia-egl-wayland.so.1
-rwxr-xr-x  1 root wheel 27629584 May  2  2024 libnvidia-eglcore.so.1
-rwxr-xr-x  1 root wheel 28022688 May  2  2024 libnvidia-glcore.so.1
-rwxr-xr-x  1 root wheel   588984 May  2  2024 libnvidia-glsi.so.1
-rwxr-xr-x  1 root wheel 12989568 May  2  2024 libnvidia-glvkspirv.so.1
-rwxr-xr-x  1 root wheel  1365832 May  2  2024 libnvidia-gtk2.so.470.256.02
-rwxr-xr-x  1 root wheel  1374312 May  2  2024 libnvidia-gtk3.so.470.256.02
-rwxr-xr-x  1 root wheel  1549528 May  2  2024 libnvidia-ml.so.1
-rwxr-xr-x  1 root wheel     7000 May  2  2024 libnvidia-tls.so.1
-rwxr-xr-x  1 root wheel    17512 May  2  2024 libnvidia-vulkan-producer.so.1
-rwxr-xr-x  1 root wheel   692072 May  2  2024 libvdpau_nvidia.so.1
drwxr-xr-x  3 root wheel       23 May  3  2024 linux
-rw-r--r--  1 root wheel     9147 May  2  2024 nvidia-application-profiles-rc
-rwxr-xr-x  1 root wheel    14943 May  2  2024 nvidia-bug-report.sh
-rwxr-xr-x  1 root wheel   250464 May  2  2024 nvidia-debugdump
-rwxr-xr-x  1 root wheel   291376 May  2  2024 nvidia-settings
-rwxr-xr-x  1 root wheel   685816 May  2  2024 nvidia-smi
-rwxr-xr-x  1 root wheel   188472 May  2  2024 nvidia-xconfig
-rwxr-xr-x  1 root wheel  6301376 May  2  2024 nvidia_drv.so

You can find a directory /usr/ports/x11/nvidia-driver-470/work-xorg/NVIDIA-FreeBSD-x86_64-470.256.02/obj/32/ which does NOT existed for 340.

This is the directory that compat libraries for i386 exists.

Code:
# ls -l work-xorg/NVIDIA-FreeBSD-x86_64-470.256.02/obj/32/
total 30238
-rwxr-xr-x  1 root wheel  1451532 May  2  2024 libEGL_nvidia.so.0
-rwxr-xr-x  1 root wheel    81800 May  2  2024 libGLESv1_CM_nvidia.so.1
-rwxr-xr-x  1 root wheel   147260 May  2  2024 libGLESv2_nvidia.so.2
-rwxr-xr-x  1 root wheel  1225904 May  2  2024 libGLX_nvidia.so.0
-rwxr-xr-x  1 root wheel   221460 May  2  2024 libnvidia-cfg.so.1
-rwxr-xr-x  1 root wheel 32065332 May  2  2024 libnvidia-eglcore.so.1
-rwxr-xr-x  1 root wheel 32457904 May  2  2024 libnvidia-glcore.so.1
-rwxr-xr-x  1 root wheel   694824 May  2  2024 libnvidia-glsi.so.1
-rwxr-xr-x  1 root wheel 17395284 May  2  2024 libnvidia-glvkspirv.so.1
-rwxr-xr-x  1 root wheel     5076 May  2  2024 libnvidia-tls.so.1
-rwxr-xr-x  1 root wheel   737248 May  2  2024 libvdpau_nvidia.so.1

Huh... Too tired to continue this non-constructive things.
Over and out. Bye.
 
You can find a directory /usr/ports/x11/nvidia-driver-470/work-xorg/NVIDIA-FreeBSD-x86_64-470.256.02/obj/32/ which does NOT existed for 340.

This is the directory that compat libraries for i386 exists.

# ls -l work-xorg/NVIDIA-FreeBSD-x86_64-470.256.02/obj/32/
huh... i too tired fighting with bsd...
i am again disappointed in bsd...
i am take timeout with bsd for a indefinite time...

ps IMHO, *bsd still so unpolished and have many issues so i cant recomended this os for daily desktop uage, sad.
 
Back
Top