On Sat, Jun 18, 2011 at 01:40:56AM +0600, Alexandr Shadchin wrote:
> On Wed, Jun 15, 2011 at 09:11:43AM +0200, Matthieu Herrb wrote:
> > Hi,
> > 
> > here are a set of patches being worked on to add native synaptics
> > touch pad support to OpenBSD and Xenocara.
> > 
> > The xf86-input-synaptics driver itself is already committed and built
> > in Xenocara.
> > 
> > http://xenocara.org/wscons_config.2.diff is a diff that uses the X
> > hot-plug mechanism to configure you input drivers. It will setup
> > the xf86-input-synaptics driver for you if you have one, together with
> > a regular mouse driver that will handle any external PS/2 or USB mouse
> > attached in addition. Touchscreens will also be auto-configured this
> > way if one is detected.
> > 
> > This new code also takes care of the configuration of the keyboard
> > layout from the wscons layout. Thus a second diff:
> > http://xenocara.org/xf86-input-keyboard.diff removes that code from
> > the keyboard driver.
> > 
> > To apply those patches:
> > 
> >     cd /usr/xenocara/xserver
> >     patch -p0 -E < /path/to/wscons_config.2.diff
> >     make -f Makefile.bsd-wrapper obj
> >     make -f Makefile.bsd-wrapper build
> >     cd /usr/xenocara/driver/xf86-input-keyboard
> >     patch -p0 -E < /path/to/xf86-input-keyboard.diff
> >     make -f Makefile.bsd-wrapper obj
> >     make -f Makefile.bsd-wrapper build
> > 
> > Once X is ready, apply the kernel patch, and build a new kernel with
> > the synaptics support in pms(4):
> > http://xenocara.org/sys-synaptics.diff
> > 
> >     cd /sys
> >     patch -p0 -E < /path/to/sys-synaptics.diff
> > 
> > the new kernel will detect your synaptics touch pad if any, and  X
> > will be configured with the xf86-input-synaptics. Read the
> > synaptics(4) manual page to discover all its features.
> > 
> > You can check how the input drivers were configured by running the
> > command:
> > 
> >    xinput list
> > 
> > If you are configuring input devices manually in xorg,conf you need to
> > add this to the ServerFlags section (but may be you should give a try
> > at auto-configuration and remove your InputDevice sections all together):
> > 
> >     Section ServerFlags
> >     Option "AutoAddDevices" "false"
> >     EndSection
> > 
> > Please test, comment and report failures. Make sure to include
> > /var/log/Xorg.0.log and dmesg outputs in your reports.
> > 
> > Thanks to Alexandr Shadchin (shadchin@) for his work on this driver and
> > to all people who already tested these patches and suggested
> > enhancements.
> > 
> > -- 
> > Matthieu Herrb
> > 
> 
> New sys-synaptics.diff (http://koba.devio.us/distfiles/synaptics.v2.diff)
> * fix wrong detect clickpad
> * fix ignore buttons if no fingers on touchpad
> * if open directly /dev/wsmouseX, then remove this device from mux
>   (close device - get back in mux)
> 
> Thanks all for your feedback.
> 

New patches
kernel - http://koba.devio.us/distfiles/synaptics.v5.diff
xenocara - http://koba.devio.us/distfiles/xf86-input-synaptics.diff
 cd /usr/xenocara/driver/xf86-input-synaptics
 patch </foo/bar/xf86-input-synaptics.diff
 make -f Makefile.bsd-wrapper obj build

Changes
* small rework and simplify
* enable advanced gesture mode if supported
  (for multitouch toucpads - return correct number of fingers on touchpad)
* fix bug "lock up" touchpad ( not allowing to move the pointer, or click )
  Thanks Andrew Fresh, for assistance in testing.

-- 
Alexandr Shadchin

Reply via email to