From owner-freebsd-mobile@freebsd.org Mon Apr 17 20:10:10 2017 Return-Path: Delivered-To: freebsd-mobile@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 0AA7CD429B3; Mon, 17 Apr 2017 20:10:10 +0000 (UTC) (envelope-from vladimir@kondratyev.su) Received: from corp.infotel.ru (corp.infotel.ru [195.170.219.3]) by mx1.freebsd.org (Postfix) with ESMTP id B67D4A9E; Mon, 17 Apr 2017 20:10:08 +0000 (UTC) (envelope-from vladimir@kondratyev.su) Received: from corp (corp.infotel.ru [195.170.219.3]) by corp.infotel.ru (Postfix) with ESMTP id D0EDC1B552; Mon, 17 Apr 2017 23:09:59 +0300 (MSK) X-Virus-Scanned: amavisd-new at corp.infotel.ru Received: from corp.infotel.ru ([195.170.219.3]) by corp (corp.infotel.ru [195.170.219.3]) (amavisd-new, port 10024) with ESMTP id WMLI89BtEFeC; Mon, 17 Apr 2017 23:09:53 +0300 (MSK) Received: from mail.cicgroup.ru (unknown [195.170.219.74]) by corp.infotel.ru (Postfix) with ESMTP id 543901B54D; Mon, 17 Apr 2017 23:09:53 +0300 (MSK) Received: from mail.cicgroup.ru (localhost [127.0.0.1]) by mail.cicgroup.ru (Postfix) with ESMTP id D1AA1574A91; Mon, 17 Apr 2017 23:09:48 +0300 (MSK) X-Virus-Scanned: amavisd-new at cicgroup.ru Received: from mail.cicgroup.ru ([127.0.0.1]) by mail.cicgroup.ru (mail.cicgroup.ru [127.0.0.1]) (amavisd-new, port 10024) with SMTP id sYsRu8r1TvbD; Mon, 17 Apr 2017 23:09:41 +0300 (MSK) Received: from localhost (localhost [127.0.0.1]) by mail.cicgroup.ru (Postfix) with ESMTPA id A900E5749BA; Mon, 17 Apr 2017 23:09:41 +0300 (MSK) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Date: Mon, 17 Apr 2017 23:09:41 +0300 From: Vladimir Kondratyev To: =?UTF-8?Q?Jan_Kokem=C3=BCller?= Cc: current@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: CFT: EVDEV support in psm(4) driver In-Reply-To: <5446ec03-c501-a369-01fc-e58a7d8712d9@gmail.com> References: <5fa9225de944d6cdac0b7e5749b452a9@kondratyev.su> <5446ec03-c501-a369-01fc-e58a7d8712d9@gmail.com> Message-ID: <4a108371daf4c13dcc8be953ffccd2d5@kondratyev.su> X-Sender: vladimir@kondratyev.su User-Agent: Roundcube Webmail/1.2.2 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Apr 2017 20:10:10 -0000 On 2017-04-17 13:59, Jan Kokem=C3=BCller wrote: > Hi Vladimir, > this patch works great for me! Great! > I am not using xf86-input-mouse or xf86-input-keyboard. You stepped on minefield. xf86-input-keyboard does things that should be done by xorg-server like terminal blanking, disabling keybuffering and so on. I had seen (and heard) some funny effects before copied required ~20 lines of code from xf86-input-keyboard to xorg-server. > - TrackPoint scrolling holding the middle button Thanks for report. I was not able to test trackpoint due to lack of=20 hardware. > The only thing that doesn't work out of the box is the mouse pointer > on the VT console. It wouldn't be hard though to write a small tool > that uses libinput to translate Evdev events into CONS_MOUSECTL ioctls > needed for the VT pointer. Just run moused on /dev/psm0. Unlike usermode drivers like=20 xf86-input-synaptics in psm mode, in-kernel driver keeps psm0 device unbusied in sysmouse=20 mode. > Some comments: > - PS2_MOUSE_SYNAPTICS_PRODUCT should be 0x0007, not 0x0009 > (http://lxr.free-electrons.com/source/drivers/input/mouse/psmouse.h#L86= ) > - The TrackPoint should be added with product id 0x000A as on Linux > and with the INPUT_PROP_POINTING_STICK Evdev property set > - I think it would be better if the same Evdev device names were > exposed as on Linux (for example "SynPS/2 Synaptics TouchPad"). Many > scripts using xinput to change device properties depend on the Linux > device names. >=20 > I've added a patch and comments to https://reviews.freebsd.org/D10265 . Patch looks good to me. I will merge it after small refactoring. Thank you! --=20 WBR Vladimir Kondratyev