Hi, any thoughts / help in starting sway welcome. I am guessing because sway does not support EGLStreams I should remove egl-wayland-1.1.0-1? I am also having similar issues with weston. Thanks in advance!
Sway Version:
sway version 4.15.0.1 (03-13-2018)
sway-git r4928.b80cf982-1
Other
xf86-video-nouveau 1.0.15-3
wlroots-git 0.1.r24.g659d39ba-1
mesa-18.2.3-1
Video card
% lspci -k | grep -A 2 -E "(VGA|3D)"
02:00.0 VGA compatible controller: NVIDIA Corporation C79 [GeForce 9400M] (rev b1)
Subsystem: Apple Inc. C79 [GeForce 9400M]
Kernel driver in use: nouveau
Debug Log:
% sway -d
2018-10-29 19:17:29 - [sway/sway/server.c:34] Preparing Wayland server initialization
2018-10-29 19:17:29 - [backend/session/logind.c:537] Successfully loaded logind session
2018-10-29 19:17:29 - [backend/backend.c:143] Found 1 GPUs
2018-10-29 19:17:29 - [backend/drm/backend.c:151] Initializing DRM backend for /dev/dri/card0 (nouveau)
2018-10-29 19:17:29 - [backend/drm/drm.c:60] Atomic modesetting unsupported, using legacy DRM interface
2018-10-29 19:17:29 - [backend/drm/drm.c:156] Found 2 DRM CRTCs
2018-10-29 19:17:29 - [backend/drm/drm.c:87] Found 6 DRM planes
2018-10-29 19:17:29 - [backend/drm/drm.c:129] (2 overlay, 2 primary, 2 cursor)
2018-10-29 19:17:30 - [render/egl.c:128] Failed to create EGL display
modprobe: FATAL: Module nvidia not found in directory /lib/modules/4.18.16-arch1-1-ARCH
2018-10-29 19:17:30 - [render/wlr_renderer.c:193] Could not initialize EGL
2018-10-29 19:17:30 - [backend/drm/renderer.c:37] Failed to create EGL/WLR renderer
2018-10-29 19:17:30 - [backend/drm/backend.c:195] Failed to initialize renderer
2018-10-29 19:17:30 - [backend/backend.c:149] Failed to open DRM device 9
2018-10-29 19:17:30 - [backend/backend.c:284] Failed to open any DRM device
2018-10-29 19:17:30 - [sway/sway/server.c:40] Unable to create backend
Configuration File:
Default from /etc/sway/config
modprobe: FATAL: Module nvidia not found in directory /lib/modules/4.18.16-arch1-1-ARCH
This line looks suspicious. Are you sure you don't have kernel parameters or mkinitcpio config that makes nvidia load? Maybe try running mkinitcpio again.
I should remove egl-wayland-1.1.0-1
No. EGL != EGLStreams.
Thanks @emersion ! Unless I am missing something obvious, I thought that sway only supports open source drivers? I am trying to use nouveau and I thought the nouveau and nvidia modules were mutually exclusive?
You're correct that only nouveau is supported for your hardware. However, your system is trying to load nvidia anyway. This hints at a misconfigured system outside of the scope of sway.
@ddevault I'm having the exact same error output when trying to start sway on a fresh Archlinux install.
I have Intel graphics. I have not installed/configured any nvidia drivers.
I think this is a sway thing.
Please upload debug logs.
VirtualBox same issue.
VirtualBox is unsupported. Try qemu instead.
What does "DRM universal planes unsupported" mean? Is this the thing that Nvidia is supposed to implement? Btw telling users with an NVIDIA card to just go use nouveau probably isn't helping anyone. The nouveau driver has been plagued with performance issues for years, and you can't seriously use it for anything, even watching Youtube drops frames on it.
2019-12-31 16:35:24 - [sway/main.c:152] Linux dolores 5.3.12-2-default #1 SMP Thu Nov 21 07:21:43 UTC 2019 (a6f6081) x86_64 x86_64 x86_64 GNU/Linux
2019-12-31 16:35:24 - [sway/main.c:168] Contents of /etc/lsb-release:
2019-12-31 16:35:24 - [sway/main.c:152] LSB_VERSION="core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64"
2019-12-31 16:35:24 - [sway/main.c:168] Contents of /etc/os-release:
2019-12-31 16:35:24 - [sway/main.c:152] NAME="openSUSE Tumbleweed"
2019-12-31 16:35:24 - [sway/main.c:152] # VERSION="20191229"
2019-12-31 16:35:24 - [sway/main.c:152] ID="opensuse-tumbleweed"
2019-12-31 16:35:24 - [sway/main.c:152] ID_LIKE="opensuse suse"
2019-12-31 16:35:24 - [sway/main.c:152] VERSION_ID="20191229"
2019-12-31 16:35:24 - [sway/main.c:152] PRETTY_NAME="openSUSE Tumbleweed"
2019-12-31 16:35:24 - [sway/main.c:152] ANSI_COLOR="0;32"
2019-12-31 16:35:24 - [sway/main.c:152] CPE_NAME="cpe:/o:opensuse:tumbleweed:20191229"
2019-12-31 16:35:24 - [sway/main.c:152] BUG_REPORT_URL="https://bugs.opensuse.org"
2019-12-31 16:35:24 - [sway/main.c:152] HOME_URL="https://www.opensuse.org/"
2019-12-31 16:35:24 - [sway/main.c:152] LOGO="distributor-logo"
2019-12-31 16:35:24 - [sway/main.c:140] LD_LIBRARY_PATH=(null)
2019-12-31 16:35:24 - [sway/main.c:140] LD_PRELOAD=(null)
2019-12-31 16:35:24 - [sway/main.c:140] PATH=~/go/bin:~/.gem/ruby/2.4.0/bin:~/.local/bin:~/.cargo/bin:./node_modules/.bin:~/go/bin:~/.gem/ruby/2.4.0/bin:~/.local/bin:~/.cargo/bin:./node_modules/.bin:/home/avindra/bin:/usr/local/bin:/usr/bin:~/App/sbt/bin:~/App/sbt/bin
2019-12-31 16:35:24 - [sway/main.c:140] SWAYSOCK=(null)
2019-12-31 16:35:24 - [sway/main.c:95] !!! Proprietary Nvidia drivers are in use !!!
2019-12-31 16:35:24 - [sway/server.c:39] Preparing Wayland server initialization
2019-12-31 16:35:24 - [backend/session/logind.c:675] Successfully loaded logind session
2019-12-31 16:35:24 - [backend/backend.c:192] Found 1 GPUs
2019-12-31 16:35:24 - [backend/drm/backend.c:152] Initializing DRM backend for /dev/dri/card0 (nvidia-drm)
2019-12-31 16:35:24 - [backend/drm/drm.c:50] DRM universal planes unsupported
2019-12-31 16:35:24 - [backend/backend.c:198] Failed to open DRM device 9
2019-12-31 16:35:24 - [backend/backend.c:339] Failed to open any DRM device
2019-12-31 16:35:24 - [backend/noop/backend.c:51] Creating noop backend
2019-12-31 16:35:24 - [sway/server.c:46] Unable to create backend
Most helpful comment
You're correct that only nouveau is supported for your hardware. However, your system is trying to load nvidia anyway. This hints at a misconfigured system outside of the scope of sway.