LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-07-2024, 09:49 PM   #1
rinza
Member
 
Registered: Feb 2021
Distribution: Slackware64-current / Plasma
Posts: 55

Rep: Reputation: 8
Question NVK being forced on NVIDIA after MESA upgrade on -current


Hi, after upgrading the latest -current my system throws the following error whenever I try to load some video related applications:

Code:
DRM kernel driver 'nvidia-drm' in use. NVK requires nouveau.
Wine games no longer work, terminating after this error. My system has a NVIDIA card with proprietary drivers, I'm not using Optimus (whole system is running on NVIDIA driver). Nouveau is blacklisted in /etc/modprobe.d/blacklist.conf. Glxinfo confirm I'm using NVIDIA:

Code:
name of display: :0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.4
....
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce GTX ....
OpenGL core profile version string: 4.6.0 NVIDIA 555.42.02
OpenGL core profile shading language version string: 4.60 NVIDIA
I'm on X not Wayland. Xorg.conf was this for years:

Code:
Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "screen_nvidia"
    Inactive       "intel"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "AllowNVIDIAGPUScreens"
EndSection

Section "Module"
    Load           "type1"
    Load           "freetype"
    Load           "glx"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "....."
    HorizSync       26.0 - 81.0
    VertRefresh     24.0 - 75.0
    Option         "DPI" "96 x 96"
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Unknown"
    HorizSync       26.0 - 81.0
    VertRefresh     24.0 - 75.0
    Option         "DPI" "96 x 96"
EndSection

Section "Device"
    Identifier     "card_nvidia"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX ....."
    BusID          "PCI:01:00:0"
    Option         "HardDPMS" "false"
EndSection

Section "Device"
    Identifier     "intel"
    Driver         "modesetting"
    Option         "AsyncFlipSecondaries" "on"
    BusID          "PCI:00:02:0"
    Option         "DRI3" "1"
EndSection

Section "Screen"
    Identifier     "screen_nvidia"
    Device         "card_nvidia"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "AllowNVIDIAGPUScreens"
    Option         "PrimaryGPU" "yes"
    Option	   "Coolbits" "13"
    Option         "AllowEmptyInitialConfiguration" "True"
    Option         "NoFlip" "true"
    Option         "metamodes" "1920x1080_60i +0+0 {ForceCompositionPipeline=On, AllowGSYNC=Off}"
EndSection

Section "Screen"
    Identifier     "intel"
    Device         "intel"
    DefaultDepth    24
    Option         "Stereo" "0"
EndSection

Playing video on mpv with hardware acceleration (set with gpu-api=vulkan), even with that error, still shows that it is using NVIDIA hardware acceleration (checked gpu usage and vram with nvidia-smi). VLC, on contrary, does not throw that error and is configured to use hardware acceleration VA-API.

My instinct suggest that this is related to the new Mesa package settings related to Vulkan. What is exactly happening and how to fix that?

Thanks!

Last edited by rinza; 06-07-2024 at 10:03 PM.
 
Old 06-08-2024, 03:04 AM   #2
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 599

Rep: Reputation: Disabled
Probably related to the new "/usr/lib64/libvulkan_nouveau.so" driver which was introduced in the recent mesa update. See also the commit: https://git.slackware.nl/current/dif...0b6538bf685210

I have no idea how to fix it though, sorry.
 
1 members found this post helpful.
Old 06-08-2024, 05:48 AM   #3
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,333

Rep: Reputation: 1120Reputation: 1120Reputation: 1120Reputation: 1120Reputation: 1120Reputation: 1120Reputation: 1120Reputation: 1120Reputation: 1120
xf86-video-nouveau isn't updated in Slackware and is in extra:

The latest verion is here:

https://www.x.org/releases/individua...-1.0.17.tar.gz

and it need this patch:

https://cgit.freedesktop.org/nouveau...37db4ce6c6eb5b

https://cgit.freedesktop.org/nouveau...video-nouveau/
 
Old 06-08-2024, 06:04 AM   #4
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,960

Rep: Reputation: 1572Reputation: 1572Reputation: 1572Reputation: 1572Reputation: 1572Reputation: 1572Reputation: 1572Reputation: 1572Reputation: 1572Reputation: 1572Reputation: 1572
Try to remove file /usr/share/vulkan/icd.d/nouveau_icd.x86_64.json. Or
Code:
export VK_DRIVER_FILES=/usr/share/vulkan/icd.d/nvidia_icd.json

Last edited by Petri Kaukasoina; 06-08-2024 at 06:30 AM.
 
1 members found this post helpful.
Old 06-08-2024, 06:31 AM   #5
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,333

Rep: Reputation: 1120Reputation: 1120Reputation: 1120Reputation: 1120Reputation: 1120Reputation: 1120Reputation: 1120Reputation: 1120Reputation: 1120
Quote:
Originally Posted by gmgf View Post
xf86-video-nouveau isn't updated in Slackware and is in extra:

The latest verion is here:

https://www.x.org/releases/individua...-1.0.17.tar.gz

and it need this patch:

https://cgit.freedesktop.org/nouveau...37db4ce6c6eb5b

https://cgit.freedesktop.org/nouveau...video-nouveau/
oops, the git version is présent in current,

Sorry
 
1 members found this post helpful.
Old 06-08-2024, 12:09 PM   #6
rinza
Member
 
Registered: Feb 2021
Distribution: Slackware64-current / Plasma
Posts: 55

Original Poster
Rep: Reputation: 8
Quote:
Originally Posted by Petri Kaukasoina View Post
Try to remove file /usr/share/vulkan/icd.d/nouveau_icd.x86_64.json. Or
Code:
export VK_DRIVER_FILES=/usr/share/vulkan/icd.d/nvidia_icd.json
Thanks! Both solutions worked (I moved nouveau_icd.x86_64.json to .bak, just in case). I noticed that NVIDIA driver installs nvidia_icd.json not on /usr/share/vulkan/icd.d but on /etc/vulkan/icd.d, maybe that is why the system is trying to pick nouveau json instead of nvidia's (symlinking it didn't work though).
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Mesa’s NVK Open-Source Vulkan Driver for NVIDIA Hardware Is Now Stable LXer Syndicated Linux News 0 02-29-2024 07:21 AM
LXer: Mesa 23.3 Linux Graphics Stack Brings the NVK Vulkan Driver for NVIDIA Hardware LXer Syndicated Linux News 0 11-30-2023 08:51 PM
LXer: Collabora Announces NVK, a New Open-Source Vulkan Driver for NVIDIA Hardware in Mesa LXer Syndicated Linux News 0 10-06-2022 04:34 PM
LXer: Introducing NVK, a new open-source Vulkan driver for NVIDIA hardware in Mesa LXer Syndicated Linux News 0 10-04-2022 10:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration