[Patch] psm(4) ClickPad detection (was Re: Lenovo W540 so far)

Anthony Jenkins Scoobi_doo at yahoo.com
Tue Jun 17 17:57:36 UTC 2014


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 at 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: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
Jun 17 08:08:39 ajenkins-hplaptop kernel: atkbd0: <AT Keyboard> 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: <PS/2 Mouse> irq 12 on atkbdc0

[root at 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 "<default keyboard>"
[    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 '<default keyboard>'
[    20.806] (**) <default keyboard>: always reports core events
[    20.806] (**) <default keyboard>: always reports core events
[    20.807] (II) XINPUT: Adding extended input device "<default keyboard>" (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: <PS/2 Mouse> 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


More information about the freebsd-mobile mailing list