Answers:
此功能在内核中实现。它不是特定于Ubuntu的,自内核2.4.19起(2002年,是什么)就已经存在。我不记得raring的内核是什么,但是对于现代的实现,请参见例如https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/input/ serio / i8042.c?id = refs / tags / v3.9-rc1。
该文件中给出的基本原理:
* i8042_panic_blink() will turn the keyboard LEDs on or off and is called
* when kernel panics. Flashing LEDs is useful for users running X who may
* not see the console and will help distingushing panics from "real"
* lockups.