Wayland update

From: Johannes Lundberg <johalun0_at_gmail.com>
Date: Tue, 20 Dec 2016 15:33:27 -0800
Hi Everyone!

We had some progress with Wayland that we'd like to share.

Wayland (v1.12.0)
  Working

Weston (v1.12.0)
  Working (Porting WIP)

Weston-clients (installed with wayland/weston port)
  Working

XWayland (run X11 apps in Wayland compositor)
  Works (maximized window only) if started manually but not when
  launching X11 app from Weston.  Most likely problem with Weston IPC.

Sway (i3-compatible Wayland compositor)
  Working

SDL20 (Wayland backend)
  games/stonesoup-sdl briefly tested.
  https://twitter.com/johalun/status/811334203358867456


GDM (with Wayland)
  Halted - depends on logind.

GTK3
  gtk3-demo runs fine on Weston (might have to set GDK_BACKEND=wayland
first.
  GTK3 apps working (gedit, gnumeric, xfce4-terminal tested, xfce desktop
(4.12) does not yet support GTK3)

Get it at:

Ports (note: xserver-mesa-next-udev branch)
https://github.com/FreeBSDDesktop/freebsd-ports-graphics/tree/xserver-mesa-
next-udev

Base (note: drm-next-4.7 branch)
https://github.com/FreeBSDDesktop/freebsd-base-graphics/tree/drm-next-4.7

Instruction for installing base
https://github.com/FreeBSDDesktop/freebsd-base-graphics/wiki

For Ports, use Poudriere or just build manually from source.
Wayland ports located in $PORTSDIR/wayland/

Configuration:

For easy access to input devices with evdev add to /etc/devfs.rules
add path 'input/*' mode 0660 group input

And create and add yourself to input group.

You also need to chose where the input events go
Add to /etc/sysctl.conf
kern.evdev.rcpt_mask=12 #or some other combination..
(check sys/dev/evdev/evdev.h in kernel source for explanation)

You might need to put a weston.ini into $HOME/.config/ with correct paths
to background images etc. Personally I have this in my weston.ini to put a
terminal launcher in the top-left corner (depends on icon from xfce4 I
think)
...
[launcher]
icon=/usr/local/share/icons/Adwaita/24x24/apps/utilities-terminal.png
path=/usr/local/bin/weston-terminal
...

If you use Sway you need to edit $HOME/.config/sway/config to open
weston-terminal instead of urxwt to get a working terminal.

Please post issues or create pull request for any ideas for improvement you
have.

Personally I'm having some rendering artifacts on Intel CherryTrail but I
think that is an Intel driver issue.

Thanks to everyone for your contributions.

Have fun!
/Johannes, FreeBSDDesktop team
Received on Tue Dec 20 2016 - 22:33:31 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:09 UTC