You are not logged in.

#1 2023-08-31 22:31:48

hiracat
Member
Registered: 2023-08-31
Posts: 16

Nvidia-DRM Issue: Missing nvidia-drm_dri.so on Arch Linux

I am having an issue where obsidian is not working with hardware acceleration, when launching from the command the output is this

$obsidian
2023-08-31 22:24:15 Loading updated app package /home/forest/.config/obsidian/obsidian-1.4.5.asar
2023-08-31 22:24:15 Checking for update using Github
MESA-LOADER: failed to open nvidia-drm: /usr/lib/gbm/nvidia-drm_gbm.so: cannot open shared object file: Permission denied (search paths /usr/lib/gbm, suffix _gbm)
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to open nvidia-drm: /usr/lib/dri/nvidia-drm_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/dri, suffix _dri)
MESA-LOADER: failed to open zink: /usr/lib/dri/zink_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/dri, suffix _dri)
MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/dri, suffix _dri)
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/dri, suffix _dri)
2023-08-31 22:24:18 Success.
2023-08-31 22:24:18 Latest version is 1.4.5
2023-08-31 22:24:18 App is up to date.

i have mesa installed and i have electron installed, I  am using the nvidia-dkms drivers. Most of the files that is not finding i dont have in that folder

$ls /usr/lib/dri
crocus_dri.so  d3d12_dri.so  i915_dri.so  iris_dri.so  kms_swrast_dri.so  nouveau_dri.so  r300_dri.so  r600_dri.so  radeonsi_dri.so  swrast_dri.so  virtio_gpu_dri.so  vmwgfx_dri.so  zink_dri.so

Sorry if this is irrelevant or something i just don't want to provide not enough information and i don't know what is relevant. I also dont want to go messing around with permissions as i am not very experienced yet as i figured
that arch would be the fastest way to learn and i dont mind if i break something and have to even reinstall

Last edited by hiracat (2023-09-01 16:44:00)

Offline

#2 2023-09-01 06:36:59

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,101

Re: Nvidia-DRM Issue: Missing nvidia-drm_dri.so on Arch Linux

Please use [code][/code] tags. Edit your post in this regard.

◉ pacman -F nvidia-drm_gbm.so                    
extra/nvidia-utils 525.89.02-1
    usr/lib/gbm/nvidia-drm_gbm.so

However cannot open shared object file: Permission denied does not mean that the file isn't there.

stat /usr/lib/gbm/nvidia-drm_gbm.so

If that doesn't suggest that you did something very stupid to the system, this will be a problem w/ the https://aur.archlinux.org/packages/obsidian-bin (I guess?) appimage installation

Offline

#3 2023-09-01 17:17:53

hiracat
Member
Registered: 2023-08-31
Posts: 16

Re: Nvidia-DRM Issue: Missing nvidia-drm_dri.so on Arch Linux

Do you know how to fix the permissions for the nvidia-drm_gbm.so file because it does exist and i think i have read and execute permissions on the file

$ stat /usr/lib/gbm/nvidia-drm_gbm.so
  File: /usr/lib/gbm/nvidia-drm_gbm.so -> ../libnvidia-allocator.so.535.104.05
  Size: 36        	Blocks: 0          IO Block: 4096   symbolic link
Device: 259,3	Inode: 2076        Links: 1
Access: (0777/lrwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2023-08-31 13:05:36.574947677 -0400
Modify: 2023-08-22 13:37:15.000000000 -0400
Change: 2023-08-25 14:48:35.542326685 -0400
 Birth: 2023-08-25 14:48:35.542326685 -0400

I am using the obsidian in the extra repo it is not from the aur.
The /usr/lib/dri/nvidia-drm_dri.so does not exist I looked.

$ stat /usr/lib/dri/nvidia-drm_dri.so
stat: cannot statx '/usr/lib/dri/nvidia-drm_dri.so': No such file or directory

As for doing something stupid with my system I don't think I did anything wierd. I also reinstalled everything related to nvidia and it did not fix it.

Offline

#4 2023-09-01 19:25:35

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,101

Re: Nvidia-DRM Issue: Missing nvidia-drm_dri.so on Arch Linux

stat /usr/lib/libnvidia-allocator.so.535.104.05

But assuming the file exists and has normal permissions

pacman -Qikk nvidia-utils

the problem will the the context in which obsidian runs (and eg. whether you're using a flatpak/docker thing or firejail etcetc)

How did you install the program?
Is https://aur.archlinux.org/packages/obsidian-bin the relevant package at all?

Offline

#5 2023-09-01 19:33:38

hiracat
Member
Registered: 2023-08-31
Posts: 16

Re: Nvidia-DRM Issue: Missing nvidia-drm_dri.so on Arch Linux

This is the package i used to install it https://archlinux.org/packages/extra/x86_64/obsidian

$ stat /usr/lib/libnvidia-allocator.so.535.104.05
  File: /usr/lib/libnvidia-allocator.so.535.104.05
  Size: 160552    	Blocks: 320        IO Block: 4096   regular file
Device: 259,3	Inode: 2402643     Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2023-09-01 13:13:07.272914944 -0400
Modify: 2023-08-22 13:37:15.000000000 -0400
Change: 2023-09-01 13:13:05.753379553 -0400
 Birth: 2023-09-01 13:13:05.750047236 -0400

& pacman -Qikk nvidia-utils
Name            : nvidia-utils
Version         : 535.104.05-1
Description     : NVIDIA drivers utilities
Architecture    : x86_64
URL             : http://www.nvidia.com/
Licenses        : custom
Groups          : None
Provides        : vulkan-driver  opengl-driver  nvidia-libgl
Depends On      : xorg-server  libglvnd  egl-wayland
Optional Deps   : nvidia-settings: configuration tool [installed]
                  xorg-server-devel: nvidia-xconfig
                  opencl-nvidia: OpenCL support [installed]
Required By     : hyprland-nvidia  lib32-nvidia-utils  libglvnd  nvidia-dkms  nvidia-settings  steam
Optional For    : ffmpeg  ffmpeg4.4  libvdpau  vulkan-icd-loader
Conflicts With  : nvidia-libgl
Replaces        : nvidia-libgl
Installed Size  : 671.09 MiB
Packager        : Sven-Hendrik Haase <svenstaro@archlinux.org>
Build Date      : Tue 22 Aug 2023 01:37:15 PM EDT
Install Date    : Fri 01 Sep 2023 01:13:06 PM EDT
Install Reason  : Explicitly installed
Install Script  : Yes
Validated By    : Signature

nvidia-utils: 230 total files, 0 altered files

I have no clue why this is not working, should i just make myself the owner of that file the only problem is that i feel like that is a bad idea

Offline

#6 2023-09-02 12:15:22

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,104

Re: Nvidia-DRM Issue: Missing nvidia-drm_dri.so on Arch Linux

2023-08-31 22:24:15 Loading updated app package /home/forest/.config/obsidian/obsidian-1.4.5.asar

The version in repos is 1.3.7 so it seems obsidian ran some kind of autoupdate .

I also noticed it uses electron, output of pacman -Qs electron ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#7 2023-09-02 15:21:14

hiracat
Member
Registered: 2023-08-31
Posts: 16

Re: Nvidia-DRM Issue: Missing nvidia-drm_dri.so on Arch Linux

$ pacman -Qs electron
local/electron 1:25-1
    Meta package, always depends on the latest stable Electron build
local/electron25 25.6.0-1
    Build cross platform desktop apps with web technologies

I reinstalled obsidian with #pacman -Rns obsidian and the installed it again and i ran a full system upgrade and i reset obsidians config files and it still is not working
running a full system update does not fix it
I am running version 1.4.5 of obsidian which is the latest version

Offline

#8 2023-09-02 15:31:58

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,101

Re: Nvidia-DRM Issue: Missing nvidia-drm_dri.so on Arch Linux

I am running version 1.4.5 of obsidian which is the latest version

We can see that, but it doesn't answer the critical question.

pacman -Qs obsidian

Last edited by seth (2023-09-02 15:32:13)

Offline

#9 2023-09-02 16:03:59

hiracat
Member
Registered: 2023-08-31
Posts: 16

Re: Nvidia-DRM Issue: Missing nvidia-drm_dri.so on Arch Linux

$pacman -Qs obsidian
local/obsidian 1.3.7-1
    A powerful knowledge base that works on top of a local folder of plain text Markdown files

Last edited by hiracat (2023-09-02 16:05:31)

Offline

#10 2023-09-02 16:07:55

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,101

Re: Nvidia-DRM Issue: Missing nvidia-drm_dri.so on Arch Linux

Gee, I wonder what that edit was wink

So if you've installed 1.3.7, where does 1.4.5 come from?

type obsidian
pacman -Qikk obsidian

Offline

#11 2023-09-02 16:11:17

hiracat
Member
Registered: 2023-08-31
Posts: 16

Re: Nvidia-DRM Issue: Missing nvidia-drm_dri.so on Arch Linux

Sorry i thought i had done it already anyway here

$type obsidian
obsidian is /usr/bin/obsidian

$ pacman -Qikk obsidian
Name            : obsidian
Version         : 1.3.7-1
Description     : A powerful knowledge base that works on top of a local folder of plain text Markdown files
Architecture    : x86_64
URL             : https://obsidian.md/
Licenses        : custom:Commercial
Groups          : None
Provides        : None
Depends On      : zlib  hicolor-icon-theme  fuse  electron
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 20.98 MiB
Packager        : Sven-Hendrik Haase <svenstaro@archlinux.org>
Build Date      : Tue 01 Aug 2023 07:59:17 PM EDT
Install Date    : Sat 02 Sep 2023 11:16:16 AM EDT
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

obsidian: 20 total files, 0 altered files

Offline

#12 2023-09-02 16:13:58

hiracat
Member
Registered: 2023-08-31
Posts: 16

Re: Nvidia-DRM Issue: Missing nvidia-drm_dri.so on Arch Linux

I am using the one from the official repos, not from the aur, i will try and see if switching to that one fixes it

Offline

#13 2023-09-02 16:18:29

hiracat
Member
Registered: 2023-08-31
Posts: 16

Re: Nvidia-DRM Issue: Missing nvidia-drm_dri.so on Arch Linux

Nope
still the same output

$ obsidian
2023-09-02 16:15:21 Loading main app package /tmp/.mount_obsidirYYxOi/resources/obsidian.asar
2023-09-02 16:15:21 Checking for update using Github
2023-09-02 16:15:22 Success.
2023-09-02 16:15:22 Latest version is 1.4.5
2023-09-02 16:15:22 App is up to date.
MESA-LOADER: failed to open nvidia-drm: /usr/lib/gbm/nvidia-drm_gbm.so: cannot open shared object file: Permission denied (search paths /usr/lib/gbm, suffix _gbm)
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to open nvidia-drm: /usr/lib/dri/nvidia-drm_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/dri, suffix _dri)
MESA-LOADER: failed to open zink: /usr/lib/dri/zink_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/dri, suffix _dri)
MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/dri, suffix _dri)
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/dri, suffix _dri)

this is the output from those two commands

$ pacman -Qikk obsidian
error: package 'obsidian' was not found

$ pacman -Qikk obsidian-bin
Name            : obsidian-bin
Version         : 1.4.5-1
Description     : A powerful knowledge base that works on top of a local folder of plain text Markdown files
Architecture    : x86_64
URL             : https://github.com/obsidianmd/obsidian-releases
Licenses        : custom:Commercial
Groups          : None
Provides        : None
Depends On      : None
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : obsidian
Replaces        : None
Installed Size  : 100.41 MiB
Packager        : Unknown Packager
Build Date      : Sat 02 Sep 2023 12:15:06 PM EDT
Install Date    : Sat 02 Sep 2023 12:15:10 PM EDT
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : None

obsidian-bin: 11 total files, 0 altered files

Offline

#14 2023-09-02 16:24:55

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,101

Re: Nvidia-DRM Issue: Missing nvidia-drm_dri.so on Arch Linux

The error is actually from electron, https://bbs.archlinux.org/viewtopic.php?id=280800
Are you trying to run this on a wayland or X11 session? (And does the other work)

Offline

#15 2023-09-02 16:59:04

hiracat
Member
Registered: 2023-08-31
Posts: 16

Re: Nvidia-DRM Issue: Missing nvidia-drm_dri.so on Arch Linux

wayland and i cant get xorg to work i will tell you when i do

Offline

#16 2023-09-02 19:50:59

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,101

Re: Nvidia-DRM Issue: Missing nvidia-drm_dri.so on Arch Linux

i cant get xorg

You can open a new thread about this if you need help; whether this is a wayland exclusive problem is going to be rather relevant.

Offline

#17 2023-09-02 20:30:54

hiracat
Member
Registered: 2023-08-31
Posts: 16

Re: Nvidia-DRM Issue: Missing nvidia-drm_dri.so on Arch Linux

i created a new one here https://bbs.archlinux.org/viewtopic.php?id=288525 i spent a while trying to figure it out by my self but i cant

Offline

Board footer

Powered by FluxBB