[PATCH] Synaptics & devd(4) support

Anthony Jenkins Scoobi_doo at yahoo.com
Tue Jan 27 20:32:37 UTC 2015


The attached patches allow x11-servers/xorg-server with devd(4) support 
enabled to attach  the x11-drivers/xf86-input-synaptics driver.  The 
largest change is to config/devd.c, mainly because psm(4) can attach 
either the synaptics or mouse driver.

Changes:
x11-drivers/xf86-input-synaptics:
  - Added a PSMAutoDevProbe() method which returns TRUE if psm(4) is in 
Synaptics mode (hw.psm.synaptics_support=1).

x11-drivers/xf86-input-mouse:
  - Do not attach if psm(4) is in Synaptics mode.

x11-servers/xorg-server:
  - Changed struct hw_type to consist of 3 members:
    - name of driver
    - handler to configure driver
    - flag to ignore device path (for atkbd(4))
  - Changed hw_types[] to associate driver names with handlers
  - Moved test for open device file to is_path_openable().
  - Added char *rtrim(char *) to strip trailing whitespace (called from 
device_removed()).
  - Changed device_added() to setup device generically, then call 
driver-specific handler.
  - Moved keyboard quirks to atkbd(4) handler (get_default_device()).
  - Moved "driver" input option setting to individual driver handlers.
  - Added get_default_device(), get_usb_device() and get_psm_device() 
handlers.
  - Reordered mousedrivers[] array to favor specialized pointer drivers 
("synaptics", "evdev", "vmmouse") over generic driver ("mouse").

Patches should perform correctly regardless of psm(4) synaptics support, 
but it's been a while since I've tested without synaptics support.  I 
also have an associated patch for sysutils/hal to support attaching the 
Synaptics driver properly; I'll have to dig that up though.

Comments/suggestions/criticisms welcome.

-- 
Anthony Jenkins

-------------- next part --------------
A non-text attachment was scrubbed...
Name: x11-drivers_xf86-input-mouse.patch
Type: text/x-patch
Size: 6508 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-x11/attachments/20150127/dbf7efc9/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x11-drivers_xf86-input-synaptics.patch
Type: text/x-patch
Size: 1315 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-x11/attachments/20150127/dbf7efc9/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x11-servers_xorg-server.patch
Type: text/x-patch
Size: 10998 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-x11/attachments/20150127/dbf7efc9/attachment-0002.bin>


More information about the freebsd-x11 mailing list