eudev-project / eudev

Repository for eudev development
GNU General Public License v2.0
523 stars 147 forks source link

How to tag Mulit-touch(MT) devices? #147

Closed WimHuang closed 7 years ago

WimHuang commented 7 years ago

I have a mulit-touch(MT) screen,whose driver is linux-4.4/drivers/input/touchscreen/gt82x.c. It works fine in android, but in linux(buildroot ), the eudev shows "not tagged as input device".

I checked the eudev source file, and found in src/udev/udev-builtin-input_id.c test_pointers: if (test_bit(EV_ABS, bitmask_ev) && test_bit(ABS_X, bitmask_abs) && test_bit(ABS_Y, bitmask_abs) if (test_bit(BTN_TOUCH, bitmask_key) udev_bultin_add_properyt(dev, test, "ID_INPUT_TOUCHSCREEN", "1");

But for multi-touch screen, there are no capacities of ABS_X and ABS_Y, only capacities of ABS_MT_xxx. It this a problem of eudev? How to solve this problem?

WimHuang commented 7 years ago

add src/udev/udev-builtin-input_id.c/test_pointer(): if (test_bit(ABS_MT_POSITION_X, bitmask_abs) && test_bit(ABS_MT_POSITION_Y, bitmask_abs)) { udev_builtin_add_property(dev, test, "ID_INPUT_TOUCHSCREEN", "1"); ret = true; }

This problem is fixed on the newest systemd/udev