Tremulous Forum

General => Troubleshooting => Topic started by: FeistyBas on March 01, 2007, 09:51:02 am

Title: Select non-default soundcard?
Post by: FeistyBas on March 01, 2007, 09:51:02 am
Is it possible to select a non-default soundcard?
There is a non-fixed bug in Feisty that doesn't let me change the default soundcard, so for every application I need to set the soundcard to the one I am using. The onboard one is pony, so I really want to use my Soundblaster.
Title: Select non-default soundcard?
Post by: tomek-k on March 01, 2007, 10:55:24 am
try to disable your onboard soundcard in BIOS
Title: Select non-default soundcard?
Post by: next_ghost on March 01, 2007, 05:45:36 pm
Or even better, get rid of the kernel driver for your on-board sound card.
Title: Select non-default soundcard?
Post by: vcxzet on March 01, 2007, 05:47:43 pm
best method is to remove onboard chip
Title: Select non-default soundcard?
Post by: Odin on March 01, 2007, 06:08:39 pm
God dammit why can't you people answer his question?
Title: Select non-default soundcard?
Post by: David on March 01, 2007, 06:43:47 pm
Try export AUDIODEV=<somthing> before running trem.

also can try SDL_PATH_DSP

I got this from http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fenvvars?action=highlight&value=environment+variable
and there are more options there.
Title: Select non-default soundcard?
Post by: FeistyBas on March 01, 2007, 06:56:05 pm
Quote from: "tomek-k"
try to disable your onboard soundcard in BIOS

already did that, but my Feisty is so cool to still find and install it. It doesn't show in Wondiws so it's probably a linux 'feature'.

Quote from: "next_ghost"
Or even better, get rid of the kernel driver for your on-board sound card.

if I knew how, i wouldn't be asking questions on a forum, would I?
So please give some hints how.

Quote from: "vcxzet"
best method is to remove onboard chip

see above.

Quote from: "Odin"
God dammit why can't you people answer his question?

LOL!!! Relax mate, i'm not in a rush or anything.. :-)

Quote from: "David"
Try export AUDIODEV=<somthing> before running trem.

also can try SDL_PATH_DSP

I got this from http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fenvvars?action=highlight&value=environment+variable
and there are more options there.


Thanks, I'm working on it right now.

[edit]
the export AUDIODEV=<something> worked for me, thanks for the help!!
[/edit]
Title: Select non-default soundcard?
Post by: tomek-k on March 01, 2007, 07:51:05 pm
Quote from: "Odin"
God dammit why can't you people answer his question?

 :roll:
Quote from: "FeistyBas"
Quote from: "tomek-k"
try to disable your onboard soundcard in BIOS

already did that, but my Feisty is so cool to still find and install it. It doesn't show in Wondiws so it's probably a linux 'feature'.


 :eek:  :eek:  :eek:  :eek:  :eek:  :eek:  :eek:  :eek:
Title: Select non-default soundcard?
Post by: FeistyBas on March 01, 2007, 08:40:33 pm
Quote from: "tomek-k"


 :eek:  :eek:  :eek:  :eek:  :eek:  :eek:  :eek:  :eek:


I'm not joking here, I'll look into it later on, but I know how to disable my soundcard in bios. Could be just a failing mobo.
Title: Select non-default soundcard?
Post by: Caveman on March 01, 2007, 09:07:19 pm
Sounds to me more like a windows-user installed linux with a mouse, without reading up anything in a manual .)

See the sections about installing modules, modules.conf and the like. ("man modprobe|rmmod")
Title: Select non-default soundcard?
Post by: FeistyBas on March 01, 2007, 09:45:09 pm
Quote from: "Caveman"
Sounds to me more like a windows-user installed linux with a mouse, without reading up anything in a manual .)

See the sections about installing modules, modules.conf and the like. ("man modprobe|rmmod")


Thanks man, you're really a big help. Keep up the good work.
Title: Select non-default soundcard?
Post by: TinMan on March 01, 2007, 10:07:24 pm
http://ubuntuforums.org/showthread.php?t=205449
"Configuring default soundcards / stopping multiple soundcards from switching"
is probably the part you want to read, setting the option to index=-2 will prevent the card from grabbing any open slots, it's what I did to disable my default sound card.
Title: Select non-default soundcard?
Post by: next_ghost on March 01, 2007, 11:25:49 pm
Quote from: "FeistyBas"
Quote from: "next_ghost"
Or even better, get rid of the kernel driver for your on-board sound card.

if I knew how, i wouldn't be asking questions on a forum, would I?
So please give some hints how.


Most distros have kernel sound drivers as kernel modules. Run `lsmod` and look for lines that begin with snd_..., one of them should be named similar to the onboard sound card. If you're still not sure which one(s) it is, skip these modules:

Code: [Select]
snd_pcm_oss
snd_mixer_oss
snd_seq_oss
snd_seq_midi_event
snd_seq
snd_seq_device
snd_pcm
snd_timer
snd
snd_page_alloc


These ones are ALSA core modules, don't even think about touching them! Next to them, there should be the soundblaster modules and the rest are the modules you want to get rid of. You'll find them somewhere in /lib/modules/kernel-version/, use `find -name` to locate them, they're most likely called 'lsmod_name.ko'.

DO NOT delete them yet, use some package manager tool to query those files to find out which package they belong to. Then try reinstalling that package without them if it's possible. If not, post the names of those modules here to make sure you really don't delete something important.

Oh, and yes, Linux kernel does detect the devices without help from BIOS. However, you can disable that feature when you compile the kernel (disable Plug and Play ACPI support in device drivers configuration).
Title: Select non-default soundcard?
Post by: tomek-k on March 01, 2007, 11:44:06 pm
Quote from: "FeistyBas"
Quote from: "tomek-k"


 :eek:  :eek:  :eek:  :eek:  :eek:  :eek:  :eek:  :eek:


I'm not joking here, I'll look into it later on, but I know how to disable my soundcard in bios. Could be just a failing mobo.


hmm... so I must check my integrated sound card if it behaves the same way...

I thought it is pretty weird because I was convinced that disabling in BIOS such elements as integrated controllers means also cutting off their power, so the OS wouldn't be able to see 'em.

For examle, I've disabled the floppy controller in my BIOS and linux doesn't sees it (I've checked the dmesg output).

But maby it just depends on the mb?
Title: Select non-default soundcard?
Post by: vcxzet on March 02, 2007, 05:21:59 am
Quote from: "tomek-k"
Quote from: "FeistyBas"
Quote from: "tomek-k"


 :eek:  :eek:  :eek:  :eek:  :eek:  :eek:  :eek:  :eek:


I'm not joking here, I'll look into it later on, but I know how to disable my soundcard in bios. Could be just a failing mobo.


hmm... so I must check my integrated sound card if it behaves the same way...

I thought it is pretty weird because I was convinced that disabling in BIOS such elements as integrated controllers means also cutting off their power, so the OS wouldn't be able to see 'em.

For examle, I've disabled the floppy controller in my BIOS and linux doesn't sees it (I've checked the dmesg output).

But maby it just depends on the mb?

as I said removing the  onboard sound chip is the best method
Title: Select non-default soundcard?
Post by: FeistyBas on March 02, 2007, 08:19:30 am
Quote from: "next_ghost"



Oh, and yes, Linux kernel does detect the devices without help from BIOS. However, you can disable that feature when you compile the kernel (disable Plug and Play ACPI support in device drivers configuration).


Thanks, having a look into that tonight, unfortunately I'm at work at the moment...
Title: Select non-default soundcard?
Post by: next_ghost on March 02, 2007, 11:16:46 am
Quote from: "FeistyBas"
Thanks, having a look into that tonight, unfortunately I'm at work at the moment...


If you're going to compile your own kernel, you can as well skip seaching for the modules and simply disable them in kernel configuration (unless you use external ALSA modules package from apt). Use `make menuconfig` in the kernel sources base directory to run the interactive kernel configuration tool.

Don't forget to get the .config file from your distro kernel package. It should be in /proc/config.gz (gzipped) or included in the kernel apt package. Ungzip/copy it to your kernel sources base directory (eg. /usr/src/linux/.config) before you run `make menuconfig`. Otherwise you'll have to configure the kernel from scratch.
Title: Select non-default soundcard?
Post by: tomek-k on March 02, 2007, 01:00:14 pm
Quote from: "vcxzet"
as I said removing the  onboard sound chip is the best method


yeah... I think that would work :D
Title: Select non-default soundcard?
Post by: FeistyBas on March 08, 2007, 05:59:18 pm
This did work and is a bit faster than recompiling the kernel:
Code: [Select]

sudo asoundconf list


I got back:

Names of available sound cards:
V8237
Live

Then do:

Code: [Select]
sudo asoundconf set-default-card Live

followed by a reboot

Sure enough, the Live is now set to default.
Title: Select non-default soundcard?
Post by: next_ghost on March 08, 2007, 06:41:10 pm
Wouldn't `/etc/init.d/alsasound restart` or whatever your ALSA init script is called work even without restart?