Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nvidia blob + wayland (weston): no driver in /usr/lib64/dri
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
dimgel
n00b
n00b


Joined: 27 Nov 2017
Posts: 3

PostPosted: Mon Nov 27, 2017 6:37 pm    Post subject: nvidia blob + wayland (weston): no driver in /usr/lib64/dri Reply with quote

Hi all. Please help. Trying to start weston with nvidia blob from console:

Code:
$ weston-launch
Date: 2017-11-27 MSK
[03:49:16.294] weston 1.11.0
               http://wayland.freedesktop.org
               Bug reports to: https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.11.0
               Build: 1.10.93-2-g2d825ed configure.ac: bump to version 1.11.0 for the official release (2016-05-31 17:10:40 -0700)
[03:49:16.294] OS: Linux, 4.12.12-gentoo, #41 SMP Mon Nov 27 03:30:00 MSK 2017, x86_64
[03:49:16.294] Starting with no config file.
[03:49:16.294] Output repaint window is 7 ms maximum.
[03:49:16.294] Loading module '/usr/lib64/weston/drm-backend.so'
[03:49:16.294] initializing drm backend
[03:49:16.294] using /dev/dri/card0
[03:49:16.294] Loading module '/usr/lib64/weston/gl-renderer.so'
gbm: failed to open any driver (search paths /usr/lib64/dri)
gbm: Last dlopen error: /usr/lib64/dri/nouveau_dri.so: cannot open shared object file: No such file or directory
failed to load driver: nouveau
[03:49:16.311] EGL client extensions: EGL_EXT_platform_base EGL_EXT_device_base
               EGL_KHR_client_get_all_proc_addresses EGL_EXT_client_extensions
               EGL_KHR_debug EGL_EXT_platform_x11 EGL_EXT_platform_device
[03:49:16.311] failed to initialize egl
[03:49:16.311] fatal: failed to create compositor backend


Directory /usr/lib64/dri contains only mesa stuff:

Code:
# ls -lA /usr/lib64/dri
total 0
-rw-r--r-- 1 root root  0 Nov 27 02:36 .keep_media-libs_mesa-0
lrwxrwxrwx 1 root root 25 Nov 27 02:36 kms_swrast_dri.so -> ../mesa/kms_swrast_dri.so
lrwxrwxrwx 1 root root 22 May 29 06:46 swrast_dri.so -> ../mesa/swrastg_dri.so
lrwxrwxrwx 1 root root 22 Nov 27 02:36 swrastg_dri.so -> ../mesa/swrastg_dri.so


Nothing looking appropriate (to symlink to) among nvidia files:

Code:
$ equery f nvidia-drivers | grep dri | grep -v driver
$


Tried with versions: nvidia-drivers-387.22 (currently latest stable), wayland-1.13.0 (stable), weston-1.11.0 (stable). Before that, tried latest weston-3.0.0 and it couldn't even find /dev/dri/card0 (giving "no drm device found" error); but that's another story and for now I'm likely to blame nvidia for not putting something into /usr/lib64/dri.

Can anyone advise anything? Thanks.

BTW, with --backend=fbdev-backend.so (and without --use-gl) weston starts, even in parallel with working X11 (and after disabling CSM in BIOS, nvidia does not complain of non-VGA video mode). But neither can I change stupid console resolution BIOS leaves me with, nor there's life without gl; so this is not an option, I want default drm-backend.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 5572
Location: Austria

PostPosted: Mon Nov 27, 2017 6:49 pm    Post subject: Reply with quote

You can't run Weston with the nvidia blob. Nvidia does not support your case.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
dimgel
n00b
n00b


Joined: 27 Nov 2017
Posts: 3

PostPosted: Mon Nov 27, 2017 6:56 pm    Post subject: Reply with quote

Simple as that. :( I've read this many times but hoped something changed since then. Heard some fuss about nvidia support for wayland; there's wayland USE-flag in nvidia-drivers, and it installs some wayland-related files:

Code:
$ equery f nvidia-drivers | grep wayland
/usr/lib64/libnvidia-egl-wayland.so
/usr/lib64/libnvidia-egl-wayland.so.1.0.2
/usr/share/egl/egl_external_platform.d/10_nvidia_wayland.json


What cases is it for, then?
_________________
Thanks & best wishes!
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 5572
Location: Austria

PostPosted: Mon Nov 27, 2017 6:57 pm    Post subject: Reply with quote

Nvidia produced some "wayland-support" that "works" by every compositor out there having to support their custom solution. Which is unacceptable to the community minus Gnome.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
dimgel
n00b
n00b


Joined: 27 Nov 2017
Posts: 3

PostPosted: Mon Nov 27, 2017 7:44 pm    Post subject: Reply with quote

Thanks for info.
UPD: Googling "nvidia gbm" gave all anwers.
_________________
Thanks & best wishes!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum