From owner-freebsd-mobile@FreeBSD.ORG Tue Jun 17 17:57:36 2014 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DEDDE414 for ; Tue, 17 Jun 2014 17:57:36 +0000 (UTC) Received: from nm18-vm0.bullet.mail.bf1.yahoo.com (nm18-vm0.bullet.mail.bf1.yahoo.com [98.139.213.138]) (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 8F70629FE for ; Tue, 17 Jun 2014 17:57:36 +0000 (UTC) Received: from [98.139.214.32] by nm18.bullet.mail.bf1.yahoo.com with NNFMP; 17 Jun 2014 17:54:30 -0000 Received: from [98.139.211.198] by tm15.bullet.mail.bf1.yahoo.com with NNFMP; 17 Jun 2014 17:54:29 -0000 Received: from [127.0.0.1] by smtp207.mail.bf1.yahoo.com with NNFMP; 17 Jun 2014 17:54:29 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1403027669; bh=fZrfKAW2eRmFzMWHzjoGB2P9Co1ykHW8Qnca9Q9DAec=; 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=cjaEwWi/ov5GWlNcM/rUZBbtzkC81rOn+yVwtJ3fSnpwHSXSx6yZxODvjhJ2dL4yUywehNYZq6H+gOwKvsN7yiCd5xDHqMIZaJPUITTM3LTqOcSzxXmGYTsI80/X54XciHfWkWchHveQmWYwwh2t2onFXX0bWb+p3usWdHoNhnE= X-Yahoo-Newman-Id: 947551.56187.bm@smtp207.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: x4e81EsVM1k4xT.QdtWze5bDlU_S0ETxAbZ9H9RwHDdmDkZ _UGdGWx8xn64Ff5A238jj5.U63nznDKOjiz2o79UM.6Y26WXRyu9l0GyrIca q7wSGbU8tvbLVNeNXTaDBffC5yPkjipZeQNKCzvACOwfsbvVZIScxwC5SC6D JA423ry1A6B6rwfNjsjXRlUorrMQiozZJYsuuak4X0zhJGPAFg_wXWgttxZq 1uIG2EN4GhCY1CiPsE.ShA.Yz0LO2zKewri4nYUqpuNuvRytACJwFnDSMVHI H8_7T_ADqGUejCsSPl7WTbtWwf1XUZSRQPMqkWg6rcLOaWyhZxLtbD9CUrsP OSZ0PbUPiZb8Dbs3b2DKz3eEBSecxBkFTS9m8IBkRSAzwUtmZpbwZVhSy589 wrnUQffhg2QWggr72SEakL9GHvoYMDNWOFZJwsn3HnxZzPBTecj6WYY05xd2 agbhakzF_4ZDutVMANbsek7ENFT6HCTpZzRSLfWfgzL1YJcQ8gFpWn2Y3bKI Kz246Q0nCCv732r2L7wPOwwYd0lB_FFKBUF9_A.gR4CD18XVgpNv8ZU5y0eG O89C17IVVSATOtRbBMekwmeeSCXYGUQf4aw3WYGL0HNK_ZJohC21U X-Yahoo-SMTP: 9sPoSQ2swBBlERuQ.0vs8XLc_MeClW0- X-Rocket-Received: from [10.82.239.245] (Scoobi_doo@64.102.254.33 with plain [63.250.193.228]) by smtp207.mail.bf1.yahoo.com with SMTP; 17 Jun 2014 10:54:29 -0700 PDT Message-ID: <53A080D3.2000207@yahoo.com> Date: Tue, 17 Jun 2014 13:54:27 -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> 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: Tue, 17 Jun 2014 17:57:36 -0000 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\)'? [root@ajenkins-hplaptop /usr/ports/x11-servers/xorg-server/work/xorg-server-1.12.4]# bzcat /var/log/messages.0.bz2 | grep atkbd Jun 17 08:08:39 ajenkins-hplaptop kernel: atkbdc0: port 0x60,0x64 irq 1 on acpi0 Jun 17 08:08:39 ajenkins-hplaptop kernel: atkbd0: irq 1 on atkbdc0 Jun 17 08:08:39 ajenkins-hplaptop kernel: kbd0 at atkbd0 Jun 17 08:08:39 ajenkins-hplaptop kernel: atkbd0: [GIANT-LOCKED] Jun 17 08:08:39 ajenkins-hplaptop kernel: psm0: irq 12 on atkbdc0 [root@ajenkins-hplaptop /usr/ports/x11-servers/xorg-server/work/xorg-server-1.12.4]# grep '\(keyboard\|kbd\)' /var/log/Xorg.0.log [ 20.428] (==) |-->Input Device "" [ 20.428] (==) No Layout section. Using the default keyboard configuration. [ 20.460] (II) LoadModule: "kbd" [ 20.461] (II) Loading /usr/local/lib/xorg/modules/input/kbd_drv.so [ 20.461] (II) Module kbd: vendor="X.Org Foundation" [ 20.806] (II) Using input driver 'kbd' for '' [ 20.806] (**) : always reports core events [ 20.806] (**) : always reports core events [ 20.807] (II) XINPUT: Adding extended input device "" (type: KEYBOARD, id 7) > psm0: current command byte:0063 > Synaptics Touchpad v8.1 > Model information: > infoRot180: 0 > infoPortrait: 0 > infoSensor: 1 > infoHardware: 113 > infoNewAbs: 1 > capPen: 0 > infoSimplC: 1 > infoGeometry: 1 > Extended capabilities: > capExtended: 1 > capMiddle: 0 > nExtendedQueries: 5 > capPassthrough: 0 > capSleep: 0 > capFourButtons: 0 > capMultiFinger: 1 > capPalmDetect: 1 > Extended capabilities (0x0c query): > capClickPad: 1 > capClickPad2Btn: 0 > capMaxDimensions: 1 > capMinDimensions: 1 > capAdvGesture: 0 > capReducedFiltering: 1 > capImageSensor: 1 > Additional Buttons: 0 > psm0: found Synaptics Touchpad > psm0: irq 12 on atkbdc0 > psm0: [GIANT-LOCKED] > psm0: model Synaptics Touchpad, device ID 0-00, 3 buttons > psm0: config:00004000, flags:00000008, packet size:6 > psm0: syncmask:c0, syncbits:00 > > 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. > > Thanks! > Ivan 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. 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. Anthony