[Wayland-bugs] [Bug 103476] RFE: libinput: Add support for Trust TB-4200 Wireless Scroll Tablet (Aiptek based)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Nov 20 23:22:38 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=103476

--- Comment #7 from Martin Kolman <martin.kolman at gmail.com> ---
(In reply to Peter Hutterer from comment #3)
> They might be hidden in some vendor-specific hid protocol. Grab
> https://bentiss.github.io/hid-replay-docs/ and run hid-recorder on the
> device, attach the output here. We can have a look at it then to see if
> there's anything interesting.
The hid-recorder utility (running as root) doesn't seem to see the device. It
does see my Logitech Wave wireless keyboard if it is connected (as 3 separate
devices), but if I disconnect the receiver & connect the tablet it doesn't
detect anything and writes usage instructions instead.


> 
> For the size: locate 60-evdev.hwdb on your machine and read the comments at
> the top, they have the description on how to fix the x/y axis range by
> adding a custom resolution. will look similar to the other entries with
> EVDEV_ABS_00=::r and EVDEV_ABS_001=::r, where r is the resolution for the
> respective axis. The axis ranges are 6000/4500, divide that by the
> respective sizes and you have the resolution.

So, if I should divide it by the value in millimeters, this gives me:

6000 / 228 = 26,315

4500 / 304 = 14.8

Based on the hwdb docstrings & entries, that gives me a potential new entry:

#########################################
# Trust
#########################################

# Trust Wireless Scroll Tablet TB-4200
# (Aiptek based ?)
evdev:name:Aiptek
 EVDEV_ABS_00=::26
 EVDEV_ABS_01=::15


What I'm not sure about:

- did I do the rounding right ?

- is the type matching correct ? 

Based on comment, it should be:

evdev:name:<device name>:dmi:<dmi string>

I guess device name is "Aiptek" but I'm not sure what the correct "dmi string"
in the evemu describe output:

# DMI:
dmi:bvnLENOVO:bvr8AET65WW(1.45):bd05/14/2015:svnLENOVO:pn42404GG:pvrThinkPadT520:rvnLENOVO:rn42404GG:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable

That looks like something related to the laptop (a Lenovo ThinkPad T520) than
to the tablet.


If the entry looks correct (or you have any pointers how to correct it :) ) it
looks like I should be able to locally test according to the comments in the
hwdb file:

# To add local entries, create a new file
#   /etc/udev/hwdb.d/61-evdev-local.hwdb
# and add your rules there. To load the new rules execute (as root):
#   systemd-hwdb update
#   udevadm trigger /dev/input/eventXX
# where /dev/input/eventXX is the device in question. If in
# doubt, simply use /dev/input/event* to reload all input rules.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20171120/d5552c6e/attachment.html>


More information about the wayland-bugs mailing list