Autor |
Nachricht |
|
Titel: USB Speakers on Laptop
Verfasst am: 25.10.2006, 05:01 Uhr
|
|
Anmeldung: 22. Okt 2005
Beiträge: 100
Wohnort: California, USA
|
|
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? |
|
|
|
|
|
|
Titel: RE: USB Speakers on Laptop
Verfasst am: 25.10.2006, 09:57 Uhr
|
|
Anmeldung: 17. Dez 2003
Beiträge: 16790
|
|
Most easy way would be to blacklist die "normal" module or you disable onboard sound in BIOS. |
|
|
|
|
|
|
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 |
|
|
|
|
|
|
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 |
_________________
|
|
|
|
|
|
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 |
|
|
|
|
|
|
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 |
_________________
|
|
|
|
|
|
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
Yes it does detect my USB speakers
How do I get to blacklist? I get error
root@Debian:/home/sentralorigin # /etc/modprobe.d/blacklist
bash: /etc/modprobe.d/blacklist: Permission denied
Also how do I log out of root from console
I got a list of these and blacklisted every single one with echo blacklist snd-blahblah-blah >> /etc/modprobe.d/blacklist
snd_usb_audio 69984 1
snd_intel8x0m 14732 6
snd_intel8x0 28956 3
snd_ac97_codec 86304 2 snd_intel8x0m,snd_intel8x0
snd_ac97_bus 3072 1 snd_ac97_codec
snd_usb_lib 14720 1 snd_usb_audio
snd_pcm_oss 39456 0
snd_mixer_oss 14720 1 snd_pcm_oss
snd_rawmidi 20000 1 snd_usb_lib
snd_seq_device 7308 1 snd_rawmidi
snd_hwdep 7812 1 snd_usb_audio
snd_pcm 66052 7 snd_usb_audio,snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_timer 19588 1 snd_pcm
snd 42852 29 snd_usb_audio,snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_rawmidi,snd_seq_device,snd_hwdep,snd_pcm,snd_timer
soundcore 8288 1 snd
snd_page_alloc 8456 3 snd_intel8x0m,snd_intel8x0,snd_pcm
usbcore 107908 6 snd_usb_audio,snd_usb_lib,usbhid,ehci_hcd,uhci_hcd |
|
|
|
|
|
|
Titel:
Verfasst am: 25.10.2006, 17:57 Uhr
|
|
Anmeldung: 17. Dez 2003
Beiträge: 16790
|
|
Thats not needed. Only blacklist snd_intel8x0. |
|
|
|
|
|
|
Titel:
Verfasst am: 25.10.2006, 18:29 Uhr
|
|
Team Member
Anmeldung: 17. Dez 2003
Beiträge: 1109
Wohnort: Ganymede
|
|
SentralOrigin hat folgendes geschrieben::
How do I get to blacklist? I get error
root@Debian:/home/sentralorigin # /etc/modprobe.d/blacklist
bash: /etc/modprobe.d/blacklist: Permission denied
You need to use an editor to edit the file. Not sure what editor you have available so I'll use xedit as an example:
Code:
$ su
# xedit /etc/modprobe.d/blacklist
I like an small editor called leafpad but you can use any editor you like.
Code:
# apt-get install leafpad
Zitat:
Also how do I log out of root from console
CTRL+D
OR
Code:
exit
|
_________________ Ubuntu - An ancient African word for "Can't install Debian"
|
|
|
|
|
|
Titel:
Verfasst am: 25.10.2006, 19:32 Uhr
|
|
Anmeldung: 22. Okt 2005
Beiträge: 100
Wohnort: California, USA
|
|
Oops
How do I log into root from the login screen? I can only see my name 'SentralOrigin' and no option to log in as root as when I had 2005-4 |
Zuletzt bearbeitet von SentralOrigin am 25.10.2006, 19:41 Uhr, insgesamt 2 Male bearbeitet
|
|
|
|
|
|
Titel:
Verfasst am: 25.10.2006, 19:35 Uhr
|
|
Anmeldung: 22. Okt 2005
Beiträge: 100
Wohnort: California, USA
|
|
mzilikazi hat folgendes geschrieben::
SentralOrigin hat folgendes geschrieben::
How do I get to blacklist? I get error
root@Debian:/home/sentralorigin # /etc/modprobe.d/blacklist
bash: /etc/modprobe.d/blacklist: Permission denied
You need to use an editor to edit the file. Not sure what editor you have available so I'll use xedit as an example:
Code:
$ su
# xedit /etc/modprobe.d/blacklist
I like an small editor called leafpad but you can use any editor you like.
Code:
# apt-get install leafpad
I tried to edit and then save but I get this error:
The document could not be saved, as it was not possible to write to file:///etc/modprobe.d/blacklist.
Check that you have write access to this file or that enough disk space is available.
I think it's because I'm not logged in as root. How can I log in to root? I don't have the option to because I only have one option to log in as "SentralOrigin" |
|
|
|
|
|
|
Titel:
Verfasst am: 25.10.2006, 19:42 Uhr
|
|
Anmeldung: 22. Jan 2006
Beiträge: 1296
Wohnort: Budapest
|
|
Do blacklisting like that:
Code:
echo blacklist snd_intel8x0 >> /etc/modprobe.d/blacklist
After that it is blacklisted, you wrote a line into a textfile.
To undo the blacklisting, open the file through the console as root like that (there are two ways, chose one of them:
Code:
# mcedit /etc/modprobe.d/blacklist
# vim /etc/modprobe.d/blacklist
If you are more familiar with gui-editors (I suppose so) become root the following way:
Code:
sux
[password]
kedit /etc/modprobe.d/blacklist
Then you can either delete the line or you just comment that line with # plus SPACE. So it might look like that:
Zitat:
# blacklist snd_intel8x0
Btw, you cannot start the file blacklist in a shell just by typing it's path, it is a text-file.
hubi |
_________________
|
|
|
|
|
|
Titel:
Verfasst am: 25.10.2006, 19:58 Uhr
|
|
Team Member
Anmeldung: 17. Dez 2003
Beiträge: 1109
Wohnort: Ganymede
|
|
SentralOrigin hat folgendes geschrieben::
[
I think it's because I'm not logged in as root. How can I log in to root? I don't have the option to because I only have one option to log in as "SentralOrigin"
Well logging into Xwindows as root is not a good idea nor is it necessary. Just use a terminal, get root and edit your file from there.
Code:
$ su
# xedit /etc/modprobe.d/blacklist
Note the $ indicates you are USER
the # indicates that you are ROOT |
_________________ Ubuntu - An ancient African word for "Can't install Debian"
|
|
|
|
|
|
Titel:
Verfasst am: 25.10.2006, 20:01 Uhr
|
|
Anmeldung: 22. Okt 2005
Beiträge: 100
Wohnort: California, USA
|
|
Thank you sir that fixed all my problems EXCEPT the sound problem :p
The music still plays through my laptop speakers instead of my USB speakers.
Do I have to reboot or something? |
|
|
|
|
|
|
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? |
|
|
|
|
|
|
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 |
|
|
|
|
|
|
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.
Look at this pic:
http://img508.imageshack.us/img508/6852/xmmsjd9.png
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 |
_________________
|
|
|
|
|
|
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 |
_________________
|
|
|
|
|
|
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 |
|
|
|
|
|
|
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. |
|
|
|
|
|
|
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 |
|
|
|
|
|
|
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? |
_________________
|
|
|
|
|
|
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 |
_________________
|
|
|
|
|
|
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 |
_________________
|
|
|
|
|
|
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. |
_________________ Ubuntu - An ancient African word for "Can't install Debian"
|
|
|
|
|
|