Date: Sun, 26 May 2019 14:09:46 +0000 From: Grzegorz Junka <list1@gjunka.com> To: freebsd-x11@freebsd.org Subject: sway and libinput initialization failed Message-ID: <c033f9e8-e179-86c1-6c91-5062f7ad9692@gjunka.com>
next in thread | raw e-mail | index | archive | help
Hi, I am installing new FreeBSD 12-RELEASE on a system with Vega 64 graphics and I thought I will give wayland a try. When searching the internet, this forum, or the FreeBSD wiki there is lots of information that is quickly becoming outdated. So I am not sure which guide I should follow. My immediate problem is that libinput fails, see last few lines: sway -d (...lots of lines, I will post the most important ones...) 2019-05-26 13:37:36 - [sway/main.c:151] FreeBSD somedummyserv.com 12.0-RELEASE-p4 FreeBSD 12.0-RELEASE-p4 GENERICĀ amd64 ... 2019-05-26 13:37:36 - [sway/server.c:40] Preparing Wayland server initialization 2019-05-26 13:37:36 - [backend/session/direct-freebsd.c:159] Using tty /dev/ttyv8 2019-05-26 13:37:36 - [backend/session/direct-freebsd.c:248] Successfully loaded direct session 2019-05-26 13:37:36 - [backend/backend.c:192] Found 1 GPUs 2019-05-26 13:37:36 - [backend/drm/backend.c:152] Initializing DRM backend for /dev/dri/card0 (amdgpu) 2019-05-26 13:37:36 - [backend/drm/drm.c:62] Using atomic DRM interface 2019-05-26 13:37:36 - [backend/drm/drm.c:177] Found 6 DRM CRTCs 2019-05-26 13:37:36 - [backend/drm/drm.c:86] Found 12 DRM planes 2019-05-26 13:37:36 - [backend/drm/drm.c:150] (0 overlay, 6 primary, 6 cursor) 2019-05-26 13:37:36 - [render/egl.c:172] Using EGL 1.5 ... 2019-05-26 13:37:36 - [render/egl.c:174] EGL vendor: Mesa Project 2019-05-26 13:37:36 - [render/egl.c:117] Supported dmabuf buffer formats: AR24 XR24 2019-05-26 13:37:36 - [render/gles2/renderer.c:546] Using OpenGL ES 3.2 Mesa 18.3.2 2019-05-26 13:37:36 - [render/gles2/renderer.c:547] GL vendor: X.Org ... 2019-05-26 13:37:36 - [backend/noop/backend.c:51] Creating noop backend 2019-05-26 13:37:36 - [sway/main.c:362] Starting sway version 1.1-rc2 2019-05-26 13:37:36 - [sway/server.c:54] Initializing Wayland server ... 2019-05-26 13:37:36 - [sway/config.c:391] Loading config from /home/g/.config/sway/config ... 2019-05-26 13:37:36 - [sway/server.c:204] Starting backend on wayland display 'wayland-0' 2019-05-26 13:37:36 - [backend/drm/drm.c:1077] Scanning DRM connectors 2019-05-26 13:37:36 - [backend/drm/drm.c:1140] Found connector 'DP-1' ... 2019-05-26 13:37:36 - [backend/drm/drm.c:1140] Found connector 'HDMI-A-1' ... 2019-05-26 13:37:36 - [backend/drm/drm.c:1293] Requesting modeset for 'DP-1' 2019-05-26 13:37:36 - [sway/desktop/output.c:609] New output 0x80e8f1400: DP-1 2019-05-26 13:37:36 - [backend/drm/drm.c:544] Modesetting 'DP-1' with '1920x1080@60000 mHz' ... 2019-05-26 13:37:36 - [backend/drm/drm.c:1293] Requesting modeset for 'DP-3' 2019-05-26 13:37:36 - [sway/desktop/output.c:609] New output 0x80e8f1a00: DP-3 2019-05-26 13:37:36 - [backend/drm/drm.c:544] Modesetting 'DP-3' with '3840x1600@59994 mHz' ... 2019-05-26 13:37:36 - [backend/libinput/backend.c:84] libinput initialization failed, no input devices 2019-05-26 13:37:36 - [backend/libinput/backend.c:85] Set WLR_LIBINPUT_NO_DEVICES=1 to suppress this check 2019-05-26 13:37:36 - [backend/multi/backend.c:32] Failed to initialize backend. 2019-05-26 13:37:36 - [sway/server.c:206] Failed to start backend ... 2019-05-26 13:37:36 - [backend/drm/drm.c:1444] Emitting destruction signal for 'DP-1' ... 2019-05-26 13:37:36 - [backend/drm/drm.c:1444] Emitting destruction signal for 'DP-3' ... 2019-05-26 13:37:36 - [sway/main.c:400] Shutting down sway 2019-05-26 13:37:36 - [main.c:521] Missing a required Wayland interface What I did so far was pretty much installing drm-kmod and sway. I followed this wiki https://wiki.freebsd.org/Graphics#AMD_Graphics but I skipped the part where they ask to set hw.syscons.disable=1. Could this be the problem? I understood that this is needed to load the amdgpu driver and is not related to libinput. The amdgpu driver seems to be working fine, e.g. during booting the standard display switches to a more compact one (meaning more lines fit the screen). When I set WLR_LIBINPUT_NO_DEVICES to 1, as suggested, sway seems to be starting fine, i.e. both screens show the SWAY background, dates are displayed, etc. But of course neither mouse no keyboard work. My motherboard is Asrock X470 TaiChi Ultimate and mouse and keyboard are connected through USB3. Note that the mouse works fine in the text mode (just after FreeBSD is booted into the command line mode). Any help would be greatly appreciated. GrzegorzJ
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c033f9e8-e179-86c1-6c91-5062f7ad9692>