Yeah, it took a reboot to clear it. The code above not only sets the LED, but screws up the keyboard LED flags. Its all in /usr/include/linux/kd.h , but resetting the flag to normal working order is not obvious. A logout/login did not reset it, only a reboot did.