Date: Tue, 28 Apr 2020 03:33:41 +0200 From: Jan Beich <jbeich@FreeBSD.org> To: Grzegorz Junka <list1@gjunka.com> Cc: freebsd-x11@freebsd.org Subject: Re: Wayland on FreeBSD Message-ID: <y2qg-z956-wny@FreeBSD.org> In-Reply-To: <9a914a03-d431-7d99-abb8-6f949e562f14@gjunka.com> (Grzegorz Junka's message of "Tue, 28 Apr 2020 00:32:18 %2B0000") References: <CAFYkXjmfyLZAi1HZe-RE3wLxa6GRNP6GkmtZG-4T2puRDOz0JA@mail.gmail.com> <9a914a03-d431-7d99-abb8-6f949e562f14@gjunka.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Grzegorz Junka <list1@gjunka.com> writes: > I am able to start sway, which in turn seems to be starting > Xwayland. But I don't seem to be able to open any graphical > applications? > > This is what's running when grepping by sway/wayland: > g 2706 0.0 0.1 144304 68280 v0 I 23:55 0:01.07 Xwayland :0 -rootless -terminate -listen 31 -listen 33 -wm 63 > g 2269 0.0 0.2 219904 121748 v0 S 23:52 0:01.07 sway > root 2271 0.0 0.0 35128 15000 v0 I 23:52 0:00.00 sway > g 2276 0.0 0.1 63516 49856 v0 I 23:52 0:00.09 swaybg -o * -i /usr/local/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png -m > g 2279 0.0 0.0 31660 19064 v0 S 23:52 0:00.39 swaybar -b bar-0 Looks OK. > Environment > > mkdir -p /tmp/xdg > setenv XDG_RUNTIME_DIR /tmp/xdg > setenv MOZ_ENABLE_WAYLAND 1 Looks OK but Firefox may not work if XDG_RUNTIME_DIR is on ZFS. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240884 > setenv LIBGL_DRI3_ENABLE 1 Obsolete since ports r528071. > setenv DISPLAY :0 > setenv WAYLAND_DISPLAY wayland-0 Don't set these manually. Wayland compositor creates X11/Wayland sockets for client applications to talk to. If hardcoded then applications may launch on unintended server e.g., on Xorg instead of Sway. > % glxgears > 14696 frames in 5.0 seconds = 2939.040 FPS > 14919 frames in 5.0 seconds = 2983.659 FPS > 15013 frames in 5.0 seconds = 3002.452 FPS Uncapped FPS is probably due to software renderer. Does "glxinfo | fgrep -A11 Extended" show llvmpipe? Can you check sway log why Xwayland failed to use device-specific OpenGL driver? Make sure "sway -d" confirms Sway itself doesn't fall back to llvmpipe. > Firefox briefly opens a window stating that there was a problem then > dumps core. Likely posix_fallocate issue. I can't reproduce that's why it takes eons to fix. > Kwrite displays this then nothing happens: > > % kwrite > sonnet.core: No language dictionaries for the language: "C" > sonnet.core: No language dictionaries for the language: "C" > sonnet.core: No language dictionaries for the language: "C" > sonnet.core: No language dictionaries for the language: "C" Looks unrelated. To set locale define LANG in environ(7). > qt.qpa.xcb: QXcbConnection: XCB error: 11 (BadAlloc), sequence: 476, > resource id: 908, major code: 53 (CreatePixmap), minor code: 0 Probably related to software rendering in Xwayland or broken X11 socket.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?y2qg-z956-wny>