

Here's what my /usr/local/etc/nf looks like for my keyboard: Note: This is only created when you don't have a map file already! Delete the file if you need to re-do something. Press the keys on your keyboard you want to map and look in /var/run//cc_keymap (where X.Y is your keyboard (/dev/ugenX.Y).Ĭopy the contents of that file to /usr/local/etc/nf and restart the daemon. usr/local/etc/rc.d/uhidd stop /dev/ugenX.Y To start and stop this driver (X.Y are the USB ugen numbers) /usr/local/etc/rc.d/uhidd start /dev/ugenX.Y Load the uhidd module by rebooting or kldload uhidd You need to add to /etc/rc.conf uhidd_flags="-kmohs" You need the uhidd package pkg install uhidd I think this doesn't disable the standard USB keyboard driver on boot.Īt login, I get double keys entered until I replug the keyboard. This is a complex procedure requiring you to run the driver, get the results, check the results in xev, and map them again in xmodmap. Now when you press your multimedia keys the driver will send a fake key number to X11 that you can remap with xmodmap to any other key (usually the multimedia key you want but it could be anything). Not kidding.īasically here is what this does: uhidd replaces your standard USB keyboard driver. Pressing these keys without the uhidd driver installed crashes my USB on FreeBSD. My keyboard has some multimedia keys (and mice can have them too). Last updated: Multimedia keys using uhidd driver Back to the beginning FreeBSD 12.0 Media Keys
