LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   music goes to usb-audio, youtube sound goes to laptop speaker (hda-intel) (http://www.linuxquestions.org/questions/linux-software-2/music-goes-to-usb-audio-youtube-sound-goes-to-laptop-speaker-hda-intel-801505/)

gusblake 04-12-2010 05:28 AM

music goes to usb-audio, youtube sound goes to laptop speaker (hda-intel)
 
Hi,

when I play music in Rhythmbox, the sound comes out of my main speakers via a usb sound card (snd-usb-audio), but sound from the browser comes out of the laptop speakers (snd-hda-intel).

I have tried editing the sound cards' indexes in /etc/modprobe.d/alsa-base, but this didn't have any effect.

Is there a way I can completely disable a certain device or driver, or just make usb-audio the default, in order to force all sound to come out of the main speakers?

Cheers,
Gus

GlennsPref 04-12-2010 06:47 AM

Hi, in /etc/modprobe.d is there a file called black list?

If so add the name of the module to the list, like this

Code:

blacklist snd_hda_intel
this requires a reboot to check,

or see here for more...
http://linux.die.net/man/5/modprobe.conf
http://linux.die.net/man/8/modprobe
Quote:

modprobe [ -r ] [ -v ] [ -n ] [ -i ] [ modulename ... ]

-r --remove
This option causes modprobe to remove, rather than insert a module. If the modules it depends on are also unused, modprobe will try to remove them, too. Unlike insertion, more than one module can be specified on the command line (it does not make sense to specify module parameters when removing modules).

There is usually no reason to remove modules, but some buggy modules require it. Your kernel may not support removal of modules.

-v --verbose
Print messages about what the program is doing. Usually modprobe only prints messages if something goes wrong.

This option is passed through install or remove commands to other modprobe commands in the MODPROBE_OPTIONS environment variable.

-i --ignore-install --ignore-remove
This option causes modprobe to ignore install and remove commands in the configuration file (if any), for the module on the command line (any dependent modules are still subject to commands set for them in the configuration file). See modprobe.conf(5).

-n --dry-run
This option does everything but actually insert or delete the modules (or run the install or remove commands). Combined with -v, it is useful for debugging problems.
Another way is to use index=-2 in the file where you set the index before.

hope this helps, regards Glenn

gusblake 04-12-2010 08:47 AM

Thanks for the detailed reply, adding the blacklist solved it.

Cheers,
Gus

GlennsPref 04-13-2010 04:28 AM

Excellent.

Please mark you thread as solved, in the tread tools.

Regards Glenn

by the way index=-2, is "do not use"

arturo393 04-13-2010 04:20 PM

hi,i have the same problem. is there a way to use usb-audio as default instead of disable laptop speakers drivers?

GlennsPref 04-13-2010 08:01 PM

Hi! Welcome to LQ arturo393!

There is a file called /etc/modprobe.conf

here you can (as root) add the modules you wish to use, and order them with index=
Code:

snd_usb_audio index=1
snd_hda_audio index=2

make sure the names are right, then append them to the end of the file. Reboot to check it works, for next time.

when the usb is not plugged in, it will default to the onboard sound.

For the best response, create a new thread for your question

If the directions above do not suffice.

Please read, How to ask a question. So we are given enough information on your system and problem

to offer an answer.

cheers, Glenn

monkeyamongmen 09-17-2010 11:45 PM

USB sound card fixed
 
Hey, I'm running some fairly recent Debian distro, and just used this to fix my cheapo '3D Sound' usb sound card. Flash now plays sound through my usb, which is great.

Thanks for the help.

Tom


All times are GMT -5. The time now is 04:46 PM.