HCONS(4)

πŸ“¦
version 15.1 Β· 2 versions
, in freebsd 15.1, nixpkgs unstable

πŸ’… HCONS(4) β€” the HID consumer page controls driver, bestie edition πŸŽ€

okay so real talk, this is hcons(4) from the Kernel Interfaces Manual, and it's lowkey iconic once you get what it does. sit down, grab a strawberry drink πŸ“, and let's get into it.


✨ NAME ✨

hcons β€” the HID consumer page controls driver. yes that's the whole name, she's concise, she's giving main character energy πŸ‘‘


🌸 SYNOPSIS 🌸

so like, if you wanna compile this driver into the kernel (the commitment era), you drop these lines into your kernel configuration file:

device hcons
device hid
device hidbus
device hidmap
device evdev

or β€” and this is the chill option β€” you can load the driver as a module at boot time (the low-commitment era πŸ¦‹) by putting this single line into loader.conf(5):

hcons_load="YES"

no cap, that's it. that's the whole vibe check. ✨


πŸ’– DESCRIPTION πŸ’–

the hcons driver provides support for HID consumer page controls, which are most often the ones used as "Multimedia keys" found on many keyboards. yk, the play/pause/volume situation? she handles all of that. 🎡

and here's the cute part β€” the /dev/input/event* device presents the consumer page controls as a evdev type device. so everything just shows up where you'd expect it. obsessed.


🧚 SYSCTL VARIABLES 🧚

the following variable is available as both a sysctl(8) variable and a loader(8) tunable, which is honestly so versatile of her πŸ’…:

  • dev.hcons.X.debug β€” the debug output level, where 0 is debugging disabled and larger values increase debug message verbosity. Default is 0.

and her default value is set with the loader(8) tunable:

hw.hid.hcons.debug
fr fr, if stuff's acting weird, this is your girl. just... maybe don't crank it for no reason πŸ™ˆ

πŸŽ€ FILES πŸŽ€

  • /dev/input/event* β€” the input event device node. she's right there. living her life. πŸ¦‹

⭐ SEE ALSO ⭐

go read those too, iykyk 😌


🌈 HISTORY 🌈

the hcons driver first appeared in FreeBSD 13.0. a legend was born πŸ‘‘


πŸ’œ AUTHORS πŸ’œ

the hcons driver was written by Vladimir Kondratyev <wulf@FreeBSD.org>. thank you for your service king 🫢


and that's the whole page, bestie! this particular edition is dated January 23, 2021 and comes to you from Debian, so go forth and enjoy your multimedia keys β€” they're literally working because of this. periodt. πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from