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

Anthony Jenkins Scoobi_doo at yahoo.com
Thu Jun 26 20:09:58 UTC 2014


On 06/19/2014 11:20, Ivan Rokotov wrote:
> 2014-06-19 15:47 GMT+02:00 Anthony Jenkins <scoobi_doo at yahoo.com>:
>> The keyboard not working bugs me - you might try doing a 'make
>> buildworld/installworld' as per /usr/src/UPDATING (or just copy
>> /usr/src/sys/sys/mouse.h to /usr/include/sys/mouse.h) and rebuild
>> x11-drivers/xf86-input-{mouse|keyboard|synaptics}.
> Thank you, this was the problem. Sorry, I overlooked that I have to
> copy the new mouse.h to /usr/include/sys before rebuilding the
> synaptics driver. Now (with patched kernel and patched driver) I have
> everything as before: clickpad property is detected during boot, and
> working keyboard and touchpad in X (without real click possibility -
> as far as I understand, it's expected).
>
> So now I can move to the further tests. :)
>
>> Is your X server compiled with devd(8) support (experimental) or hald support?
> Default options:
> [x] AIGLX  Compile with Accelerated Indirect GLX support
> [x] SUID   Install the Xorg server with setuid bit set
> -------------------------------- CONF ------------------------------
> (*) HAL    Compile with HAL config support
> ( ) DEVD   Use devd for autoconfiguration of input devices (experi)
>
>> I'll probably need your entire /var/log/Xorg.0.log to see why it's not working.
>> Can you kill your X server, then run
> So I guess it's not needed for now.
>
> I.

Quick status update:
I can't (yet) get xorg-server to use the Synaptics driver when both xf86-input-synaptics *and* xf86-input-mouse are installed; the "<default pointer>" fake device apparently probes for /dev/psm0 and loads the xf86-input-mouse driver.  I'm not sure how other OSes handle this.  I'll try booting Kubuntu sometime and see what its logfile says.

Really, if the OS vendor configures X.org to use its own hardware detection subsystem, I (e.g. udev, devd, hald, etc.) believe X.org shouldn't have any default devices and should disable any default drivers.  X.org is essentially cutting in front of the Synaptics driver, which could better handle our synaptics device.  Also, nowadays who actually has a true PS/2 mouse?  Synaptics should be the default driver for the PS/2 device.  Who would I whine at for this stuff - the FreeBSD X team? :-)

Anthony


More information about the freebsd-mobile mailing list