doc:appunti:software:usb_wireless_gamepad
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:appunti:software:usb_wireless_gamepad [2021/02/12 14:24] – [Problema freccia destra e sinistra non funzionanti] niccolo | doc:appunti:software:usb_wireless_gamepad [2021/02/13 08:33] (current) – [Kernel funzionanti e kernel non funzionanti] niccolo | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Kodi con Gamepad Wireless USB ====== | ====== Kodi con Gamepad Wireless USB ====== | ||
- | Vogliamo utilizzare | + | Vogliamo utilizzare |
- | Abbiamo acquistato un controller **SNES wireless a 2.4 GHz** con micro ricevitore | + | {{.: |
+ | |||
+ | Viene riconosciuto dal comando | ||
< | < | ||
Line 44: | Line 46: | ||
Ci sono dei problemi invece con un sistema **Raspberry Pi 4**, RaspiOS basato su **Debian 10.8** e **Kodi 18.7**: i tasti freccia **Left** e **Right** non funzionano. | Ci sono dei problemi invece con un sistema **Raspberry Pi 4**, RaspiOS basato su **Debian 10.8** e **Kodi 18.7**: i tasti freccia **Left** e **Right** non funzionano. | ||
+ | |||
+ | C'è chi ha riscontrato lo stesso problema utilizzando Retropie: **[[https:// | ||
+ | |||
+ | ==== Debug con input-events ed evtest ==== | ||
Eseguendo il comando **lsinput** si vede che il gamepad è stato associato al device **event5**: | Eseguendo il comando **lsinput** si vede che il gamepad è stato associato al device **event5**: | ||
Line 154: | Line 160: | ||
</ | </ | ||
- | ^ Sistema | + | ==== Debug con usbmon ==== |
- | | Raspberry Pi 3 | 4.19.66-v7+ | + | |
- | | Raspberry Pi 4 | 5.10.11-v7l+ | + | |
- | | PC amd64 Debian 10.8 | 4.9.189-3+deb9u2 | + | |
- | | PC amd64 Debian 10.8 | 4.19.67-2+deb10u2 | + | |
- | | PC amd64 Debian 10.8 | 4.19.98-1+deb10u1 | + | |
- | | PC amd64 Debian 10.8 | 4.19.160-2 | + | |
- | C'è chi ha riscontrato lo stesso problema | + | In teoria dovrebbe essere possibile **ispezionare il traffico** direttamente sul bus USB utilizzando la funzione **usbmon** del kernel Linux. Seguendo le istruzioni **[[https:// |
+ | |||
+ | < | ||
+ | # Mount debugs, if not already mounted: | ||
+ | mount -t debugfs none_debugs / | ||
+ | modprobe usbmon | ||
+ | </ | ||
+ | |||
+ | quindi si chiede l'elenco di tutte le periferiche USB: | ||
+ | |||
+ | < | ||
+ | cat / | ||
+ | ... | ||
+ | T: Bus=02 Lev=02 Prnt=02 Port=01 Cnt=01 Dev#= 6 Spd=1.5 | ||
+ | D: Ver= 1.10 Cls=00(> | ||
+ | P: Vendor=0079 ProdID=0011 Rev= 3.11 | ||
+ | S: Manufacturer=YSTEK | ||
+ | S: Product=MICREAL USB Gamepad | ||
+ | C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA | ||
+ | I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID | ||
+ | E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=10ms | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | È possibile ispezionare il traffico di **tutti i bus** (utilizzando | ||
+ | |||
+ | < | ||
+ | cat / | ||
+ | </ | ||
+ | |||
+ | Nel caso del nostro gamepad **non si ottiene alcun tracciato**, | ||
+ | |||
+ | ==== Kernel funzionanti e kernel non funzionanti ==== | ||
+ | |||
+ | ^ System | ||
+ | | Raspberry Pi 3 | 4.19.66-v7+ | ||
+ | | Raspberry Pi 4 | 5.10.11-v7l+ | ||
+ | | PC amd64 Debian 10.8 | 4.9.189-3+deb9u2 | ||
+ | | PC amd64 Debian 10.8 | 4.19.67-2+deb10u2 | ||
+ | | PC amd64 Debian 10.8 | 4.19.98-1+deb10u1 | ||
+ | | PC amd64 Debian 10.8 | 4.19.160-2 | ||
+ | |||
+ | ===== Web References ===== | ||
+ | |||
+ | * **[[https:// | ||
+ | * **[[https:// | ||
doc/appunti/software/usb_wireless_gamepad.1613136269.txt.gz · Last modified: 2021/02/12 14:24 by niccolo