avatar
scuti
did not use AI to generate art
https://scuti.neocities.org/

hanvon-linux

2024 Jul 26 (E: 2025 Sep 10)

View 5 comment(s).

A userspace driver for old Hanvon pen tablets.

If you build it, run

sudo hvlusb

(The driver can’t control the cursor without sudo.)

Story

I was stuck inside during the pandemic and got the idea to draw something. I had an old pen tablet laying around that I haven’t been using.

When I first got the tablet, it came with a disc for installing the driver on Windows 7 or earlier. I had stopped using Windows after 7, so I passed the tablet to my friend to see if he could figure something out. However, the driver didn’t work on Windows 8 either.

The device itself still sends packets (10 bytes).

When I got the idea to write a driver for my old tablet, the same friend looked at me and said,

“Just buy a new tablet.”

Considering the limited things a pen tablet does (basically a mouse), which bytes did what were obvious. I also had the original Linux kernel module to base the userspace driver from. (Although the original kernel module compiles, it does not work.)

After a while of getting used to libusb and libevdev, the driver worked on my laptop which had Devuan installed.

Graphicpal 0504, my old pen tablet

This thing probably isn’t on the market anymore. I had gotten this pen tablet from Frys Electronics which no longer exists.

Even though the pen tablet is made in China, it is quite durable. A bad habit I have with electronic devices is shifting them on the table such that the rubber feet on the bottoms slide off. For however many years, the feet never wore off. There is also a crack on my tablet which was no effect on the drawing space.

The least durable part is the right-click button on the pen. Mine has fallen off and is kept in place with sometimes tape or sometimes a tiny rubber band. Either the nibs don’t seem to leave scratches or marks on the drawing area, or I don’t draw enough for that to happen.

Drawing

Finally, here is a doodle I made in Krita with the tablet just for this blog post.

Thanks for reading. Members of the species homo sapiens may wiggle their phalanges to leave a comment on my guestbook via e-mail or neocities. Salesmen of “limited time offers” need not respond.


Comments (5)

Reply to any of the bulleted links to leave a comment.

#5 Tue, December 03, 2024

avatar
scuti🌱 @scuti
@mischievoustomato I know another 2010ish game that acts weird with the mouse even with a Linux port. Do you happen to play Devil May Cry?

#4 Tue, December 03, 2024

avatar
Arcana 👑 @arcana@layer02.net
@scuti Hello

#3 Tue, December 03, 2024

avatar
christmas skibidi tomato :nix: :tomatock: @mischievoustomato@mitra.taihou.website

@scuti nice, hello
i play a lot under linux and rarely i come across that doesn't work well, but I have to use a tool to keep my mouse cursor on the center of the screen otherwise fhe camera in that game (dark messiah) goes cuhrayzed

#2 Tue, December 03, 2024

avatar
theory @theorytoe@ak.kyaruc.moe
@scuti
>ada
rare specimen located

#1 Tue, December 03, 2024

avatar
scuti🌱 @scuti
Hi. New account here.

* I don't know what makes a good introduction post.
* I write programs as a hobby. I use C, C++, Lua, Python, or Ada.
* I like to play (older) video games but not out of nostalgia, just that newer games are less likely to work well on Linux.
* I am an infrequent doodler as in having above average illustration skills but not an artist.

Here's my pen tablet driver:

https://scuti.neocities.org/pages/hanvon-linux

If you visited that page, you'd come across this scribble. As that page indicates, I make very simple web pages and put them on #neocities. I also own a set of lockpicks.

#introduction / #introductions, #programming

hanvon-linux

I wrote a userspace driver for a very old pen tablet (Hanvon Graphicpal 0504) and used it to scribble in Krita.

media attached:

  1. image/png