From owner-freebsd-current@freebsd.org Fri Aug 12 14:32:52 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 D9E8DBB7895 for ; Fri, 12 Aug 2016 14:32:52 +0000 (UTC) (envelope-from jan.kokemueller@gmail.com) Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com [IPv6:2a00:1450:400c:c09::22a]) (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 6CEEC1695 for ; Fri, 12 Aug 2016 14:32:52 +0000 (UTC) (envelope-from jan.kokemueller@gmail.com) Received: by mail-wm0-x22a.google.com with SMTP id q128so31711117wma.1 for ; Fri, 12 Aug 2016 07:32:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=zg3NcKagTdzGCZqZP4BtuA5FkDeYjcu9j39XhhW6Oa4=; b=kDlq2lRFUy62qOLq56oD1CIZuIsGOOeEFt3w7oQSd8XOI1E+YTkWVNTmQA2oWPlxyB 0IBE+9bz1XjvCtj9KseEOL0vy9MO1mmiSmaobYzg3rjHIA2sDsFbnLh3B8r19Vys/KWC hfeLm9GUOLHyqKxHPFUATJ1JdT/Wr1DwxreRaVtHH+D0lEDKHBtWJIAM6MKVUWu0IRTF WxKiWHQxUvuuFsfSXMKOpMCTHyXOtRUdqXZex/E+0TYcB4HPmBZilkHQiksYSng7JYgd U3Lv8DHsERbOEexTQ7IUK28eSzi/S+QY1l7G4UajTgRa+tg7lPOJM5wWHJxFvT7V0R2b T3Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=zg3NcKagTdzGCZqZP4BtuA5FkDeYjcu9j39XhhW6Oa4=; b=EzaihjwG3K+gdnNt0Swg+pN+63sI3WbmpwWXdPzCHtdwKtgnuPTB+ZCXrUT5zzD9E1 /0IP8lVljMBksWXtEWrWFPGLY4JhDuRpByS1kbLlSqCOXYNAUmIb0OvksSqNU43mX6QB KFos1mM4cbaSQnfZfzlylzz+ZllDiRc4QLM4+iN5WEYCVVzF/Rmpras+ZpqJG9SjnVA6 DHKLZkQr+3qNdg5bZhV3N9H14DlMSecXrpX5EmwzcoYdKoxy6tGP5m9Xkj9rvZp37qhS n6Hp16WP7YZqpMIDdGApPNXKBkXrokgwFwsyvyPHdNa1UVnPQqzqfFAlHir8Uqy62Mis UCJQ== X-Gm-Message-State: AEkoouvWdkfKH1lui1bxuO91+cvPBXwmxi6JUi2ETV734J7YUTYmnnNlGRJgI4UDLni55g== X-Received: by 10.194.149.113 with SMTP id tz17mr19110534wjb.64.1471012370712; Fri, 12 Aug 2016 07:32:50 -0700 (PDT) Received: from ?IPv6:2001:470:1f15:b1f:bdb3:7df:2a05:22c7? ([2001:470:1f15:b1f:bdb3:7df:2a05:22c7]) by smtp.googlemail.com with ESMTPSA id wc3sm7783912wjc.47.2016.08.12.07.32.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Aug 2016 07:32:49 -0700 (PDT) Subject: Re: Wayland work status To: "Lundberg, Johannes" , FreeBSD Current References: From: =?UTF-8?Q?Jan_Kokem=c3=bcller?= Message-ID: <1df3c73a-dab3-d688-c56a-ed7c4361a9bf@gmail.com> Date: Fri, 12 Aug 2016 16:32:49 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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: Fri, 12 Aug 2016 14:32:52 -0000 Hi, On 12.08.16 01:18, Lundberg, Johannes wrote: > x11/libinput (removed udev-stubs and linked to libudev-devd) If you feel adventurous, you can try out the current state of the libinput port here (1.4.0): https://github.com/jiixyj/libinput I haven't yet tested the port with the evdev kernel work, though. I've been using my evdev implementation in userspace which uses cuse to create /dev/input/event* devices (https://github.com/jiixyj/evdevfbsd). I needed to adjust a few ioctl defines from the linux/input.h header to make some features work. The way Linux defines EVIOCGMTSLOTS and EVIOCGRAB didn't work with cuse. The kernel evdev implementation may work slightly differently, so that's something to look out for. I've moved the udev-stubs.{c,h} out of the port into a separate library, but libudev-devd (https://github.com/wulf7/libudev-devd) certainly looks more mature! The libinput code itself isn't that different from upstream anymore. I've removed the epoll->kqueue porting work and written a small epoll wrapper instead that implements everything libinput/libevdev and possibly wayland needs (https://github.com/jiixyj/epoll-shim). This isn't integrated yet into the build system of the libinput port, though. So you have to do something like 'CFLAGS="-I ~/git/epoll-shim/include -L ~/git/epoll-shim -lepoll-shim -pthread" LDFLAGS="-pthread -lrt"' when configuring libinput. All this can be used with the xf86-input-libinput driver to get smooth and horizontal scrolling in X, which is awesome! -- Jan