From owner-freebsd-x11@freebsd.org Thu Sep 1 18:14:59 2016 Return-Path: Delivered-To: freebsd-x11@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 2EC98BCB5A4 for ; Thu, 1 Sep 2016 18:14:59 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) Received: from nm11-vm1.bullet.mail.bf1.yahoo.com (nm11-vm1.bullet.mail.bf1.yahoo.com [98.139.213.152]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E9D911CA for ; Thu, 1 Sep 2016 18:14:58 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1472753691; bh=7R4c0g3AKnhQSKfEHHbt75hco66JocKOm7bHVWbl/N8=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From:Subject; b=o9yNFs7ayWyp404yHS9zjthgcKxt+m+ZzmajB9j3oh/nBx5Dh8h7l4/Fr8Mz6E8/G7RMdPoavjP/l7JLx/Eeq1akVSzzJ2bL/Tkg3Pvqh2YOC8Tnb67QLZ9KBX+3vFtvzjXGATBPOxarmp+zCUNphFHqDJLvJDORek4RNKiZJjUpZf+QhtbtqWI9BrdziVjE/LuscHRHsP9mBaWHotqF8QrmaMq2Ux6I2xmJYqZ6FjGfTJzbLqv32/GlyXa7KiRpAcIt7XAbymyv0d46mXcPeLplnUUWrW9tF/OI+zD7Adc5QGCs3S7umrMQP/1XseLJ+QYCJxnox0kzeAV3GqcWeQ== Received: from [98.139.170.179] by nm11.bullet.mail.bf1.yahoo.com with NNFMP; 01 Sep 2016 18:14:51 -0000 Received: from [98.139.211.192] by tm22.bullet.mail.bf1.yahoo.com with NNFMP; 01 Sep 2016 18:14:51 -0000 Received: from [127.0.0.1] by smtp201.mail.bf1.yahoo.com with NNFMP; 01 Sep 2016 18:14:51 -0000 X-Yahoo-Newman-Id: 408474.88289.bm@smtp201.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: dXfFyHcVM1lG424jbXAta7kWDR3RNlYs494gJVDYkjr_WOi .IsV3ptw3sk14G5Kc.eLhFN1Knx3J83O.FISK2ZeRfzl5uBoaC7ZtxM1MWrh XHVbwnsjLzGYNk2cz4EiJ5jaObz7akbjIuAHEFkb0a3a.5sHkUvMkAh.wJGs Szl.6oifgw483SCi8UE1WV1eKHC41RRtWkEOmi9dyRTl5CDOW6729EieifjY oXFDM1FsUobUN7HntW3TACPlv.9cit1lA640.RBNcHCV4B7xNr2R_MYi_rEc 0cA1JbAgAbrD5eYNo6ad88yHKDLl6yzm8o6KA884TyLHvMugc8TbI39EI81N 8FGLgqqVsZu.SsVDiWtHCDFsL_9n7AS_024LwFITMLwl8CRDImK8nvwNt1KU vfm1i01HhlzyqE4kdTOH4voZLtGsiOf.Dr6YJvbQaWJ.bzCLgdaKLu_DW2oJ fMq7TI4KX1FM3s_Fan9gx10ZzZp7ODW.FRKQh_sx1s3Xj_0TfQ28xDXSboqA mgl9FAr6qd4.rDec520wQAGfSYvC3AH8gPdlC5Rk2ewhNpFQ- X-Yahoo-SMTP: 9sPoSQ2swBBlERuQ.0vs8XLc_MeClW0- Subject: Re: Problem with touchpad To: abi , Arto Pekkanen References: <3ff36b68-bc63-b3f9-ffb7-ade8c6b3e690@abinet.ru> <255e5a1340573719da0c32f870523449@kapsi.fi> <63738d79-fa1e-7401-9f07-242ccbf2f40c@abinet.ru> <1d85bba2228e2a4b9c2ccd7721ccffe6@kapsi.fi> <670f7ff4-81cb-af50-be2a-5a97318dd5e8@abinet.ru> Cc: freebsd-x11@freebsd.org From: Anthony Jenkins Message-ID: <3009df27-0b1a-a6c2-44e8-d8cfcb31307f@yahoo.com> Date: Thu, 1 Sep 2016 14:14:49 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <670f7ff4-81cb-af50-be2a-5a97318dd5e8@abinet.ru> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2016 18:14:59 -0000 Sorry for late reply, and for top-posting (trying to stay consistent). Pointing devices on FreeBSD are typically handled by a number of drivers, including: * ums(4) - A USB HID device which is a mouse class * psm(4) - A serial mouse/touchpad attached to PS/2 keyboard port moused(8) can detect these devices and create composite pseudodevice /dev/sysmouse which aggregates the events from the devices it manages.=20 The problem with psm(4) touchpad devices and moused(8) is that psm(4) can be in "Synaptics" mode which makes it incompatible with moused(8).=20 So if you boot with the hw.psm.synaptics_support=3D"1" tunable and moused(8) enabled, (unless this has changed recently) you get weird behavior from the touchpad and none of the gestures work. The devd(8) interface to x11-servers/xorg-server waits for devd(8) to notify the X server that a device has attached/detached. The notification includes a simple path under /dev (e.g. /dev/ums0, /dev/psm0 or /dev/sysmouse). The multi-mode behavior of psm(4) makes the current implementation of the devd interface awkward, because each device path maps to a single driver (e.g. "/dev/ums*" -> "mouse", "/dev/psm*" -> "mouse", "/dev/sysmouse" -> "mouse", "/dev/vboxguest" -> "vboxmouse", etc.) My implementation maps each new device notification to a function to determine which driver should be attached to each device node. For example, the function for "/dev/psm" checks for the presence of a sysctl that indicates what mode psm(4) is in. Even with the current implementation of xorg-server's devd stuff, all this should "just work" when using moused(8) and USB mice. It's multimode devices like psm(4) which confuse the current implementation. Anthony On 08/30/2016 02:43 AM, abi wrote: > How can it be - all devices attached to one devd node? What if I want > different drivers? synaptics for touchpad and generic mouse for USB ? > Not in this particular case, but generally speaking. > > On 29/08/2016 19:19, Arto Pekkanen wrote: >> I never used the psm device directly with X.org, because >> /dev/sysmouse (which operated by moused) is the the standard, >> multiplexed interface for mice and touchpads. Every touchpand and >> mice attached will be handled by moused. >> >> Take out all moused -related stuff from your rc.conf, remove ALL your >> X.org input device configuration. Then try again. Ie. don't touch the >> vanilla settings. >> >> USB mice work out of the box without any configuration. Devd will >> notify X.org, which then configures the mice etc. >> >> abi kirjoitti 29.08.2016 16:34: >>> I'm not sure what is attached to /dev/sysmouse >>> >>> I suspect USB one, but I disabled sysmouse in xorg configuration for >>> sure >>> >>> Section "InputClass" >>> Identifier "VanishBastardo" >>> MatchDevicePath "/dev/sysmouse" >>> Option "Ignore" "true" >>> EndSection >>> >>> and >>> >>> moused_enable=3D"NO" >>> moused_nondefault_enable=3D"NO" >>> >>> [ 17.061] (II) config/devd: adding input device (null) >>> (/dev/sysmouse) >>> [ 17.061] (**) sysmouse: Ignoring device from InputClass >>> "VanishBastardo" >>> >>> So, if both devices clashing for 1 node, no driver attached to it >>> anyway. Also, I tried CURRENT - it has the same problem. >>> >>> >>> >>> On 29/08/2016 15:16, Arto Pekkanen wrote: >>>> With a PS2 touchpad you could also try this: >>>> https://www.freebsd.org/doc/faq/x.html#idp64092272 >>>> >>>> abi kirjoitti 27.08.2016 03:51: >>>>> Hello, >>>>> >>>>> I have strange issue with Dell XPS 13 (Skylake) touchpad. It works >>>>> until xorg restart. After restart, buttons become unresponsive, the= >>>>> most common is if button remains pressed somehow. >>>>> >>>>> I found simple workaround - toggle touchpad with xinput. However, o= n >>>>> xinput enable system hangs - screen is not updated and it ignores >>>>> keyboard input until I use touchpad. After that, system and touchpa= d >>>>> becomes operational. Until restart. >>>>> >>>>> Synaptics driver has the same problem. >>>>> Touchpad in generic ps/2 mode (without hw.psm.synaptics_support=3D1= ) >>>>> works. >>>>> >>>>> I made a search and found this commit >>>>> http://svnweb.freebsd.org/base?view=3Drevision&revision=3D281440 in= >>>>> CURRENT release notes. However it's pretty old and should be includ= ed >>>>> in 11. >>>>> >>>>> FreeBSD 11.0-RC1 >>>>> Xorg log >>>>> https://gist.github.com/abishai/844c3221d9388a5a6f8c65bd13ad2d88 >>>>> USB receiver is generic wireless mouse >>>>> Mouse is touchpad >>>>> No idea what is sysmouse. I have moused_enable=3D"NO" and >>>>> moused_nondefault_enable=3D"NO" in /etc/rc.conf >>>>> >>>>> I appreciate any help or suggestions :) >>>>> _______________________________________________ >>>>> freebsd-x11@freebsd.org mailing list >>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-x11 >>>>> To unsubscribe, send any mail to >>>>> "freebsd-x11-unsubscribe@freebsd.org" >>>> >> > > _______________________________________________ > freebsd-x11@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-x11 > To unsubscribe, send any mail to "freebsd-x11-unsubscribe@freebsd.org" --=20 Anthony Jenkins