From owner-freebsd-current@freebsd.org Thu Aug 11 23:19:00 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 22AD0BB631F for ; Thu, 11 Aug 2016 23:19:00 +0000 (UTC) (envelope-from johannes@brilliantservice.co.jp) Received: from mail-ua0-x22d.google.com (mail-ua0-x22d.google.com [IPv6:2607:f8b0:400c:c08::22d]) (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 C9B1C1803 for ; Thu, 11 Aug 2016 23:18:59 +0000 (UTC) (envelope-from johannes@brilliantservice.co.jp) Received: by mail-ua0-x22d.google.com with SMTP id 74so17487108uau.0 for ; Thu, 11 Aug 2016 16:18:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brilliantservice-co-jp.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=VSaMSpbVKSn5vorq8ODzBEkjtA4x0882KhH78Pi6X8w=; b=w6Pn98Ijm66VHEDqmuMGIkvkBWzElw4I16aEEMWDJbxa2axnUQ8EqvmYfJ6tpwDFFj 1Bby4WYTK+3rQbFXNHkjpIsrF+mzz1AP8dzbWjTPVvEOYF42p/zNw9OkFIuZztHgHBQW FS4NZDoN0gaF9ei2iOKRJtcaP6IIIcXWTJY3KjKaubpCMNuiD61klwE9a9d8xIEhfcjf OFZi27VQZ7fh27m5P6MO08Ey9u2YnDzR402lQR3otgvyK+gw/7ijUaMIn7BjTtfY8Akz fs687sGuUFhSfhXaf/2KYg5S6jUrX+Epf0xzBI9HpBvUo6a6UhZog8vx5q9Awvw028Ic Lt3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=VSaMSpbVKSn5vorq8ODzBEkjtA4x0882KhH78Pi6X8w=; b=JnWe0dqFW9s3yNrWCXfsggAPXO2UIoYhSkFy7KA21GQdkuncIQ3cIs22LH6NRrwLxj dc0xvRDpM0gbASm4RL1U/q0ZzvivmAG73EzyDg1dgOeYndQnTLBfdQ5UFJtJcR+98oXS ucZot6+AakgWc0rziApbrtLtu+0p6eVF+BjKwQFFUomfn1KY20Ul918Y3zUmcN+jx8Zo RU5QH0g0bWenQgSqCy1CS8cP5800kjpP8rUQ4NN7VtdwN1WFr6+jioQa9Ee6BeebKRfA lG8ulvdh1Q3x2my5q3zhn5Tfw2EYqEns7AKa3MpqYctFDU2cm/lGiztiQF1r8u36GsXA BE0A== X-Gm-Message-State: AEkoouuG9QPj0bMs2GAcR09odecy1M/k840oIF5F6gM/V6FX79+juxNi74SdcDbA8RbhHT4xRG0CQUXJJZl7795a/2cEY6MkM4eiV6cN8pbSlguCGuDFVsCFgFgPl3nYhS4ndtsgbgDZO0IvohBPj7bLtks= X-Received: by 10.176.69.175 with SMTP id u44mr4463841uau.61.1470957537998; Thu, 11 Aug 2016 16:18:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.7.33 with HTTP; Thu, 11 Aug 2016 16:18:42 -0700 (PDT) From: "Lundberg, Johannes" Date: Thu, 11 Aug 2016 16:18:42 -0700 Message-ID: Subject: Wayland work status To: FreeBSD Current Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 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: Thu, 11 Aug 2016 23:19:00 -0000 Hi Here's a status update of my work and some questions. SETUP: System: FreeBSD 12-CURRENT ( https://github.com/FreeBSDDesktop/freebsd-base-graphics/tree/drm-next-4.6) Ports: https://github.com/freebsd/freebsd-ports-graphics/tree/wayland Package installed from this tree graphics/wayland (built without modification) x11/libinput (removed udev-stubs and linked to libudev-devd) Mesa-related (libEGL libGL libglesv2 libglapi libdrm) libudev-devd: https://github.com/wulf7/libudev-devd evdev: https://reviews.freebsd.org/D6998 Needed to update patches a bit to have them patch cleanly. =E2=80=8Bwlc: https://github.com/Cloudef/wlc I'm using this compositor library and the example implementation that comes with it. I've patched it to run on FreeBSD and will try to push the changes upstream this week. Maybe we can even make a port for this very excellent library? =E2=80=8BI will not do any work on porting Weston. WIP: =E2=80=8BWayland relies on kqueue which is not implemented in drm's 3.8 or = 4.6 branches. I'm working on this now for drm-next-4.6 and it is almost complete. I will probably implement it also in the 3.8 =E2=80=8Bbranch to be able to = run Wayland on both to compare and find bugs in linuxkpi more easily. Will share patch for 3.8 branch when done. =E2=80=8BCURRENT STATUS: My personal Wayland clients (built on Linux) compile and run nicely with udev and libinput in a Wayland window with X11 backend (wlc-based compositor). There is a problem with rendering updates when running with drm backend but will most likely be solved soon. Input devices and rendering is functional in native KMS (no X11), just a few small issues to iron out related to kqueue and linuxkpi. QUESTIONS: Currently by default evdev create /dev/input/eventX devices with 600 permission. These need to be accessible for non-root users. What is the best solution? Should we create a "input" group similar to "video" group is being used for rights to access /dev/drm devices? Best regards Johannes =E2=80=8B --=20 =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D= -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- =E7=A7=98=E5=AF=86=E4=BF=9D=E6=8C=81=E3=81=AB=E3=81=A4=E3=81=84=E3=81=A6=EF= =BC=9A=E3=81=93=E3=81=AE=E9=9B=BB=E5=AD=90=E3=83=A1=E3=83=BC=E3=83=AB=E3=81= =AF=E3=80=81=E5=90=8D=E5=AE=9B=E4=BA=BA=E3=81=AB=E9=80=81=E4=BF=A1=E3=81=97= =E3=81=9F=E3=82=82=E3=81=AE=E3=81=A7=E3=81=82=E3=82=8A=E3=80=81=E7=A7=98=E5= =8C=BF=E7=89=B9=E6=A8=A9=E3=81=AE=E5=AF=BE=E8=B1=A1=E3=81=A8=E3=81=AA=E3=82= =8B=E6=83=85=E5=A0=B1=E3=82=92=E5=90=AB=E3=82=93=E3=81=A7=E3=81=84=E3=81=BE= =E3=81=99=E3=80=82 =E3=82=82=E3=81=97=E3=80=81=E5=90=8D=E5=AE=9B=E4=BA=BA=E4=BB=A5=E5=A4=96=E3= =81=AE=E6=96=B9=E3=81=8C=E5=8F=97=E4=BF=A1=E3=81=95=E3=82=8C=E3=81=9F=E5=A0= =B4=E5=90=88=E3=80=81=E3=81=93=E3=81=AE=E3=83=A1=E3=83=BC=E3=83=AB=E3=81=AE= =E7=A0=B4=E6=A3=84=E3=80=81=E3=81=8A=E3=82=88=E3=81=B3=E3=81=93=E3=81=AE=E3= =83=A1=E3=83=BC=E3=83=AB=E3=81=AB=E9=96=A2=E3=81=99=E3=82=8B=E4=B8=80=E5=88= =87=E3=81=AE=E9=96=8B=E7=A4=BA=E3=80=81 =E8=A4=87=E5=86=99=E3=80=81=E9=85=8D=E5=B8=83=E3=80=81=E3=81=9D=E3=81=AE=E4= =BB=96=E3=81=AE=E5=88=A9=E7=94=A8=E3=80=81=E3=81=BE=E3=81=9F=E3=81=AF=E8=A8= =98=E8=BC=89=E5=86=85=E5=AE=B9=E3=81=AB=E5=9F=BA=E3=81=A5=E3=81=8F=E3=81=84= =E3=81=8B=E3=81=AA=E3=82=8B=E8=A1=8C=E5=8B=95=E3=82=82=E3=81=95=E3=82=8C=E3= =81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=8A=E9=A1=98=E3=81=84=E7=94=B3=E3=81= =97=E4=B8=8A=E3=81=92=E3=81=BE=E3=81=99=E3=80=82 --- CONFIDENTIALITY NOTE: The information in this email is confidential and intended solely for the addressee. Disclosure, copying, distribution or any other action of use of this email by person other than intended recipient, is prohibited. If you are not the intended recipient and have received this email in error, please destroy the original message.