Il topic dice tutto: come installo un joypad USB sotto Linux? Come faccio a farglielo riconoscere e ad usarlo? Grazie
Il topic dice tutto: come installo un joypad USB sotto Linux? Come faccio a farglielo riconoscere e ad usarlo? Grazie
Matteo "QMatteo" Pagani
# modprobe hid
# modprobe joydev
# cat /dev/js0
Vedi se premendo i pulsanti va se no potrebbe essere /dev/input/js0; se va da root e non da utente:
# chmod 777 /dev/js0 :gren:
Debian GNU/Linux sid
Publishing a theory should not be the end of one's conversation with the universe, but the beginning. (Eric S. Raymond)
Kernel 2.6.14-ck1
Grazie concittadino Quando passo a Linux provo... Poi ti faccio sapere... Grazie per ora!
Matteo "QMatteo" Pagani
Ok, funziona perfettamente... Ora ho un'altro problema... Ho un secondo joypad, questa volta però collegato alla porta Joystick della scheda audio... Come faccio a farglielo riconoscere e a configurarlo? Ho provato a dare lo stesso comando ma su js1 o js2 o js3 ma dice "no such device"...
Matteo "QMatteo" Pagani
Per quello ti serve il modulo della porta giochi della tua scheda audio, prova con
# modprobe gameport
aggiunto agli altri (che restano validi per i joypad USB), con le SBLive funziona :adhone:
Debian GNU/Linux sid
Publishing a theory should not be the end of one's conversation with the universe, but the beginning. (Eric S. Raymond)
Kernel 2.6.14-ck1
Ho fatto esattamente come mi hai detto, ma sotto js1, js2 o js3 non trova niente...
[root@qmatteoq root]# modprobe gameport
[root@qmatteoq root]# modprobe hid
[root@qmatteoq root]# modprobe joydev
[root@qmatteoq root]# cat /dev/js1
cat: /dev/js1: No such device
Questo è quello che ottengo...
Matteo "QMatteo" Pagani
Modprobe gameport non basta
dopo aver modprobato la tua gameport(es. snd-emu10k1-gameport)
modproba il tuo joystick
di solito si usa modprobe analog
cmq controlla nel kernel,visto che per alcuni joystick si usa
un modulo a parte(es per quelli creative)
ti consiglio anche di cercare qualche utility su freshmeat per
calibrare i joystick.
Allora, io ho una SoundBlaster Live e un joypad della X-Technologies... Qual è il nome della gameport che dovrei dare? Ho provato ad usare quella che mi hai scritto d'esempio, ma dice che non esiste nessun modulo di quel tipo...
Matteo "QMatteo" Pagani
Modprobe emu10k1-gp
per la porta,per il joystick modprobe analog
assicurati ovviamente che i moduli siano compilati
ciao.
Perfetto! Solo una cosa: il mio joypad collegato alla gameport è a 8 tasti, mentre lui ne riconosce solo 4... Come si può fare?
Matteo "QMatteo" Pagani