HPEN(4)
π HPEN(4) β okay bestie, let's talk about your pen tablet π
The manual is called HPEN(4), and it's highkey the cutest little driver for making your fancy pen tablet actually work on Unix. Let's get into it, no cap.
β¨ NAME β¨
hpen β the MS Windows compatible HID pen tablet driver. Yes, it's literally giving "I speak Windows so your tablet doesn't have to" energy. ποΈβ¨
πΈ SYNOPSIS πΈ
Okay so if you wanna compile this driver into the kernel (main character energy, we love to see it), you gotta place these lines in your kernel configuration file:
device hpen
device hid
device hidbus
device hidmap
device evdev
Alternatively β and this is the lowkey easier route β if you wanna load the driver as a module at boot time, put this line in loader.conf(5):
hpen_load="YES"
That's it. That's the whole vibe check. π
π¦ DESCRIPTION π¦
The hpen driver provides support for generic MS Windows compatible HID pen tablet and digitizer that attach to the HID transport backend. Like, it's fr fr out here making your tablet work. See iichid(4) or usbhid(4) for the backend details, iykyk.
The /dev/input/event* device presents the pen as a evdev type device. So your system sees it, your apps see it, everyone's happy. π
π SYSCTL VARIABLES π
The following variable is available as both a sysctl(8) variable and a loader(8) tunable:
dev.hpen.X.debugβ Debug output level, where0is debugging disabled and larger values increase debug message verbosity. Default is0. So if you're not debugging, it's literally zero drama. If you are debugging, turn it up and watch the messages roll in. π₯
It's default value is set with loader(8) tunable:
hw.hid.hpen.debug
So yeah, you can set the default debug level at boot if you're that kind of person. We respect it. π
π FILES π
/dev/input/event*β input event device node. This is where the pen shows up so the rest of the system can be obsessed with it. ποΈ
β SEE ALSO β
Go check out these besties:
iichid(4)usbhid(4)xorg.conf(5)(ports/x11/xorg)
They're all part of the same friend group, fr fr. π«Ά
π BUGS π
Okay so there are a couple of things hpen cannot do, and we gotta be real about it:
hpencannot act likesysmouse(4). Not me pointing out the limitations, but like, it's just not that girl. π- Pen battery charge level reporting is not supported. So you won't know how much juice your pen has left. Tragic, honestly. π
But like, it still slays at everything else, so we move. π
π HISTORY π
The hpen driver first appeared in FreeBSD 13.0. A legend was born, periodt. β¨
πΈ AUTHORS πΈ
The hpen driver was written by Val Packett <val@packett.cool>. Iconic behavior.
This manual page was written by Vladimir Kondratyev <wulf@FreeBSD.org>. Also iconic. We stan both. π
This page is servingDebianSeptember 14, 2020energy β that's the source, version, and date, bestie. Now go forth and pen-tablet your heart out. Stay hydrated, slay responsibly, and remember: the vibe check is eternal. π§β¨π
π¦ where this page comes from
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2020 Vladimir Kondratyev <wulf@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms