Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ALSA + Sblive!+ Gamepad Sidewinder [RISOLTO]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
X-Drum
Advocate
Advocate


Joined: 24 Aug 2003
Posts: 2517
Location: ('Modica','Trieste','Ferrara') Italy

PostPosted: Sat Apr 17, 2004 2:16 pm    Post subject: ALSA + Sblive!+ Gamepad Sidewinder [RISOLTO] Reply with quote

Un saluto festoso a tutti! :lol:

ALSA rocks! la mia live sembra essere tutta un'altra scheda
la qualità del suono è impareggiabile ridpetto ad OSS!

Ho solo un piccolissimo problema con il mio gamepad M$ Sidewinder
(a parte il fatto che è della M$) con OSS e i kernel 2.4.x usavo i moduli:
Code:
 joydev
          sidewinder
          emu10k1-gp (gameport live)

ed andava benissimo!

adesso se provo a caricare sidewinder ottengo un :
Code:
root@Thunder x-drum # modprobe sidewinder
FATAL: Error inserting sidewinder (/lib/modules/2.6.5-gentoo/kernel/drivers/input/joystick/sidewinder.ko): Unknown symbol in module, or unknown parameter (see dmesg)


ecco la parte del dmesg che riguarda il carimento:
Code:

sidewinder: Unknown symbol gameport_register_device
sidewinder: Unknown symbol gameport_unregister_device
sidewinder: Unknown symbol gameport_open
sidewinder: Unknown symbol gameport_close


seguendo l'alsa howto di gentoo ho aggiunto in /etc/modules.d/alsa la riga:


Code:

##  ALSA portion
alias snd-card-0 snd-emu10k1
options snd-emu10k1 joystick=1


dove sto sbagliando? (a parte l'aver comprato un gamepad M$ vabbeh è vecchio!) :roll:
_________________
"...There are two sort of lies, lies and benchmarks..."


Last edited by X-Drum on Sun Apr 18, 2004 3:31 pm; edited 2 times in total
Back to top
View user's profile Send private message
motaboy
Retired Dev
Retired Dev


Joined: 15 Dec 2003
Posts: 1483

PostPosted: Sat Apr 17, 2004 2:45 pm    Post subject: Reply with quote

Hai sbagliato a postare /etc/modules.d/alsa.

In teoria questi problemi di dipendenze dovrebbero essere evitati dalla configurazione del kernel (dovrebbe essere specificata la dip in KConfig).

Comunque credo ti manchi il supporto per la gameport.

Dovresti attivare questo:

Code:

#
# Input I/O drivers
#
CONFIG_GAMEPORT=m
CONFIG_SOUND_GAMEPORT=m
#CONFIG_GAMEPORT_NS558
# CONFIG_GAMEPORT_L4 is not set
CONFIG_GAMEPORT_EMU10K1=m  <<< QUESTO!!!!
# CONFIG_GAMEPORT_VORTEX is not set
# CONFIG_GAMEPORT_FM801 is not set
# CONFIG_GAMEPORT_CS461x is not set


Se usi menuconfig è sotto Device Drivers -> Input Device Support

Bye!
_________________
...
Back to top
View user's profile Send private message
X-Drum
Advocate
Advocate


Joined: 24 Aug 2003
Posts: 2517
Location: ('Modica','Trieste','Ferrara') Italy

PostPosted: Sat Apr 17, 2004 2:52 pm    Post subject: Reply with quote

aehm mi è scappato un paste hai ragione! :oops:
ho corretto cmq

si ho incluso quello che hai indicato, ecco un estratto del mio file di configurazione:

Code:

#
# Input I/O drivers
#
CONFIG_GAMEPORT=y
CONFIG_SOUND_GAMEPORT=y
# CONFIG_GAMEPORT_NS558 is not set
# CONFIG_GAMEPORT_L4 is not set
CONFIG_GAMEPORT_EMU10K1=m


forse dovrei mettere tutto come modulo?
intendo "CONFIG_GAMEPORT"?

grazie
_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
motaboy
Retired Dev
Retired Dev


Joined: 15 Dec 2003
Posts: 1483

PostPosted: Sat Apr 17, 2004 2:55 pm    Post subject: Reply with quote

Non credo.
Prova a caricare a mano il modulo:

Code:

modprobe emu10k1-gp


e poi sidewinder.

Bye!
_________________
...
Back to top
View user's profile Send private message
X-Drum
Advocate
Advocate


Joined: 24 Aug 2003
Posts: 2517
Location: ('Modica','Trieste','Ferrara') Italy

PostPosted: Sat Apr 17, 2004 3:09 pm    Post subject: Reply with quote

nulla da fare! :evil:

ottengo sempre lo stesso errore da modprobe :

Code:
root@Thunder linux # modprobe emu10k1-gp
FATAL: Error inserting emu10k1_gp (/lib/modules/2.6.5-gentoo/kernel/drivers/input/gameport/emu10k1-gp.ko): Unknown symbol in module, or unknown parameter (see dmesg)


dmesg:
Code:
emu10k1_gp: Unknown symbol gameport_unregister_port
emu10k1_gp: Unknown symbol gameport_register_port


questo vale anche per sidewinder in presenza o meno di joydev
e anche con il parametro joystick=1 in /etc/modules.d/alsa!
_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
motaboy
Retired Dev
Retired Dev


Joined: 15 Dec 2003
Posts: 1483

PostPosted: Sat Apr 17, 2004 3:11 pm    Post subject: Reply with quote

Comunque è strano, perchè e proprio "gameport" che esporta questi simboli

da gameport.c
[code]
EXPORT_SYMBOL(gameport_register_port);
EXPORT_SYMBOL(gameport_unregister_port);
EXPORT_SYMBOL(gameport_register_device);
EXPORT_SYMBOL(gameport_unregister_device);
EXPORT_SYMBOL(gameport_open);
EXPORT_SYMBOL(gameport_close);
EXPORT_SYMBOL(gameport_rescan);
EXPORT_SYMBOL(gameport_cooked_read);
[code]

Perciò se l'hai compilato builtin dovrebbero esserci, inoltre emu10k1-gp dovrebbe venire caricato automaticamente da hotplug...

Sicuro che hai installato il kernel correttamente?

Bye!
_________________
...
Back to top
View user's profile Send private message
motaboy
Retired Dev
Retired Dev


Joined: 15 Dec 2003
Posts: 1483

PostPosted: Sat Apr 17, 2004 3:13 pm    Post subject: Reply with quote

Se proprio non funziona allora prova a compilarlo come modulo.

Hai hotplug attivato?

Bye!
_________________
...
Back to top
View user's profile Send private message
X-Drum
Advocate
Advocate


Joined: 24 Aug 2003
Posts: 2517
Location: ('Modica','Trieste','Ferrara') Italy

PostPosted: Sat Apr 17, 2004 3:16 pm    Post subject: Reply with quote

-Si hotplug è attivo!

-No sull'installazione del kernel nessun dubbio sembra essere andato su senza problemi!
in effetti si il primo fallimento per quanto riguarda emu10k1-gp lo ottento proprio da hotplug in fase di avvio (o ovviamente se rilancio il servizio)

anche se stupida, la domanda :
"forse dovrei mettere tutto come modulo? intendo "CONFIG_GAMEPORT"? "
mi era venuta in mente pensando ad hotplug che cercava il driver come modulo.

comunque che sia una questione di dipendenze?
cioè forse hotplug dovrebbe caricare la porta joystick solo DOPO l'esecuzione di ALSA
_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
motaboy
Retired Dev
Retired Dev


Joined: 15 Dec 2003
Posts: 1483

PostPosted: Sat Apr 17, 2004 3:22 pm    Post subject: Reply with quote

No perchè gameports ce l'hai come builtin è quindi i simboli dovrebbe espotarli sicuramente, e poi ti da errore anche dopo che hai caricato alsa.
E poi gameport non viene caricato da hotplug perchè non è associato a nesuna periferica, ma sono i moduli tipo emu10k1-gp che anno come dipendenza gamepot e quindi quando hotplug carica emu10k1-gp viene caricato prima da modprobe gameport. Ma come ti ho detto essendo gameport builtin questo errore non dovrebbe esserci.

Prova a compilarlo come modulo (gameport) e a vedere che succede.

Bye!
_________________
...
Back to top
View user's profile Send private message
X-Drum
Advocate
Advocate


Joined: 24 Aug 2003
Posts: 2517
Location: ('Modica','Trieste','Ferrara') Italy

PostPosted: Sun Apr 18, 2004 3:31 pm    Post subject: Reply with quote

ho risolto! :D

ho ricompilato il kernel come segue:

Code:

Device Drivers  --->
  Sound  --->
    <M> Sound card support
       Advanced Linux Sound Architecture  --->
         <M> Advanced Linux Sound Architecture
         <M> Sequencer support
         <M> OSS Mixer API
         <M> OSS PCM (digital audio) API
          PCI devices  --->
             <M> EMU10K1 (SB Live! & Audigy, E-mu APS)
 
  Input device support  --->
    <M> Joystick interface
    <M> Gameport support
    <M> SB Live and Audigy gameport support


ecco il mio /etc/modules.d/alsa:

Code:

# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion
alias snd-card-0 snd-emu10k1
## alias snd-card-1 snd-ens1371
##  OSS/Free portion
alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##

# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
##  OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.
options snd cards_limit=1



ed infine il mio /etc/modules.autoload/kernel-2.6
Code:

joydev
sidewinder


adesso tutto funziona perfettamente, sicuramente il problema era
nel kernel, infatti ricompilando il tutto come modulo non ho piu' alcuno problema!

(...ma chissa perche'???) :?:
_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum