From f1792dec464d92e39d39fbd244b97b1a8679f38a Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 23 May 2024 15:17:24 +1000 Subject: [PATCH] quirks: add a default resolution for Huion devices MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: --- quirks/30-vendor-huion.quirks | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 quirks/30-vendor-huion.quirks diff --git a/quirks/30-vendor-huion.quirks b/quirks/30-vendor-huion.quirks new file mode 100644 index 00000000..4e35d8cd --- /dev/null +++ b/quirks/30-vendor-huion.quirks @@ -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