Page 1 of 1

HHKB Professional 2 undocumented DIP-switch settings

Posted: 27 Jan 2017, 12:57
by ryvnf
Hello!

I found out a few undocumented DIP-switch settings on HHKB Professional 2 by checking the keycodes sent through the program xev.

I noticed that in Mac-mode:
  • Fn + F sends "MuteMic" keycode (not "Eject" as is usually labeled on the keycap)
  • Fn + Backspace sends "NumLock" (so you can toggle NumLock through HHKB, or bind to something else)
After doing that I tried setting the first 2 dip switches to 11. Then I found that the keyboard sends various scan codes for QWERTY and ZXCVB.
  • Fn + ESC sends POWEROFF (like Mac-mode)
  • Fn + Q, W, E, R, T, Y sends Cancel, Find, Open, Sunfront, Sunprops, Help
  • Fn + Z, X, C, V, B sends Undo, Cut, Copy, Paste, Redo
Juding by the keycodes labelled "Sunfront" and "Sunprops" this mode is probably sending codes historically used by Sun OS.

Unfortunately this undocumented mode does not send special keycodes for FN + A, S, D, F like Mac-mode does. So you have to pick between having ASDF doing special stuff or ZXCVBQWERTY (would be useful to have both).

Has anyone noticed this before? Is it different between different versions of HHKB? My model number is PD-KB400WNS.

Posted: 27 Jan 2017, 13:36
by XMIT
Neat! I haven't seen this before but it makes some sense since the HHKB started life as a Sun keyboard. Yes indeed, these are key codes from a Sun board such as the Type 6, and are part of the USB HID spec for key presses. Great find!

Re: HHKB Professional 2 undocumented DIP-switch settings

Posted: 27 Jan 2017, 21:31
by hasu
I also did that some ago, and got same result. FN+F on Mac mode spits out F20 actually, btw.

https://github.com/tmk/tmk_keyboard/blo ... ycodes.txt

Sent from my Nexus 5X