From owner-freebsd-x11@freebsd.org Tue Dec 20 23:32:33 2016 Return-Path: Delivered-To: freebsd-x11@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 5D1DFC89BD7 for ; Tue, 20 Dec 2016 23:32:33 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: from mail-lf0-x244.google.com (mail-lf0-x244.google.com [IPv6:2a00:1450:4010:c07::244]) (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 E49FC1CC9 for ; Tue, 20 Dec 2016 23:32:29 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: by mail-lf0-x244.google.com with SMTP id y21so12065083lfa.0; Tue, 20 Dec 2016 15:32:29 -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=4heBd74i6w42pZbMNitkMG6ZPocRQmPYXZ7VHThso84=; b=pFDpviaXQFC5AmA/mIVhsIMqUIvin9fZ934vo+/mpEh6ppvtfSQZ6wyOQVJQ8Nujn4 tApXnM5QKdFI+djJE5WpBzRyLK2Fw3aMFYgvrnzZYzdF7xVHOug/mnEn6NhKSKuuIBHS TBtqjqq9CuCWWTglnJ1GzvYh+IoncGVnV6TOz54YvyIaDLKfu+GAwYT6nZez5RZH9Bk2 /MotlltezubKYTJn16/9vww6VH9DMzYCEvI6eQDC2U9Xf8/fBddjNH+o9YIYHRYW/5VJ Mg2ssfDpBjnK2WYoPTJhhUyY99QRLP49ph59l77Z+iP6IKHxdkXRyTFgQYSDbwJWM1PH MEMQ== 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=4heBd74i6w42pZbMNitkMG6ZPocRQmPYXZ7VHThso84=; b=sKPvgG9yO/6pVcYBZGFHSFLpcwcvVqtwgW8gSzyadrtDnYmWnA3XOsDWckdh8w1PVD oOObC79pvl8aBxmY52NGT7a1uGmUEv5N580VvdQu5OPRe9PLizI5qv10UnoXKevX1RRM lTdYxDkNcb2IdcIQKEEH22/NYYLq/WvIWm8UTAKgBduEbhzpAtgOVN2CXUOzPhNmdbON hDoJFZOJEAV4Qud+9Z5MxyWbKw4VaCdfO67l/UftmxQ3YwPnu5krIyKsi28iUZmJZ1/M 1c8LWdvI2cSWi0yUwAVi43b4B/Z2H1JRjFB0rY3HYQfYpqSCp8PvC7gaE6UsKIDty3R8 KjNw== X-Gm-Message-State: AIkVDXL9sksgVCmzlkkkN263dxwxJaRZ9D4QGrRNrH/xHKZX7jdrUCUwww0zLRqex8YuIsdwjtkYd59nRPoI2Q== X-Received: by 10.25.162.198 with SMTP id l189mr669818lfe.50.1482276747671; Tue, 20 Dec 2016 15:32:27 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.24.228 with HTTP; Tue, 20 Dec 2016 15:32:27 -0800 (PST) From: Johannes Lundberg Date: Tue, 20 Dec 2016 15:32:27 -0800 Message-ID: Subject: Wayland update To: freebds-current@freebsd.org, freebsd-x11@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2016 23:32:33 -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