mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 08:00:08 +01:00
quirks: add a default resolution for Huion devices
The Inspiroy 2S H641P in default mode (without hid-uclogic support) says the pen interface has a Logical Maximum of 32767. Over the 160x100mm active surface this is ca 205x328 units/mm. This isn't correct across all devices but let's use it as fallback value so the tablets work out of the box. It's hard to set these tablets via 60-evdev.hwdb otherwise because most Huion tablets share a few PIDs only. Note: this doesn't overwrite the kernel resolution it merely provides a fallback where no kernel resolution is set. The firmware report descriptor does set a physical range (2048) but it sets it in cubic inch which is ignored by the kernel: # 0x65, 0x33, // Unit (EnglishLinear: in³) 48 Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1004>
This commit is contained in:
parent
fe3175748a
commit
f1792dec46
1 changed files with 7 additions and 0 deletions
7
quirks/30-vendor-huion.quirks
Normal file
7
quirks/30-vendor-huion.quirks
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
# Do not edit this file, it will be overwritten on update
|
||||||
|
|
||||||
|
# This will match several vendors that all
|
||||||
|
# re-use the same vendor ID 256C.
|
||||||
|
[Huion/Gaomon Tablets]
|
||||||
|
MatchVendor=0x256C
|
||||||
|
AttrResolutionHint=205x328
|
||||||
Loading…
Add table
Reference in a new issue