Wayland on FreeBSD

Jan Beich jbeich at FreeBSD.org
Wed Apr 29 00:31:47 UTC 2020


Grzegorz Junka <list1 at gjunka.com> writes:

> After the above env variables have been removed glxgears no longer starts:
>
> % glxgears
> Error: couldn't open display (null)

Make sure you haven't accidentally unset DISPLAY after it was set by
Sway and make sure DISPLAY was inherited by terminal emulator, shell and
whatever invokes those (e.g., tmux/screen, wofi/dmenu-wayland).

> [backend/session/consolekit2.c:734] Failed to get session path: 
> GDBus.Error:org.freedesktop.ConsoleKit.Manager.Error.General: Unable to lookup session information for process '2266'

CONSOLEKIT option in x11-toolkits/wlroots requires https://reviews.freebsd.org/D18754
Please, wait until you're comfortable with Sway before enabling the option.

> [render/egl.c:246] Using EGL 1.5
> [render/egl.c:248] EGL vendor: Mesa Project
> [render/egl.c:127] Supported dmabuf buffer formats: AR24 XR24
> [render/gles2/renderer.c:561] Using OpenGL ES 3.2 Mesa 18.3.2
> [render/gles2/renderer.c:562] GL vendor: X.Org
> [render/gles2/renderer.c:563] GL renderer: Radeon RX Vega (VEGA10, DRM 3.27.0, 13.0-CURRENT, LLVM 8.0.1)

Sway itself uses OpenGL acceleration. To see what clients use try mpv e.g.,

  $ mpv --msg-level=vo/gpu=v --gpu-context=wayland /path/to/file.mp4 | fgrep GL_
  $ mpv --msg-level=vo/gpu=v --gpu-context=x11egl /path/to/file.mp4 | fgrep GL_

Did you disable X11 option in x11-wm/sway or x11-toolkits/wlroots?
It seems your debug log lacks something like the following:

  [sway/server.c:179] Initializing Xwayland (lazy=1)
  ...
  [xwayland/xwayland.c:91] WAYLAND_SOCKET=27 Xwayland :0 -rootless -terminate -listen 25 -listen 26 -wm 54
  [xwayland/xwayland.c:356] sent SIGUSR1 to process 56187
  [xwayland/xwayland.c:228] Xserver is ready
  [xwayland/xwm.c:1541] xfixes version: 5.0
  [sway/desktop/xwayland.c:612] New xwayland surface title='(null)' class='(null)'
  [types/wlr_surface.c:607] New wlr_surface 0x8022a0b00 (res 0x8092a3280)
  [xwayland/xwm.c:1389] New xwayland surface: 0x8022a0b00
  [xwayland/xwm.c:441] XCB_ATOM_WM_NAME: glxgears
  [xwayland/xwm.c:607] WM_NORMAL_HINTS (15)
  [sway/tree/root.c:249] Looking up workspace for pid 0
  [sway/tree/arrange.c:264] Usable area for ws: 3840x2160 at 0,0
  [sway/tree/arrange.c:294] Arranging workspace '1' at 0.000000, 0.000000
  [sway/tree/arrange.c:77] Arranging 0x7fffffffdbc0 horizontally
  [sway/desktop/transaction.c:412] Transaction 0x8092f3600 committing with 4 instructions
  [xwayland/xwm.c:968] XCB_PROPERTY_NOTIFY (4194306)
  [xwayland/xwm.c:968] XCB_PROPERTY_NOTIFY (656)
  [xwayland/xwm.c:968] XCB_PROPERTY_NOTIFY (656)


More information about the freebsd-x11 mailing list