But lastly, there's this odd piece, where it clearly tries to load Mesa's driver for nvidia and obviously fails (strace seems to be confused about what happens here):
[pid 3977] openat(AT_FDCWD, "/snap/chromium/1961/gnome-platform/usr/lib/x86_64-linux-gnu/dri/tls/nvidia-drm_dri.so", O_RDONLY|O_CLOEXEC) = 257
[pid 3977] --- SIGSYS {si_signo=SIGSYS, si_code=SYS_SECCOMP, si_errno=ENOENT, si_call_addr=0x7fa3f1042f58, si_syscall=__NR_openat, si_arch=AUDIT_ARCH_X86_64} ---
[pid 3890] openat(AT_FDCWD, "/snap/chromium/1961/gnome-platform/usr/share/icons/hicolor/symbolic/apps", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 44
[pid 3977] openat(AT_FDCWD, "/snap/chromium/1961/gnome-platform/usr/lib/x86_64-linux-gnu/dri/nvidia-drm_dri.so", O_RDONLY|O_CLOEXEC) = 257
[pid 3977] --- SIGSYS {si_signo=SIGSYS, si_code=SYS_SECCOMP, si_errno=ENOENT, si_call_addr=0x7fa3f1042f58, si_syscall=__NR_openat, si_arch=AUDIT_ARCH_X86_64} ---
MESA-LOADER: failed to open nvidia-drm: /snap/chromium/1961/gnome-platform/usr/lib/x86_64-linux-gnu/dri/nvidia-drm_dri.so: cannot open shared object file: Permission denied (search paths /snap/chromium/1961/gnome-platform/usr/lib/x86_64-linux-gnu/dri)
[pid 3890] openat(AT_FDCWD, "/snap/chromium/1961/data-dir/icons/hicolor/icon-theme.cache", O_RDONLYfailed to load driver: nvidia-drm
) = -1 ENOENT (Nie ma takiego pliku ani katalogu)
So the questions are:
1. why nvidia doesn't work despite all libs being loaded, /dev/nvidia0 and /dev/nvidiactl being opened
2. why it even tries to load mesa drivers
I've attached a strace dump from Zyga. Looking at the dump there's a bunch of loads of nvidia related files, all of which are successful:
[pid 3977] openat(AT_FDCWD, "/var/lib/ snapd/lib/ gl/libnvidia- glsi.so. 510.60. 02", O_RDONLY|O_CLOEXEC <unfinished ...>
[pid 3977] <... openat resumed>) = 20
[pid 3977] openat(AT_FDCWD, "/var/lib/ snapd/lib/ gl/libnvidia- tls.so. 510.60. 02", O_RDONLY|O_CLOEXEC) = 20
[pid 3977] openat(AT_FDCWD, "/var/lib/ snapd/lib/ gl/libnvidia- glcore. so.510. 60.02", O_RDONLY|O_CLOEXEC <unfinished ...>
[pid 3977] <... openat resumed>) = 20
[pid 3977] openat(AT_FDCWD, "/var/lib/ snapd/hostfs/ usr/lib/ x86_64- linux-gnu/ libGLX_ nvidia. so.510. 60.02", O_RDONLY) = 20 snapd/hostfs/ usr/lib/ x86_64- linux-gnu/ libnvidia- glsi.so. 510.60. 02", O_RDONLY) = 20 snapd/hostfs/ usr/lib/ x86_64- linux-gnu/ libnvidia- tls.so. 510.60. 02", O_RDONLY) = 20 snapd/hostfs/ usr/lib/ x86_64- linux-gnu/ libnvidia- glcore. so.510. 60.02", O_RDONLY) = 20
[pid 3977] openat(AT_FDCWD, "/var/lib/
[pid 3977] openat(AT_FDCWD, "/var/lib/
[pid 3977] openat(AT_FDCWD, "/var/lib/
[pid 3977] openat(AT_FDCWD, "/proc/ driver/ nvidia/ params" , O_RDONLY) = 21
[pid 3977] openat(AT_FDCWD, "/dev/nvidia0", O_RDWR|O_CLOEXEC) = 21
[pid 3977] openat(AT_FDCWD, "/dev/nvidiactl", O_RDWR <unfinished ...>
[pid 3977] <... openat resumed>) = 25
[pid 3977] openat(AT_FDCWD, "/dev/nvidia- modeset" , O_RDWR|O_CLOEXEC) = 26
But lastly, there's this odd piece, where it clearly tries to load Mesa's driver for nvidia and obviously fails (strace seems to be confused about what happens here):
[pid 3977] openat(AT_FDCWD, "/snap/ chromium/ 1961/gnome- platform/ usr/lib/ x86_64- linux-gnu/ dri/tls/ nvidia- drm_dri. so", O_RDONLY|O_CLOEXEC) = 257 SYS_SECCOMP, si_errno=ENOENT, si_call_ addr=0x7fa3f104 2f58, si_syscall= __NR_openat, si_arch= AUDIT_ARCH_ X86_64} --- chromium/ 1961/gnome- platform/ usr/share/ icons/hicolor/ symbolic/ apps", O_RDONLY| O_NONBLOCK| O_CLOEXEC| O_DIRECTORY) = 44 chromium/ 1961/gnome- platform/ usr/lib/ x86_64- linux-gnu/ dri/nvidia- drm_dri. so", O_RDONLY|O_CLOEXEC) = 257 SYS_SECCOMP, si_errno=ENOENT, si_call_ addr=0x7fa3f104 2f58, si_syscall= __NR_openat, si_arch= AUDIT_ARCH_ X86_64} --- 1961/gnome- platform/ usr/lib/ x86_64- linux-gnu/ dri/nvidia- drm_dri. so: cannot open shared object file: Permission denied (search paths /snap/chromium/ 1961/gnome- platform/ usr/lib/ x86_64- linux-gnu/ dri) chromium/ 1961/data- dir/icons/ hicolor/ icon-theme. cache", O_RDONLYfailed to load driver: nvidia-drm
[pid 3977] --- SIGSYS {si_signo=SIGSYS, si_code=
[pid 3890] openat(AT_FDCWD, "/snap/
[pid 3977] openat(AT_FDCWD, "/snap/
[pid 3977] --- SIGSYS {si_signo=SIGSYS, si_code=
MESA-LOADER: failed to open nvidia-drm: /snap/chromium/
[pid 3890] openat(AT_FDCWD, "/snap/
) = -1 ENOENT (Nie ma takiego pliku ani katalogu)
So the questions are:
1. why nvidia doesn't work despite all libs being loaded, /dev/nvidia0 and /dev/nvidiactl being opened
2. why it even tries to load mesa drivers