HILKBD(4)

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

πŸ’– hilkbd(4) β€” the HIL keyboard device, bestie πŸ’–

okay so real talk, this one's a Kernel Interfaces Manual page, and honestly? it's giving underrated icon energy. let's get into it πŸŽ€


✨ NAME ✨

hilkbd β€” the HIL keyboard device, no cap πŸ¦‹


🌸 SYNOPSIS 🌸

hilkbd* at hil?
wskbd* at hilkbd?

option HILKBD_LAYOUT=XXX

like, that's the whole vibe check right there ⭐


πŸ’… DESCRIPTION πŸ’…

so this driver? it supports HIL keyboards inside the wscons(4) framework 🫢. but plot twist β€” it does not provide direct device driver entry points. nope. instead it makes its functions available through the internal wskbd(4) interface. it's giving backstage main character energy, lowkey πŸ’œ

now the fun part: the hilkbd driver supports a number of different key mappings πŸ”₯. by default, the layout that corresponds to the keyboard model β€” as probed by the hilkbd driver itself β€” is what gets used, periodt. ✨

but bestie, you can choose a different layout! two ways:

  • with the kernel option HILKBD_LAYOUT at compile time 🧚
  • or with the wsconsctl(8) utility at runtime, using the variable keyboard.encoding πŸŽ€

🌈 the supported key mappings (at this time)

  • KB_DE β€” (de) German, with "dead accents" πŸ“
  • KB_FR β€” (fr) French, with "dead accents" πŸ“
  • KB_SV β€” (sv) Swedish ⭐
  • KB_UK β€” (uk) British πŸ¦‹
  • KB_US β€” (us) English/US keyboard mapping πŸ’«

and here's a lil bonus detail: the KB_DE mapping can be used in the KB_NODEAD (.nodead) variant β€” which switches off the "dead accents". iconic behavior honestly πŸ’…


πŸ¦‹ EXAMPLES πŸ¦‹

want a Swedish keyboard mapping, like, right now? use:

wsconsctl keyboard.encoding=sv

and if you want it set at kernel build time β€” regardless of what keyboard is plugged β€” just add the following to the kernel configuration file:

option HILKBD_LAYOUT="KB_SV"

slay. that's it. that's the whole thing πŸ’–


πŸ‘‘ SEE ALSO πŸ‘‘

hil(4), intro(4), wskbd(4), wsconsctl(8)

go read them, iykyk πŸ“šβœ¨


πŸ’€ BUGS πŸ’€

okay, being honest here πŸ™ˆ β€”

  • the list of built-in mappings is incomplete, and it has grown as people submitted information about their particular layout. so yeah, it's a community project vibe fr fr 🌱
  • the Swedish and British layouts have been reconstructed from tables in the old HIL code that's present in the hp300 port β€” and they have not been tested. 😭 so like, proceed with love and maybe a lil caution 🫢

and that's the whole page, bestie!! this gem comes to you from Debian, dated February 9, 2011 β€” an absolute vintage moment, we stan a classic πŸ’œβœ¨

πŸ“¦ where this page comes from