Setup Huion Tablet on Arch Linux Window Manager (XOrg)

Setup Huion Tablet on Arch Linux Window Manager (XOrg)

Setting up the Huion graphic tablet on Arch Linux with a window manager with the help of xsetwacom, as the Huion tablet package from the AUR repo is not working correctly.

Setting up the Huion graphic tablet on Arch Linux with a window manager with the help of xsetwacom, as the Huion tablet package from the AUR repo is not working correctly.

Posted At

Programming

Posted On

June 1, 2025

I am using Huion H1060P Drawing tablet for a while now, I was facing issue setting up the physical button on pad and stylus. Using AUR's official package have some glitches, major one was that when I draw it will flicker the cursor and push it to top left corner of screen and bring back in milliseconds. To fix this issue I use xsetwacom and it was also a challenge in it self for my tablet, lets fix the issue.Installing the required packagesNote: Make sure you have any AUR helper installed.

Find the ID & name for your device

My Sample Output

$Terminal⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ HUION HUION Tablet_H1060P Dial pad      	id=17	[slave  pointer  (2)]
⎜   ↳ HUION HUION Tablet_H1060P Pen stylus    	id=18	[slave  pointer  (2)]
⎜   ↳ SINOWEALTH 2.4G Wireless Receiver       	id=12	[slave  pointer  (2)]
⎜   ↳ HUION HUION Tablet_H1060P stylus        	id=21	[slave  pointer  (2)]
⎜   ↳ HUION HUION Tablet_H1060P eraser        	id=22	[slave  pointer  (2)]
⎜   ↳ HUION HUION Tablet_H1060P Pad pad       	id=20	[slave  pointer  (2)]
⎜   ↳ HUION HUION Tablet_H1060P Touch Strip pad	id=19	[slave  pointer  (2)]
⎜   ↳ HUION HUION Tablet_H1060P Group Buttons pad	id=23	[slave  pointer  (2)]
⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
    ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
    ↳ Power Button                            	id=6	[slave  keyboard (3)]
    ↳ Asus Wireless Radio Control             	id=7	[slave  keyboard (3)]
    ↳ Video Bus                               	id=8	[slave  keyboard (3)]
    ↳ Sleep Button                            	id=11	[slave  keyboard (3)]
    ↳ Video Bus                               	id=9	[slave  keyboard (3)]
    ↳ Power Button                            	id=10	[slave  keyboard (3)]
    ↳ SINOWEALTH 2.4G Wireless Receiver Keyboard	id=13	[slave  keyboard (3)]
    ↳ C-Media Electronics Inc. USB Audio Device	id=14	[slave  keyboard (3)]
    ↳ Asus WMI hotkeys                        	id=15	[slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard            	id=16	[slave  keyboard (3)]

Now you need to test which device is the stylus and which is the pad.

Now if you get any output, then it's your stylus. See, I put 18, which corresponds to the HUION HUION Tablet_H1060P Pen stylus. So now I know it is my pen. If you don't see any output, then try changing the test ID.

Similarly, do it for the tablet, look for the keyword, such as tablet, pad, etc. In my case, it's HUION HUION Tablet_H1060P Pad pad with ID 20, so I will again test it with xinput test 20 and then press the button on the tablet. If I get output, I am right, else, change the ID to something else from the list.

Now set the stylus and pad button to keys

Create a bash file to update the keys for pad and stylus. I will call it huionKeySetup.sh.


Here you can see how I have set the key combination and buttons. Button 1 is your mouse primary click, Button 2 is your middle click and Button 3 is your right click.

Note: Make sure to check which Button 1 crossponds to which key on your tablet. For me Button 8 crossponds to 4th button on my tablet

Now you need to run this bash file at startup and all set. Thank you for reading.



Stay Informed with Wedoes Blog

Explore Insights, Tips, and Inspiration

Explore Insights, Tips, and Inspiration

Dive into our blog, where we share valuable insights, tips, and inspirational stories on co-working, entrepreneurship, productivity, and more. Stay informed, get inspired, and enrich your journey with Wedoes.

Dive into our blog, where we share valuable insights, tips, and inspirational stories on co-working, entrepreneurship, productivity, and more. Stay informed, get inspired, and enrich your journey with Wedoes.

Jun 4, 2025

A practical guide for newcomers to the tech world on how to navigate and explore various domains like development, cloud, cybersecurity, data science, and more

Jun 4, 2025

Explore the differences between RESTful API design and FastAPI, a powerful Python framework for building APIs. Learn which to use for your next backend project.

May 28, 2025

Learn what FOSS licenses are, why they matter, and the differences between popular open-source licenses.

May 25, 2025

You will know about what is asynchronous function in programming. What is it and why we use it. You will also know how to use it in your code.

Jun 4, 2025

A practical guide for newcomers to the tech world on how to navigate and explore various domains like development, cloud, cybersecurity, data science, and more

Jun 4, 2025

Explore the differences between RESTful API design and FastAPI, a powerful Python framework for building APIs. Learn which to use for your next backend project.

May 28, 2025

Learn what FOSS licenses are, why they matter, and the differences between popular open-source licenses.

Jun 4, 2025

A practical guide for newcomers to the tech world on how to navigate and explore various domains like development, cloud, cybersecurity, data science, and more

Jun 4, 2025

Explore the differences between RESTful API design and FastAPI, a powerful Python framework for building APIs. Learn which to use for your next backend project.

Jun 4, 2025

A practical guide for newcomers to the tech world on how to navigate and explore various domains like development, cloud, cybersecurity, data science, and more

Jun 4, 2025

Explore the differences between RESTful API design and FastAPI, a powerful Python framework for building APIs. Learn which to use for your next backend project.

May 28, 2025

Learn what FOSS licenses are, why they matter, and the differences between popular open-source licenses.