I have laptop speakers but I don't want to use those; I want to use the speakers connected to my USB port. How can I make my Kanotix use that and not the laptop speakers?

Kano

Titel: RE: USB Speakers on Laptop Verfasst am: 25.10.2006, 09:57 Uhr

Anmeldung: 17. Dez 2003
Beiträge: 16602

Most easy way would be to blacklist die "normal" module or you disable onboard sound in BIOS.

SentralOrigin

Titel: RE: USB Speakers on Laptop Verfasst am: 25.10.2006, 13:51 Uhr

Anmeldung: 22. Okt 2005
Beiträge: 100
Wohnort: California, USA

Can you teach me how to do that please

hubi

Titel: RE: USB Speakers on Laptop Verfasst am: 25.10.2006, 16:24 Uhr

Anmeldung: 22. Jan 2006
Beiträge: 1296
Wohnort: Budapest

I have never blacklisted the onboard sound (but that's a great idea) but use Philips external USB speakers when I visit my parents. I just plug it in and set alsa to hw:1,0 (either in kcontrol or in the apps). Most of the time they are recognized at such.

Blacklisting:
as root edit /etc/modprobe.d/blacklist and add

Zitat:

blacklist snd-whatever

Easy way as root in the shell:

Code:

echo blacklist snd-whatever >> /etc/modprobe.d/blacklist

snd-whatever has to be replaced by the name of your sound-module. You can list your modules with

Code:

lsmod | grep snd

If you do not know what the output means, post it here.

hubi

_________________

SentralOrigin

Titel:Verfasst am: 25.10.2006, 16:50 Uhr

Anmeldung: 22. Okt 2005
Beiträge: 100
Wohnort: California, USA

The sound doesn't work at all now. The USB powered speakers are green lighted which means they are on and operating. Maybe Kanotix is not detecting them? I am using Enlightenment DR16 by the way

hubi

Titel:Verfasst am: 25.10.2006, 17:26 Uhr

Anmeldung: 22. Jan 2006
Beiträge: 1296
Wohnort: Budapest

First two things I would check:

1. alsa hardware setting (xmms does it nicely, gives you the hardware address in alsa-plugin configuration)
2. alsamixer setting. Maybe you have to mute or unmute sth.

You can also check

Code:

lsusb

if your speakers are recognized at all by the USB-system.

hubi

_________________

SentralOrigin

Titel:Verfasst am: 25.10.2006, 17:27 Uhr

Anmeldung: 22. Okt 2005
Beiträge: 100
Wohnort: California, USA

How do I undo a blacklist?

I got the sound back working but it still doesn't come out of the speakers

The music still plays through my laptop speakers instead of my USB speakers.

Do I have to reboot or something?

SentralOrigin

Titel:Verfasst am: 25.10.2006, 20:42 Uhr

Anmeldung: 22. Okt 2005
Beiträge: 100
Wohnort: California, USA

Okay I can't block the mainboard sound from BIOS, but I got the blacklisting correctly so the sound doesn't come out anymore.

But now the sound won't come out at all. How can I make it recognize my USB speakers now?

SentralOrigin

Titel:Verfasst am: 25.10.2006, 20:52 Uhr

Anmeldung: 22. Okt 2005
Beiträge: 100
Wohnort: California, USA

It seems as if my box recognizes the USB as speakers and it knows that it can play audio through it, but it just doesn't want to because it thinks it can't play audio? or something LOL

Any suggestions on how to make it play through my USB? I'm running on Enlightenment DR16, by the way. When I try to play music through XMMS it says sound is not detected but when I check the settings it knows that the USB speakers are there and I can change the volume on the thing and in the XMMS (but it does it both at the same time) so I dunno
Please help
Thank you very much for all the help so far

hubi

Titel:Verfasst am: 25.10.2006, 20:58 Uhr

Anmeldung: 22. Jan 2006
Beiträge: 1296
Wohnort: Budapest

Here is Kanotix, not Delphix

Sometimes a reboot is the quickest way. My cheapo external USB soundcard here needs a reboot and is recognised then by the default settings. xmms does not love it, kde-progs love it.

My USB-speakers at my parent's place are more sophisticated, they can be set to work how I want. And that's the easiest way:
Do you have xmms installed. If yes, open it and look at the list of devices for the alsa-plugin. That's quite handy.

It's the alsa-output-plugin configuration in the xmms options, and there you can see hw:0,0. That is the address for alsa you need to set. In this case, it is my cheapo external soundcard, it runs through default pcm, which yours obviously does not, your default is the internal speakers.

By having got that address, you just adjust all your outputs to alsa with that address. How to teach E DR16 that it uses alsa only, I do not have the slightest idea, I do not know that DE. So try it with xmms first or with any other multimedia software.

You can also try to reload alsa as root in the shell (don't type the #, it inidcates you should be root):

Code:

# /etc/init.d/alsa reload

So you can do:
1. check xmms for address
2. reboot
3. reload alsa

If then there is still no sound, I am out of ideas

Greetings
hubi

_________________

hubi

Titel:Verfasst am: 25.10.2006, 21:07 Uhr

Anmeldung: 22. Jan 2006
Beiträge: 1296
Wohnort: Budapest

SentralOrigin hat folgendes geschrieben::

When I try to play music through XMMS it says sound is not detected but when I check the settings it knows that the USB speakers are there and I can change the volume on the thing and in the XMMS (but it does it both at the same time) so I dunno

Alright, some cheapo USB as well obviously (cheap does not mean automatically the price you pay :-/).

Ok, same problem here, I was never able to convince xmms to play sth. All KDE-stuff works perfectly.

But you have the address. Try other players with that hardware-adress (hw:x,x).

It's obviously a hardware thing, my Philips-Speakers are plug and play. With every application and with every player, and they can play sound simultaniously from various sources. With my cheapo here I can't do those funny things.

hubi

_________________

SentralOrigin

Titel:Verfasst am: 25.10.2006, 21:15 Uhr

Anmeldung: 22. Okt 2005
Beiträge: 100
Wohnort: California, USA

Damnit it still doesn't play

In the Alsa config, should I box off the "Use software volume control"? I don't know what that does. It still won't play any sound, even when I removed the blacklist from the mainboard lol. But I set it to play as the hw 0,0 USB device. Damnit

SentralOrigin

Titel:Verfasst am: 25.10.2006, 21:17 Uhr

Anmeldung: 22. Okt 2005
Beiträge: 100
Wohnort: California, USA

I tried using Amarok but my error message is:

xine was unable to initialize any audio drivers.

SentralOrigin

Titel:Verfasst am: 25.10.2006, 21:20 Uhr

Anmeldung: 22. Okt 2005
Beiträge: 100
Wohnort: California, USA

I just unplugged my USB speakers and I plugged them back in and now they won't even turn on

Do I need to mount the USB drive maybe?

I just tried playing music in Kaffeine or whatever and I got the error:

xine
failed to initialize all audio drivers

Or something along the lines of that

hubi

Titel:Verfasst am: 25.10.2006, 21:35 Uhr

Anmeldung: 22. Jan 2006
Beiträge: 1296
Wohnort: Budapest

SentralOrigin hat folgendes geschrieben::

But I set it to play as the hw 0,0 USB device.

The address should be hw:0,0

Or was it a typo?

_________________

hubi

Titel:Verfasst am: 25.10.2006, 21:37 Uhr

Anmeldung: 22. Jan 2006
Beiträge: 1296
Wohnort: Budapest

SentralOrigin hat folgendes geschrieben::

I tried using Amarok but my error message is:

xine was unable to initialize any audio drivers.

Ah! I know that one.

Keep xine, set device to automatic. If that works, reset it to alsa. And if that works, keep it.

hubi

_________________

hubi

Titel:Verfasst am: 25.10.2006, 21:40 Uhr

Anmeldung: 22. Jan 2006
Beiträge: 1296
Wohnort: Budapest

SentralOrigin hat folgendes geschrieben::

I just unplugged my USB speakers and I plugged them back in and now they won't even turn on

None of my speakers/soundcards which are USB love being unplugged. I usually reboot then, just because I don't know how to get the modules back. Quite dumb those things. Mounting does not help, they are no filesystems.

hubi

_________________

mzilikazi

Titel:Verfasst am: 25.10.2006, 23:22 Uhr

Team Member

Anmeldung: 17. Dez 2003
Beiträge: 1109
Wohnort: Ganymede

SentralOrigin hat folgendes geschrieben::

I just unplugged my USB speakers and I plugged them back in and now they won't even turn on

Do I need to mount the USB drive maybe?

I just tried playing music in Kaffeine or whatever and I got the error:

xine
failed to initialize all audio drivers

Or something along the lines of that

What make/model/brand of USB speakers? I've never owned any USB speakers myself but Google might know something about them.