From owner-freebsd-current@freebsd.org Tue Dec 20 23:33:31 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 55431C89CA1 for ; Tue, 20 Dec 2016 23:33:31 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: from mail-lf0-x243.google.com (mail-lf0-x243.google.com [IPv6:2a00:1450:4010:c07::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BFEEC1D3E for ; Tue, 20 Dec 2016 23:33:30 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: by mail-lf0-x243.google.com with SMTP id p100so12053603lfg.2 for ; Tue, 20 Dec 2016 15:33:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=JxPTVKMVVUJPXkpHdoNSIFARAvkvWriE996oQ26ohcc=; b=iXj265FnYsx8VqwI97dLP+8SExUmUBXi3PnSdyReBnQBJYQF2oQO7C7GD8ybhXUBBy m0AdfrcFwZgv4eK/qTHUkPSl2vtMEsS2n8YrtE0ADedFwWPXPTK8uHRKHkDvXNrr4TSC K03E8l0duK8P/waYlbhpbdVdpXYROM2xUi1p/gN2bXWVuOiyPx2VJfamgdm34nL8KRnO puvmwk2v7CDdR/Q9RO8sN8DPaQao+HC2UJKXnYyS7pasqkuV0CxW0NpucPrG4nZ6O/Vt 2/IqP43tEFCMehbjBMZKDbvykA6Ae1kGJAYCcIjHGUMEsYJQsuK3tdexeyR2Sw8mKZzE sFtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=JxPTVKMVVUJPXkpHdoNSIFARAvkvWriE996oQ26ohcc=; b=sbVIGHlKmDDG13AaDRubdTfCRawuCkOrsX3tGZsx9SBxtZ485z2mv77YKYIrYVEXe1 nxBdHDGSEZ3XD8sqgYwjj//gLJ4w3GY+3AbvIo5Dm6xrk22y5s5nwJb0UEmQiQP8zplD 0yT9bMXSleq4rYRgabSzLafYirZMkBxgDet7HnFdnk3//ZQ96oIubBr5P+R45aty15WR jpfJzz3VIAFlZQEqY14tv0ZU16hsUAR5NudJy9am5A0XpuZialoz2Iu2rh2VHSUlSD48 lwvgaHMUkx7+0JQyaQIR/xhGrAen1XryDvyO/9hIt3XeXJYKl8m6B+4o+u4kX3d/gnga XTqg== X-Gm-Message-State: AIkVDXLB3VKcg/BtDW1/EaS8qzMmALPYILepBtF3QSjkmklNuyStHWSGDT0U3/tnri6Vx2zavUv5x24QvXFBGg== X-Received: by 10.25.156.197 with SMTP id f188mr651814lfe.162.1482276808416; Tue, 20 Dec 2016 15:33:28 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.24.228 with HTTP; Tue, 20 Dec 2016 15:33:27 -0800 (PST) From: Johannes Lundberg Date: Tue, 20 Dec 2016 15:33:27 -0800 Message-ID: Subject: Wayland update To: freebsd-current@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2016 23:33:31 -0000 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