From owner-freebsd-x11@FreeBSD.ORG Sun Apr 19 17:50:07 2015 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9AB36A80 for ; Sun, 19 Apr 2015 17:50:07 +0000 (UTC) Received: from mail-wi0-x22d.google.com (mail-wi0-x22d.google.com [IPv6:2a00:1450:400c:c05::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 318BC82F for ; Sun, 19 Apr 2015 17:50:07 +0000 (UTC) Received: by wicmx19 with SMTP id mx19so23896649wic.1 for ; Sun, 19 Apr 2015 10:50:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=0QdB0GGtyxmewFoMs1G+7TlqmoKZWXrvP1b1EZ+hOtU=; b=VSiuLPiXKFVQednXaWP/T9FFvta7D+Vl2bDA/TcAKV/zByERNIJTpJi7//Kv8gDSZh ymGg7TDf/WKwOxfs3KfFLpoN0euZEJxvF8Yaug1rKFe8NGyX8okQRZnBgq9tkKFr4txp p4mN7krIjXUIFskumv3TSfOsjQMaXG1rYkfaXC+OR+Ey+4Pf6235PA0RQiWDIsVq8RWk lhCbMjSoXsPKhOTv9yr/rr7ZU23fqTvB4sCOPB9Fo/L8pLI3mGLTZLjQZpFs0FzpIemY OuINSRQQ/qNNTnMMDVpdch616ZTNMesa/yGvOMw1E7uSx9gQqmRB5tkyc+bJdpcEyOc8 yjRA== X-Received: by 10.194.187.16 with SMTP id fo16mr24357461wjc.86.1429465805303; Sun, 19 Apr 2015 10:50:05 -0700 (PDT) Received: from ?IPv6:2001:470:1f15:b1f:2c4b:3537:2f58:deab? ([2001:470:1f15:b1f:2c4b:3537:2f58:deab]) by mx.google.com with ESMTPSA id dm6sm11823364wib.22.2015.04.19.10.50.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Apr 2015 10:50:04 -0700 (PDT) Message-ID: <5533EACB.6010409@gmail.com> Date: Sun, 19 Apr 2015 19:50:03 +0200 From: =?UTF-8?B?SmFuIEtva2Vtw7xsbGVy?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-x11@freebsd.org Subject: Re: Wayland shm? References: <553219CF.7010901@dumbbell.fr> In-Reply-To: <553219CF.7010901@dumbbell.fr> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Apr 2015 17:50:07 -0000 > What blocks us today with Wayland compositor is: > o libinput which we need to port > o improvements to the Mesa ports > > The first item is not started yet, though there is much interest in it, > especially for GNOME. There is a completed GSoC about adding evdev to > FreeBSD which can help here. Otherwise, it should be doable to add > support for our input stack (though after discussing with upstream > developers, there is little chance it will be integrated upstream). Hi, I've done some initial porting of libevdev and libinput that may be of help: https://github.com/jiixyj/libevdev https://github.com/jiixyj/libinput I've also written a simple evdev implementation in userspace (no keyboard support yet, though): https://github.com/jiixyj/evdevfbsd I've got it to expose my Thinkpad trackpoint/touchpad as devices /dev/input/event1 and /dev/input/event0, respectively. In X11, xf86-input-evdev and xf86-input-synaptics (with evdev backend) successfully pick them up. Only small tweaks are needed: https://github.com/jiixyj/xf86-input-evdev https://github.com/jiixyj/xf86-input-synaptics Also you need something like this in xorg.conf: Section "InputDevice" Identifier "Mouse0" Driver "evdev" Option "Device" "/dev/input/event1" EndSection Section "InputDevice" Identifier "Mouse1" Driver "synaptics" Option "Device" "/dev/input/event0" EndSection xf86-input-libinput should also work, but I barely tested that. Sorry for not posting about this earlier, but this is still very much experimental and probably won't even work for anyone except me right now… Still, it might be a good starting point for some "serious" porting work. I'll try to polish it up a bit and write some documentation. Cheers, Jan