Analisi output "cat /proc/bus/input/devices"

Riconoscimento, installazione e configurazione delle periferiche.
Scrivi risposta
davidegn82
Prode Principiante
Messaggi: 30
Iscrizione: mercoledì 7 novembre 2007, 11:48

Analisi output "cat /proc/bus/input/devices"

Messaggio da davidegn82 »

Prendendo ad esempio la porzione di output che riguarda la tastiera, del comando "cat /proc/bus/input/devices".

Nel mio caso

I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/class/input/input1
U: Uniq=
H: Handlers=kbd event1
B: EV=120013
B: KEY=4 2000000 3802078 f840d001 feffffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7


Vorrei capire esattamente cosa significano esattamente i diversi dati:

- Le prime sei righe sono ovvie.

Iniziamo con B: EV:120013.

Cosa significa? Come viene generato?

Utilizzando un diverso comando quale ls input, ottengo

/dev/input/event1
  bustype : BUS_I8042
  vendor  : 0x1
  product : 0x1
  version : 43841
  name    : "AT Translated Set 2 keyboard"
  phys    : "isa0060/serio0/input0"
  bits ev : EV_SYN EV_KEY EV_MSC EV_LED EV_REP


Che analogia c'è tra "B: EV:120013" e "EV_SYN EV_KEY EV_MSC EV_LED EV_REP" ?

Lo scopo di questo lavoro è capire esattamente come si utilizza l'input layer generico "evdev"

Nel file /etc/X11/xorg.conf", è possibile utilizzare un inputdevice utilizzando il driver evdev, come ad esempio

Section "InputDevice"
Identifier "Telecomando_Hauppauge"
Driver "evdev"
# Option          "Device" "/dev/input/event4"
Option "Phys" "pci-0000:01:06.2/ir0"
Option "evBits" "+1-8" 
# Option "keyBits" "~1-255 ~352-511"
Option "Pass"    "3"
Option "XkbRules" "xorg"
Option "XkbModel" "evdev"
Option "XkbLayout" "it"
Option "SendCoreEvents" "true"
EndSection


In relazione ai problemi proposti, vcome faccio a selezionare il device di interesse settando opportunamene
- Option "evBits"
- Option "keyBits" "~1-255 ~352-511"


Spero di costruire una guida definitiva all'utilizzo di evdev con la vostra collaborazione
Scrivi risposta

Ritorna a “Driver e periferiche”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 13 ospiti