/ 铃儿响叮当 / New udev rules for keyboard

New udev rules for keyboard

2014-05-11 posted in [day-to-day]

The DMI table contain lots of information about the computer case and model.

This is an entry for a IBM Thinkpad X40

$ cat /sys/devices/virtual/dmi/id/modalias
dmi:bvnIBM:bvr1UETB6WW(1.66):bd06/15/2005:svnIBM:pn2371H4G:pvrThinkPadX40:rvnIBM:rn2371H4G:rvrNotAvailable:cvnIBM:ct10:cvrNotAvailable:

The values present are

bvn  IBM            (BIOS vendor)
bvr  1UETB6WW(1.66) (BIOS version)
bd   06/15/2005     (BIOS date)
svn  IBM            (system vendor)
pn   2371H4G        (product name)
pvr  ThinkPadX40    (product version)
rvn  IBM            (board vendor)
rn   2371H4G        (board name)
rvr  NotAvailable   (board version)
cvn  IBM            (chassis vendor)
ct   10             (chassis type)
cvr  NotAvailable   (chassis version)

Links

http://www.tuicool.com/articles/vMbABn https://wiki.archlinux.org/index.php/Extra_Keyboard_Keys#Scancodes