From owner-freebsd-current@freebsd.org Wed Jan 11 19:26:55 2017 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 DB4DACAAD43 for ; Wed, 11 Jan 2017 19:26:55 +0000 (UTC) (envelope-from gonzo@bluezbox.com) Received: from id.bluezbox.com (id.bluezbox.com [45.55.20.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B5DDD1AB4 for ; Wed, 11 Jan 2017 19:26:55 +0000 (UTC) (envelope-from gonzo@bluezbox.com) Received: from [127.0.0.1] (helo=id.bluezbox.com) by id.bluezbox.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87 (FreeBSD)) (envelope-from ) id 1cROXt-000D3z-Ib; Wed, 11 Jan 2017 11:26:54 -0800 Received: (from gonzo@localhost) by id.bluezbox.com (8.15.2/8.15.2/Submit) id v0BJQrPR050218; Wed, 11 Jan 2017 11:26:53 -0800 (PST) (envelope-from gonzo@bluezbox.com) X-Authentication-Warning: id.bluezbox.com: gonzo set sender to gonzo@bluezbox.com using -f Date: Wed, 11 Jan 2017 11:26:52 -0800 From: Oleksandr Tymoshenko To: Jesper Schmitz Mouridsen Cc: freebsd-current@freebsd.org Subject: Re: evdev no /dev/input FreeBSD 12.0-CURRENT #0 r311461 Message-ID: <20170111192652.GA50098@bluezbox.com> References: <9fa91691-adf8-40ca-aed9-40ba67819aa9@schmitz.computer> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9fa91691-adf8-40ca-aed9-40ba67819aa9@schmitz.computer> X-Operating-System: FreeBSD/11.0-RELEASE-p2 (amd64) User-Agent: Mutt/1.6.1 (2016-04-27) X-Spam-Level: -- X-Spam-Report: Spam detection software, running on the system "id.bluezbox.com", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: Jesper Schmitz Mouridsen (jesper@schmitz.computer) wrote: > Hello. > > I'm new to using current and to posting here. > I've a old spare T60 1951-FEG wiith Intel Graphics Media Accelerator 950 > (info: [drm] Initialized i915 1.6.0 20080730 for drmn0 on minor 0). > Intel Core 2 Duo (Merom) T5600. > My goal is to try out weston /wayland from xserver-mesa-next-udev [2] > but on offical branch current > $ kldstat > Id Refs Address Size Name > 1 40 0xffffffff80200000 202f8a0 kernel > 2 1 0xffffffff82231000 1051b0 i915kms.ko > 3 2 0xffffffff82337000 55b0 iicbb.ko > 4 5 0xffffffff8233d000 7050 iicbus.ko > 5 2 0xffffffff82345000 45d0 iic.ko > 6 2 0xffffffff8234a000 8a8c8 drm2.ko > 7 1 0xffffffff823d5000 d1f0 evdev.ko > 8 1 0xffffffff82621000 36f6 ums.ko > 9 1 0xffffffff82625000 4fca ng_ubt.ko > 10 5 0xffffffff8262a000 ce99 netgraph.ko > 11 1 0xffffffff82637000 a67e ng_hci.ko > 12 3 0xffffffff82642000 10e7 ng_bluetooth.ko > 13 1 0xffffffff82644000 e24e ng_l2cap.ko > 14 1 0xffffffff82653000 1dff9 ng_btsocket.ko > 15 1 0xffffffff82671000 3c28 ng_socket.ko > (and cuse4bsd when using webcamd for input) > It works but I have to use webcamd for mouse and keyboard input through > /dev/input/event* as in the "test plan" [3] e.g without evdev. > > I'm on FreeBSD 12.0-CURRENT #0 r311461. My understanding is that > evdev.ko evdev-enables the kernel, but I've got no /dev/input without > webcamd and cuse4bsd and webcamd -N .... > > TL;DR is FreeBSD 12.0-CURRENT #0 r311461 evdev enabled ? [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 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: Wed, 11 Jan 2017 19:26:56 -0000 Jesper Schmitz Mouridsen (jesper@schmitz.computer) wrote: > Hello. > > I'm new to using current and to posting here. > I've a old spare T60 1951-FEG wiith Intel Graphics Media Accelerator 950 > (info: [drm] Initialized i915 1.6.0 20080730 for drmn0 on minor 0). > Intel Core 2 Duo (Merom) T5600. > My goal is to try out weston /wayland from xserver-mesa-next-udev [2] > but on offical branch current > $ kldstat > Id Refs Address Size Name > 1 40 0xffffffff80200000 202f8a0 kernel > 2 1 0xffffffff82231000 1051b0 i915kms.ko > 3 2 0xffffffff82337000 55b0 iicbb.ko > 4 5 0xffffffff8233d000 7050 iicbus.ko > 5 2 0xffffffff82345000 45d0 iic.ko > 6 2 0xffffffff8234a000 8a8c8 drm2.ko > 7 1 0xffffffff823d5000 d1f0 evdev.ko > 8 1 0xffffffff82621000 36f6 ums.ko > 9 1 0xffffffff82625000 4fca ng_ubt.ko > 10 5 0xffffffff8262a000 ce99 netgraph.ko > 11 1 0xffffffff82637000 a67e ng_hci.ko > 12 3 0xffffffff82642000 10e7 ng_bluetooth.ko > 13 1 0xffffffff82644000 e24e ng_l2cap.ko > 14 1 0xffffffff82653000 1dff9 ng_btsocket.ko > 15 1 0xffffffff82671000 3c28 ng_socket.ko > (and cuse4bsd when using webcamd for input) > It works but I have to use webcamd for mouse and keyboard input through > /dev/input/event* as in the "test plan" [3] e.g without evdev. > > I'm on FreeBSD 12.0-CURRENT #0 r311461. My understanding is that > evdev.ko evdev-enables the kernel, but I've got no /dev/input without > webcamd and cuse4bsd and webcamd -N .... > > TL;DR is FreeBSD 12.0-CURRENT #0 r311461 evdev enabled ? Yes, it is. But there is a catch. There are two kinds of drivers: evdev-native and hybrid. evdev-native driver supports only evdev protocol and its only dependency is evdev KLD. hybrid driver supports evdev protocol as an option along with old way of reporting events. So for the latter evdev is compile-time option. And since it's off in default kernel loading evdev would not help. To enable evdev support in ums, ukbd, kbdmux, and sysmouse you will need to rebuild kernel with following option: options EVDEV_SUPPORT device evdev -- gonzo