Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update huion-kamvas-24-gs2401.tablet #743

Merged
merged 3 commits into from
Jul 30, 2024

Conversation

InfiniteNightDreamer
Copy link
Contributor

@InfiniteNightDreamer InfiniteNightDreamer commented Jul 22, 2024

This vid:pid is also being used by Huion Kamvas 13
data/huion-kamvas-pro-13.tablet

DeviceMatch=usb|256c|006e||HUION_M206;usb|256c|006d||HUION_M206;usb|256c|006f||HUION_M206;usb|256c|0064||HUION_M206;
Width=9 # autogenerated value, please fix
Height=6 # autogenerated value, please fix
DeviceMatch=usb|256c|006d;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This we can't do - you're now matching on every single device with the 006d PID and potentially (well, definitely) breaking all other devices with the same PID. This needs to have the firmware specifier in it so it only matches on the kamvas 24.

DeviceMatch=usb|256c|006d||HUION_M206

alternatively/in addition if the device has a unique device name we can use that here too, see e.g. data/huion-h640p.tablet

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So shoud it be like this ?
DeviceMatch=usb|256c|006d|HUION Huion Tablet_GS2401 Tablet Monitor Pen; ?
I assume we don't need Pad because there are no buttons on Kamvas 24 display tablet.
Kamvas 24 has built in monitor, looking at huion-kamvas-13.tablet file should this be also included ?
usb|256c|006d|Tablet Monitor;

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

 DeviceMatch=usb|256c|0006d||HUION_M206;usb|256c|006d|HUION Huion Tablet_GS2401 Tablet Monitor Pen;

This way we have both the firmware match and the name match (the latter may prove to be less reliable although this one at least has the model number in the name).

I doubt the tablet monitor device doesn't need an entry - maybe the Tablet Monitor Pen if it sends events? Looking at the kamvas 13 file I'm not sure this is really needed tbt.

LibWacom says that Touch Strip and Dial is a tablet event, but `libinput list-devices` ignores them.
So I only added those entries that libinput recognizes :
`Pen`, `Stylus`, `Pad` and `Huion Tablet_GS2401`
Through `libinput record` : `Stylus` and `Pad` events, don't bring any signals should they be excluded ?
@whot whot merged commit c1d2767 into linuxwacom:master Jul 30, 2024
14 checks passed
@whot
Copy link
Member

whot commented Jul 30, 2024

merged, thanks

@InfiniteNightDreamer InfiniteNightDreamer deleted the patch-1 branch August 10, 2024 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants