Você pode usar o comando xinput para listar todos os seus dispositivos de entrada, incluindo mouses e teclados:
xinput list
Minha saída é assim:
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ ETPS/2 Elantech Touchpad id=11 [slave pointer (2)]
⎜ ↳ Macintosh mouse button emulation id=12 [slave pointer (2)]
⎜ ↳ Wacom Intuos3 4x6 eraser id=15 [slave pointer (2)]
⎜ ↳ Wacom Intuos3 4x6 cursor id=16 [slave pointer (2)]
⎜ ↳ Wacom Intuos3 4x6 pad id=17 [slave pointer (2)]
⎜ ↳ Wacom Intuos3 4x6 stylus id=18 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Power Button id=8 [slave keyboard (3)]
↳ USB 2.0 Camera id=9 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=10 [slave keyboard (3)]
↳ LITEON Technology USB Multimedia Keyboard id=13 [slave keyboard (3)]
↳ LITEON Technology USB Multimedia Keyboard id=14 [slave keyboard (3)]