On 2021-06-02 20:14, Vladimir Kondratyev wrote:
For now, report descriptor is not broken but it still does not match
my
expectations. Could you post output of
install sysutils/hid-tools
sudo kldload hidraw.ko
sudo hid-decode /dev/hidraw#
Where # is number corresponding your touchscreen
One more patch :-) with relaxed as compared to MS specs requirements to
usages presence.
Thanks for the updated patches, I think we're getting very close :).
With latest patch:
# dmesg | grep hidraw
hidraw0: Device> on hidbus0
hidraw1: on hidbus1
# hid-decode /dev/hidraw1
0x05, 0x01,// Usage Page (Generic Desktop)0
0x09, 0x01,// Usage (Pointer) 2
0xa1, 0x01,// Collection (Application)4
0x85, 0x01,// Report ID (1) 6
0x09, 0x01,// Usage (Pointer)8
0xa1, 0x00,// Collection (Physical) 10
0x05, 0x09,// Usage Page (Button) 12
0x19, 0x01,// Usage Minimum (1) 14
0x29, 0x02,// Usage Maximum (2) 16
0x15, 0x00,// Logical Minimum (0) 18
0x25, 0x01,// Logical Maximum (1) 20
0x95, 0x02,// Report Count (2) 22
0x75, 0x01,// Report Size (1) 24
0x81, 0x02,// Input (Data,Var,Abs) 26
0x95, 0x01,// Report Count (1) 28
0x75, 0x06,// Report Size (6) 30
0x81, 0x01,// Input (Cnst,Arr,Abs) 32
0x05, 0x01,// Usage Page (Generic Desktop) 34
0x09, 0x30,// Usage (X) 36
0x09, 0x31,// Usage (Y) 38
0x16, 0x00, 0x00, // Logical Minimum (0) 40
0x26, 0xff, 0x0f, // Logical Maximum (4095)43
0x36, 0x00, 0x00, // Physical Minimum (0) 46
0x46, 0xff, 0x0f, // Physical Maximum (4095) 49
0x66, 0x00, 0x00, // Unit (None) 52
0x75, 0x10,// Report Size (16) 55
0x95, 0x02,// Report Count (2) 57
0x81, 0x02,// Input (Data,Var,Abs) 59
0xc0, // End Collection 61
0xc0, // End Collection 62
0x05, 0x0d,// Usage Page (Digitizers) 63
0x09, 0x04,// Usage (Touch Screen)65
0xa1, 0x01,// Collection (Application)67
0x85, 0x02,// Report ID (2) 69
0x09, 0x20,// Usage (Stylus) 71
0xa1, 0x00,// Collection (Physical) 73
0x09, 0x42,// Usage (Tip Switch)75
0x09, 0x32,// Usage (In Range) 77
0x15, 0x00,// Logical Minimum (0) 79
0x25, 0x01,// Logical Maximum (1) 81
0x95, 0x02,// Report Count (2) 83
0x75, 0x01,// Report Size (1) 85
0x81, 0x02,// Input (Data,Var,Abs) 87
0x95, 0x06,// Report Count (6) 89
0x75, 0x01,// Report Size (1) 91
0x81, 0x03,// Input (Cnst,Var,Abs) 93
0x05, 0x01,// Usage Page (Generic Desktop) 95
0x09, 0x30,// Usage (X) 97
0x75, 0x10,// Report Size (16) 99
0x95, 0x01,// Report Count (1)
101
0xa4, // Push
103
0x55, 0x0d,// Unit Exponent (-3)
104
0x65, 0x33,// Unit (Inch^3,EngLinear)
106
0x36, 0x00, 0x00, // Physical Minimum (0)
108
0x46, 0x99, 0x28, // Physical Maximum (10393)
111
0x16, 0x00, 0x00, // Logical Minimum (0)
114
0x26, 0xff, 0x0f, // Logical Maximum (4095)
117
0x81, 0x02,// Input (Data,Var,Abs)
120
0x09, 0x31,// Usage (Y)
122
0x16, 0x00, 0x00, // Logical Minimum (0)
124
0x26, 0xff, 0x0f,