Soundcard probs and total novice - update - and only a minor problem now

2004-02-06 Thread Steve Hargreaves
OK - thanks to those who replied - you gave me some clues, and now I've got 
the soundcard working using OSS ensuring that the correct modules are used.

Now the minor problem. I use an S99local file to insmod required modules 
(don't go suggesting that I compile my own kernel - last time I tried that I 
nearly trashed my system), which at the moment looks like this:-

insmod usb-ohci
insmod ac97
insmod ac97_codec
insmod ac97_plugin_wm97xx
insmod sound
insmod i810_audio
/usr/X11R6/bin/startx

However - sound and i810_audio don't get inserted. If I open a console and do 
it manually after boot then there's no problem, and the sound works 
wonderfully after re-starting X (restarting the sound server doesn't do it).

Any idea why these modules are still left out?

Thanks.


Steve


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Soundcard probs and total novice - update - and only a minor problem now

2004-02-06 Thread Sam Halliday
Steve Hargreaves wrote:
 Now the minor problem. I use an S99local file to insmod required modules

no need to do that... just add the modules you want to load into the file
/etc/modules (no need for the insmod command) and the debian bootscripts will
load them and their dependencies automagically.
 
 insmod usb-ohci
 insmod ac97
 insmod ac97_codec
 insmod ac97_plugin_wm97xx
 insmod sound
 insmod i810_audio

by the way, `man modprobe` is better than insmod.

 /usr/X11R6/bin/startx

hmm... are you running your system as the root user all the time? if so,
SERIOUSLY consider installing a user for yourself and set up a graphical login,
such as gdm.

  apt-get install gdm

should do the trick (you may need to satisfy dependencies... so use aptitude)

 However - sound and i810_audio don't get inserted. If I open a console and do 
 it manually after boot then there's no problem, and the sound works 
 wonderfully after re-starting X (restarting the sound server doesn't do it).
 
 Any idea why these modules are still left out?

probably because their dependencies are not being met as you are using insmod.
as i said...

cat  /etc/modules  EOF
usb-ohci
ac97
ac97_codec
ac97_plugin_wm97xx
sound
i810_audio
EOF

should do the trick. i'm even confident you don't need a lot of those module in
the file. probably usb-ohci and ac97 will be enough... the bootscripts will
calculate the dependencies for you. is sound even a module? i thought it was
soundcore

hope that helps!

(i take it you are using OSS now as opposed to ALSA?)

cheers,
Sam
-- 
Free High School Science Texts
  http://savannah.nongnu.org/projects/fhsst
Sam's Homepages
  http://fommil.homeunix.org/~samuel
  http://www.ma.hw.ac.uk/~samuel


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Soundcard probs and total novice - update - and only a minor problem now

2004-02-06 Thread Adam Aube
On Friday 06 February 2004 09:09 am, Steve Hargreaves wrote:
 OK - thanks to those who replied - you gave me some clues, and now I've
 got the soundcard working using OSS ensuring that the correct modules
 are used.

Good.

 Now the minor problem. I use an S99local file to insmod required
 modules (don't go suggesting that I compile my own kernel - last time I
 tried that I nearly trashed my system), which at the moment looks like
 this:-

[snipped]

 However - sound and i810_audio don't get inserted. If I open a console
 and do it manually after boot then there's no problem, and the sound
 works wonderfully after re-starting X (restarting the sound server
 doesn't do it).

Try this instead:

echo ac97_codec  /etc/modules
echo ac97_plugin_wm97xx  /etc/modules
echo i810_audio  /etc/modules

Adam


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Soundcard probs and total novice - update - and only a minor problem now

2004-02-06 Thread Steve Hargreaves
On Friday 06 February 2004 2:29 pm, Sam Halliday wrote:

Thanks for the reply (and Adam, who gave similar advice).

  /usr/X11R6/bin/startx

 hmm... are you running your system as the root user all the time? if so,
 SERIOUSLY consider installing a user for yourself and set up a graphical
 login, such as gdm.

Ahem - no - well, ATM, pretty much, but that's only while I get the system 
running properly. I use kde which brings up a login window - and I already 
have a user account set up.

 should do the trick. i'm even confident you don't need a lot of those
 module in the file. probably usb-ohci and ac97 will be enough... the
 bootscripts will calculate the dependencies for you. is sound even a
 module? i thought it was soundcore

 hope that helps!

Well, I seem to have both, and from the list I presented, if I leave anything 
out - the soundcard doesn't work. Go figure :o/

 (i take it you are using OSS now as opposed to ALSA?)

Oh - yep - perhaps I should uninstall ALSA now - thanks for reminding me :o)

OK - I'll try a reboot and see how things work that way, now.

Steve


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Soundcard probs and total novice - update - and only a minor problem now

2004-02-06 Thread Andreas Janssen
Hello

Steve Hargreaves ([EMAIL PROTECTED]) wrote:

 OK - thanks to those who replied - you gave me some clues, and now
 I've got the soundcard working using OSS ensuring that the correct
 modules are used.
 
 Now the minor problem. I use an S99local file to insmod required
 modules (don't go suggesting that I compile my own kernel - last time
 I tried that I nearly trashed my system), which at the moment looks
 like this:-
 
 insmod usb-ohci
 insmod ac97
 insmod ac97_codec
 insmod ac97_plugin_wm97xx
 insmod sound
 insmod i810_audio
 /usr/X11R6/bin/startx
 
 However - sound and i810_audio don't get inserted. If I open a console
 and do it manually after boot then there's no problem, and the sound
 works wonderfully after re-starting X (restarting the sound server
 doesn't do it).

First, don't use insmod, use modprobe. Modprobe will load needed modules
ausotmatically. That means for example that you only have to modprobe
i810_audio, the ac97 modules should be loaded because of denendencies.
Take a look at /lib/modules/$(uname -r)/modules.dep. Next, don't load
modules in your own scripts, it is not necessary. Debian already has a
script that does this for you:

etc/rcS.d/S20modutils - ../init.d/modutils

It will load modules listed in /etc/modules. So for you it should
probably be sufficient to add the following lines to /etc/modules:

usb-ohci
i810_audio

Alternatively, you can add the following line to /etc/modutils/aliases:

alias sound-slot-0 i810_audio

and run update-modules to save the changes to /etc/modules.conf. This
will load the module when the sound device is accessed.

And if you want to start XFree automatically, you can install some login
manager like kdm (from KDE), gdm (from Gnome), wdm or xdm. They will
start automatically at boot time, and at least kdm allows you also to
configure automatic logins, if you want to use that. You should /not/
load startx from an initscript the way you do, because that starts
XFree as root. You should start XFree from your user account.

best regards
Andreas Janssen

-- 
Andreas Janssen
[EMAIL PROTECTED]
PGP-Key-ID: 0xDC801674
Registered Linux User #267976


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]