-
-
Save joanbm/d0cb8790ca610fbd2c2e43f30707ce18 to your computer and use it in GitHub Desktop.
| From bee3ff1153f7b42491d2a0552d6f9a66a307ec1a Mon Sep 17 00:00:00 2001 | |
| From: =?UTF-8?q?Joan=20Bruguera=20Mic=C3=B3?= <joanbrugueram@gmail.com> | |
| Date: Sun, 15 Dec 2024 17:56:03 +0000 | |
| Subject: [PATCH] Tentative fix for NVIDIA 470.256.02 driver for Linux 6.14-rc1 | |
| --- | |
| nvidia-drm/nvidia-drm-drv.c | 3 +++ | |
| 1 file changed, 3 insertions(+) | |
| diff --git a/nvidia-drm/nvidia-drm-drv.c b/nvidia-drm/nvidia-drm-drv.c | |
| index 0b1181d..b50b17a 100644 | |
| --- a/nvidia-drm/nvidia-drm-drv.c | |
| +++ b/nvidia-drm/nvidia-drm-drv.c | |
| @@ -882,7 +882,10 @@ static struct drm_driver nv_drm_driver = { | |
| .name = "nvidia-drm", | |
| .desc = "NVIDIA DRM driver", | |
| +#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 14, 0) | |
| + // Rel. commit. "drm: remove driver date from struct drm_driver and all drivers" (Jani Nikula, 4 Dec 2024) | |
| .date = "20160202", | |
| +#endif | |
| #if defined(NV_DRM_DRIVER_HAS_DEVICE_LIST) | |
| .device_list = LIST_HEAD_INIT(nv_drm_driver.device_list), | |
| -- | |
| 2.48.1 | |
@lchandelier Yes, try to clone/download https://github.com/joanbm/nvidia-470xx-linux-mainline and run ./install and it should work.
@mrBugmaker Regarding the liblgvnd warning, I never ran into it myself, but I believe it may be solved by installing libglvnd-dev (sudo apt install libglvnd-dev) and re-installing the NVIDIA driver.
However, I don't think that it's likely related to the problem that you're running into with Proton. Wine/Proton implement D3D11 by translating it to other APIs, like OpenGL or Vulkan. So even if your card supports D3D11 and the game runs over Windows 10, it doesn't mean it will immediately work on Linux.
I believe Proton uses DXVK to translate D3D11 to Vulkan 1.3, and this version likely supported by your graphics card (at least my GTX 660 caps out at Vulkan 1.2).
You may need to figure out how to get Proton to launch it using WineD3D to translate D3D11 to OpenGL instead, at least some sources claim this can be done by setting the environment variable PROTON_USE_WINED3D=1 <your_steam_or_proton_command> - unfortunately, I haven't tried this myself though.
@joanbm Thank you much for your reply! Sorry for late response on my side.
I've tried installing libglvnd-dev and re-running the installer, and this time it worked without producing any warnings at all, thanks!
But you are probably right that this has nothing to do with my problem, nothing changed in that regard.
I guess the reason is that Kepler GPUs are no longer supported by modern releases of DXVK, which is shipped with Proton https://github.com/doitsujin/dxvk/wiki/Driver-support
I've tried running the game with Proton Experimental and PROTON_USE_WINED3D=1. It did launch, but crashed silently on it's way to main menu.
I've also tried running it with Proton 7.0-6 and it works, but FPS is about 1/3 of what I had on Windows...
GPU load in performance monitor also still doesn't work, although I can track it in "Nvidia X Server Settings" app...
My guess is that Xwayland is not fully supported by Nvidia drivers, according to NVIDIA Accelerated Linux Graphics Driver README and Installation Guide. Maybe I should try and ditch Xwayland entirely, replacing it with plain X11.
Anyways, I feel like none of that should be of your concern as a creator of the patch for driver installer, so thanks a lot. Although any help will be appreciated.
Yeah, this was my experience with Wine + NVIDIA + WineD3D, games tend to have noticeably less FPS than on Windows. Sometimes there are tweaks to get more out of it, but unfortunately, in many cases the only realistic solution is dual booting Windows or getting newer hardware.
fedora 43 + GP106-90 card
executing: '/usr/sbin/ldconfig'...
executing: '/usr/sbin/systemctl daemon-reload'...
-> done.
-> Driver file installation is complete.
-> Installing DKMS kernel module:
-> done.
ERROR: Unable to load the 'nvidia-drm' kernel module.
ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.
dmesg output
[ 5.086256] nvidia: module license 'NVIDIA' taints kernel.
[ 5.086577] Disabling lock debugging due to kernel taint
[ 5.086981] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[ 5.087512] nvidia: module license taints kernel.
[ 5.367824] nvidia-nvlink: Nvlink Core is being initialized, major device number 237
[ 5.368269] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 470.256.02 Thu May 2 14:37:44 UTC 2024
[ 5.648982] nvidia_modeset: Unknown symbol __acpi_video_get_backlight_type (err -2)
[ 25.830569] NVRM: GPU 0000:00:10.0: RmInitAdapter failed! (0x22:0x56:667)
[ 25.831979] NVRM: GPU 0000:00:10.0: rm_init_adapter failed, device minor number 0
lspci output
00:10.0 3D controller: NVIDIA Corporation GP106 [P106-100] (rev a1)
@naughtyGitCat Are you possibly passing the GPU through to a VM? If that's the case you have to hide the hypervisor or the NVIDIA driver will refuse to work. See PCI_passthrough_via_OVMF#Video_card_driver_virtualisation_detection
On the other hand, I am not very familiar with this card but may it work with the newest, officially supported drivers (e.g. 580xx)? The list on the NVIDIA driver README appears to suggest it should. You may have more luck getting it to work with it if that's the case.
yes, card is passing to vm on the pve virt platform, i will try the pci passthrough config, thank u
ps:
gp106-90 is gtx1060-3gb mining version, nvidia linux driver support end to 470 version, 490 and 580xx is not supported
Hello, I'm trying to make it work under Linux Mint 22.2 too (kernel 6.14.0-33-generic).
I've used the
./installscript from https://github.com/joanbm/nvidia-470xx-linux-mainlineLooks like it mostly worked: there are no issues with browsing / video; I can even run some games fine, even ones without native Linux support (via Steam)
Although, there is one (The Entropy Centre) that gives me the following error on startup:
A D3D11-compatible GPU (Feature Level 11.0, Shader Model 5.0) is required to run the engine.I know the game can run on that PC: it did under Win10.
I could have suggested that it's just some Proton issue, but I also had a warning during install and also Steam Overlay performance monitor always displays GPU load as 0%.
I could have gone to Linux Mint forums, Reddit, etc., but with Win 10 EOL just around the corner, I guess many people are going to come across your patches and it would be really nice to find some info on how to solve issues with these patches just here, where the patches themselves are.
The warning during installation was:
Unable to determine the path to install the liblgvnd EGL vendor library config files. Check that you have pkg-config and the libglvnd development libraries installed, or specify a path with --glvnd-egl-config-path.apt list --installed | grep "pkg-config"gives me the following line:pkg-config/noble,now 1.8.1-2build1 amd64 [installed]I have no idea how to check whether I have "
libglvnd development libraries installed"Here is most of
sudo inxi -Fxxxmprzoutput (I don't think the list of active apt repos is of any use here):And here is
nvidia-installer.log:When I just launched the
./installscript, it gave me an error about my XServer session running. I then proceeded with the following:/etc/modprobe.d/disable_nouveau.confwith following contents:and run
sudo update-initramfs -u2. Set non-graphic run level:
sudo systemctl set-default multi-user.target3. Rebooted and run
./installscript from https://github.com/joanbm/nvidia-470xx-linux-mainline again.4. Set graphic level back:
sudo systemctl set-default graphical.target. Rebooted, tried running games, experienced aforementioned issue.5. As suggested in patch's
readme, created a file/etc/modprobe.d/disable_nouveau.confwith following contents:Then run
sudo update-initramfs -uand reboot.So, could i have issues because of that libglvnd warning? If so, how do I fix that?