From owner-freebsd-mobile@FreeBSD.ORG Thu Jun 19 01:32:36 2014 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EAAD169C for ; Thu, 19 Jun 2014 01:32:35 +0000 (UTC) Received: from nm16.bullet.mail.bf1.yahoo.com (nm16.bullet.mail.bf1.yahoo.com [98.139.212.175]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 984B02673 for ; Thu, 19 Jun 2014 01:32:35 +0000 (UTC) Received: from [98.139.214.32] by nm16.bullet.mail.bf1.yahoo.com with NNFMP; 19 Jun 2014 01:32:33 -0000 Received: from [98.139.211.205] by tm15.bullet.mail.bf1.yahoo.com with NNFMP; 19 Jun 2014 01:32:33 -0000 Received: from [127.0.0.1] by smtp214.mail.bf1.yahoo.com with NNFMP; 19 Jun 2014 01:32:33 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1403141553; bh=0KzHR/QM7i4ApWmTv0e9ksRLarH6f6v/0EeGJSgwe+M=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=PRvJEW6NkH/PGcV7H35+6Q9Ej8iDkSgqYs/SsoFNRPGbW5TYTipYhzSf3A0lmaJ5Yl0iezcpohDnrsY6mOKalCBBEWeOUl/As5+ziUi4fXVsqBszrXKPj6jWt1bZFuD+RlWHfultYrVfg4KNlkYDgGgOyi8I3uuqbmS9gIH/e4k= X-Yahoo-Newman-Id: 679680.17155.bm@smtp214.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: pmk7rBIVM1k5OOu7TTwy0ODKMtwEWYWmv88odBxY5dPWqnx kL5LcScsCa06RHx3dGYDXsceXjx9lI3tg2qCn96NfZa0YaUMa_Q36Ri5H1TB QWKuNuDHni15NZtbd7BDAkf37_XQFW9xe8JHDKFCO9pcGLdDqXwN5kUmU.W0 JGG33RRAKXicvyNLE_X0vD3rqSNqZIerIzaJYFiYKrQZybk8QkLXjMwmgRxU pBLW.xDt15ahouTi6HpjMS7lgbJcgpYH9mRpsI_SvxfKfbko1SLVmZ5eyFQ9 6Q3DX2qm2eYXPPtLDRXB6EgfVupWN6aviM4zZy5XMyGZisO2WWnFlDvtBx5R cxAn7q7GmqIgRc_CUziX5yoSUraC7g_YgwQr0etJiQTLS._vxg_QRS5FmniF CSxcCt7FrC6pvEacyk4Y8aeD.fmF8MgOgAxK8dT1tLgNOdbp_jDlO53E_mtM A6Klu41zyHSUi69rNrVLEM5gMEtJY_L8G3J74VIipmGkF4EB2dnHkrra9qJn 1voI1QkTUjAQJ6nZML2TAXMPYUWUqo_yyvkwY_zh2CL9tNYkNeKv1cGdHIrY jGLEHNaT.LSEp_bGZAto66iebkMqYlBgILjYymdaYBYJcwQ-- X-Yahoo-SMTP: 9sPoSQ2swBBlERuQ.0vs8XLc_MeClW0- X-Rocket-Received: from [192.168.1.134] (Scoobi_doo@99.62.101.19 with plain [98.138.105.21]) by smtp214.mail.bf1.yahoo.com with SMTP; 18 Jun 2014 18:32:33 -0700 PDT Message-ID: <53A23DAF.7030201@yahoo.com> Date: Wed, 18 Jun 2014 21:32:31 -0400 From: Anthony Jenkins User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Ivan Rokotov Subject: Re: [Patch] psm(4) ClickPad detection (was Re: Lenovo W540 so far) References: <539DA73B.7050709@metricspace.net> <1402931204.35984.YahooMailNeo@web140703.mail.bf1.yahoo.com> <58DCAA2E-44DA-48F3-87B3-366301F55138@metricspace.net> <53A02532.60201@metricspace.net> <53A03BAF.3020807@yahoo.com> <53A080D3.2000207@yahoo.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Eric McCorkle , "freebsd-mobile@freebsd.org" X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2014 01:32:36 -0000 Try this patch of x11-drivers/xf86-input-synaptics to fix Synaptics detection - it's from my old patchset, leaving off the sysutils/hald stuff. [root@ajenkins-hplaptop /usr/ports/x11-drivers/xf86-input-synaptics]# svn diff Index: files/patch-src__psmcomm.c =================================================================== --- files/patch-src__psmcomm.c (revision 0) +++ files/patch-src__psmcomm.c (working copy) @@ -0,0 +1,22 @@ +--- ./src/psmcomm.c.orig 2013-05-12 19:18:02.000000000 -0400 ++++ ./src/psmcomm.c 2013-09-18 08:56:55.344635632 -0400 +@@ -165,11 +165,18 @@ + return PS2ReadHwStateProto(pInfo, &psm_proto_operations, comm, hwRet); + } + ++static Bool ++PSMAutoDevProbe(InputInfoPtr pInfo, const char *device) ++{ ++ return pInfo && pInfo->name && !strcmp(pInfo->name, "PS/2 Mouse") && ++ device && !strncmp(device, "/dev/psm", 8); ++} ++ + struct SynapticsProtocolOperations psm_proto_operations = { + NULL, + NULL, + PSMQueryHardware, + PSMReadHwState, +- NULL, ++ PSMAutoDevProbe, + NULL + }; Property changes on: files/patch-src__psmcomm.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property On 06/17/2014 17:26, Ivan Rokotov wrote: > 2014-06-17 19:54 GMT+02:00 Anthony Jenkins : >> On 06/17/2014 13:30, Ivan Rokotov wrote: >>> Anyway, I tested your patch. This is from my logs. (It also blocked my >>> keyboard under X - I don't know if I had to rebuild my keyboard and >>> synaptics drivers.) >> Weird... shouldn't have any affect on your keyboard...I'm typing on my laptop now! >> Can you grep(1) your kernel messages for 'atkbd' and grep the Xorg log for >> '\(keyboard\|kbd\)'? > Sure. > > (Some of the messages are from my attempt to plug in a USB keyboard to > be able to go back to the console. :)) > > % grep -i '\(keyboard\|kbd\)' /var/log/messages > Jun 17 19:02:24 thor kernel: kbd1 at kbdmux0 > Jun 17 19:02:24 thor kernel: atkbdc0: > port 0x60,0x64 irq 1 on acpi0 > Jun 17 19:02:24 thor kernel: atkbd0: irq 1 on atkbdc0 > Jun 17 19:02:24 thor kernel: kbd0 at atkbd0 > Jun 17 19:02:24 thor kernel: atkbd0: [GIANT-LOCKED] > Jun 17 19:02:24 thor kernel: psm0: irq 12 on atkbdc0 > Jun 17 19:12:16 thor kernel: ukbd0: rev 1.10/2.10, addr 2> on usbus0 > Jun 17 19:12:16 thor kernel: kbd2 at ukbd0 > Jun 17 19:12:16 thor devd: Executing '/etc/rc.d/syscons setkeyboard /dev/ukbd0' > Jun 17 19:12:27 thor kernel: ukbd0: at uhub0, port 2, addr 2 (disconnected) > Jun 17 19:12:27 thor devd: Executing '/etc/rc.d/syscons setkeyboard /dev/kbd0' > > % grep -i '\(keyboard\|kbd\)' /var/log/Xorg.0.log > [ 368.215] (**) |-->Input Device "Keyboard0" > [ 368.224] (II) LoadModule: "kbd" > [ 368.225] (II) Loading /usr/local/lib/xorg/modules/input/kbd_drv.so > [ 368.225] (II) Module kbd: vendor="X.Org Foundation" > [ 368.377] (II) Initializing built-in extension XKEYBOARD > [ 368.743] (II) config/hal: Adding input device AT Keyboard > >>> In Xorg log I got >>> [ 368.692] (--) synaptics: Touchpad0: synaptics touchpad found >>> [ 368.692] (--) synaptics: Touchpad0: no supported touchpad found >>> [ 368.692] (EE) synaptics: Touchpad0: Unable to query/initialize >>> Synaptics hardware. >>> but again, I didn't recompile any drivers. >> Yeah I wanna say that's because xf86-input-synaptics is talking to /dev/psm0 >> instead of /dev/sysmouse, but that doesn't sound right. Anyway that's what I'm >> looking at now - the devd patch to x11-servers/xorg-server, and next is >> x11-drivers/xf86-input-synaptics. > Good. :) > >> If you're handy with code you could probably find the code in xf86-input-synaptics >> that balks at the Synaptics device. My goal is having the user install these two >> packages on a touchpad laptop and have it just DTRT and correctly load the >> Synaptics driver. > I could probably find that code, but that's all. :) Anyway, as always, > I'm more than willing to test anything you find useful. > > Ivan