[Pkg-utopia-maintainers] Bug#562052: xserver-xorg-input-synaptics: does not work anymore

Michael Tokarev mjt at tls.msk.ru
Thu Dec 24 13:05:24 UTC 2009


Michael Tokarev пишет:
> I've similar prob here too.
> 
> Synaptics Touchpad, model: 1, fw: 6.2, id: 0x1280b1, caps: 0xa04713/0x204000
> 
> I: Bus=0011 Vendor=0002 Product=0007 Version=12b1
> N: Name="SynPS/2 Synaptics TouchPad"
> P: Phys=isa0060/serio4/input0
> S: Sysfs=/devices/platform/i8042/serio4/input/input7
> U: Uniq=
> H: Handlers=mouse1 event7
> B: EV=b
> B: KEY=6420 7000f 0 0 0 0
> B: ABS=11000003
> 
> udi = '/org/freedesktop/Hal/devices/platform_i8042_i8042_AUX3_port_logicaldev_input'
>   info.capabilities = {'input', 'input.keys', 'button'} (string list)
>   info.product = 'SynPS/2 Synaptics TouchPad'  (string)
> In 0.5.13 it worked ok.

Here's the relevant changes in hal between 0.5.13 and 0.5.14:

--- hal-0.5.13/hald/linux/device.c      2009-07-15 10:54:11.000000000 +0400
+++ hal-0.5.14/hald/linux/device.c      2009-12-01 01:01:10.000000000 +0300
@@ -1160,10 +1158,10 @@ input_test_abs (HalDevice *d, const char
                        num_bits_key = input_str_to_bitmask (s, bitmask_key, sizeof (bitmask_key));

-                       if (test_bit (BTN_STYLUS, bitmask_key)) {
+                       if (test_bit (BTN_STYLUS, bitmask_key) || test_bit (BTN_TOOL_PEN, bitmask_key)) {
                                hal_device_add_capability (d, "input.tablet");
                                goto out;
                        }

-                       if (test_bit (BTN_TOUCH, bitmask_key)) {
+                       if (test_bit (BTN_TOOL_FINGER, bitmask_key) && !test_bit (BTN_TOOL_PEN, bitmask_key)) {
                                hal_device_add_capability (d, "input.touchpad");
                                goto out;
@@ -1184,9 +1182,4 @@ input_test_abs (HalDevice *d, const char
                        }
                }
-
-               if (test_bit (ABS_PRESSURE, bitmask_abs)) {
-                       hal_device_add_capability (d, "input.touchpad");
-                       goto out;
-               }
        }
 out:


So what's "6420 7000f 0 0 0 0" in terms of BTN_* above?

/mjt





More information about the Pkg-utopia-maintainers mailing list