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
Analisi output "cat /proc/bus/input/devices"
Riconoscimento, installazione e configurazione delle periferiche.
-
davidegn82
- Prode Principiante
- Messaggi: 30
- Iscrizione: mercoledì 7 novembre 2007, 11:48
Ritorna a “Driver e periferiche”
Vai a
- Notizie e informazioni utili
- ↳ Novità e aggiornamenti
- ↳ Prime informazioni sul mondo Ubuntu
- Primi passi
- ↳ Dilemmi del principiante
- ↳ Installazione e aggiornamento del sistema operativo
- ↳ Sessione live DVD/USB
- ↳ Ubuntu su macchina virtuale
- Software
- ↳ Applicazioni
- ↳ Applicazioni professionali
- ↳ Kernel e servizi di sistema
- ↳ Multimediale
- ↳ Videogiochi
- ↳ Software educazionale
- ↳ Tecnologie assistive
- Hardware
- ↳ Driver e periferiche
- ↳ Ubuntu Phone, PowerPC e ARM
- Reti e server
- ↳ Connessione e configurazione delle reti
- ↳ Ubuntu su server
- Ambienti desktop
- ↳ GNOME
- ↳ KDE
- ↳ Altri ambienti desktop e window manager
- ↳ LXDE/LXQt
- ↳ MATE
- ↳ Unity
- ↳ Xfce
- ↳ Personalizzazione dell'ambiente desktop
- Programmazione, sicurezza e sviluppo
- ↳ Progetti della Comunità
- ↳ Programmazione
- ↳ Strumenti per la programmazione
- ↳ Sicurezza
- ↳ Annunci di sicurezza
- ↳ Ubuntu in sviluppo
- Comunità di Ubuntu-it
- ↳ Consiglio della Comunità
- ↳ Membership Ubuntu-it
- ↳ Gruppo Documentazione
- ↳ Gruppo Forum
- ↳ Gruppo Promozione
- ↳ Newsletter italiana
- ↳ Gruppo Sviluppo
- ↳ Gruppo Web
- Comunità del forum
- ↳ Bacheca eventi
- ↳ Bar Sport
- ↳ Bar Ubuntu
- ↳ Altre distribuzioni e sistemi operativi
- ↳ Consigli per gli acquisti
- Archivio del forum
- ↳ Sezioni chiuse o archiviate
- ↳ Architettura x86_64
- ↳ Architetture meno diffuse
- ↳ CD italiano di Ubuntu-it
- ↳ Precedenti Ubuntu in sviluppo
- ↳ Hoary 5.04
- ↳ Breezy 5.10
- ↳ Dapper 6.06
- ↳ Edgy 6.10
- ↳ Feisty 7.04
- ↳ Gutsy 7.10
- ↳ Hardy 8.04
- ↳ Intrepid 8.10
- ↳ Jaunty 9.04
- ↳ Karmic 9.10
- ↳ Lucid 10.04
- ↳ Maverick 10.10
- ↳ Natty Narwhal 11.04
- ↳ Oneiric Ocelot 11.10
- ↳ Precise Pangolin 12.04
- ↳ Quantal Quetzal 12.10
- ↳ Raring Ringtail 13.04
- ↳ Saucy Salamander 13.10
- ↳ Trusty Tahr 14.04
- ↳ Utopic Unicorn 14.10
- ↳ Vivid Vervet 15.04
- ↳ Wily Werewolf 15.10
- ↳ Xenial Xerus 16.04
- ↳ Yakkety Yak 16.10
- ↳ Zesty Zapus 17.04
- ↳ Artful Aardvark 17.10
- ↳ Bionic Beaver 18.04
- ↳ Cosmic Cuttlefish 18.10
- ↳ Disco Dingo 19.04
- ↳ Eoan Ermine 19.10
- ↳ Focal Fossa 20.04
- ↳ Groovy Gorilla 20.10
- ↳ Hirsute Hippo 21.04
- ↳ Impish Indri 21.10
- ↳ Jammy Jellyfish 22.04
- ↳ Quarantena
- ↳ Risoluzione controversie
- ↳ Sondaggi
Chi c’è in linea
Visualizzano questa sezione: Bing [Bot] e 15 ospiti