SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-05-05 08:26:50

KerrMD
Member
From: Montana
Registered: 2012-02-26
Posts: 47

[SOLVED] No sound via browser through USB speakers

I have a laptop which has a blown sound card. Because of this I have some cheap $15 usb speakers that I've been using. Previously the laptop had windows xp and ran like a snail on valium. The speakers worked fine on XP.

I've gotten the system to use the speakers as default (I think) with a .asoundrc file in my ~/ dir.

pcm.!default {
type hw
card 2
device 0
}
ctl.!default {
type hw
card 2
device 0
}

Card 2 device 0 is how VLC is able to play flv files through the USB speakers. For the life of me I cannot get any browser to play any video I find through the USB speakers. It simply goes into its own dedication to the silent film era.

Any help would be appreciated.

Last edited by KerrMD (2012-05-09 00:46:31)


Laptop: Acer Aspire 5002WLMi - 1.6GHz Turion ML30 CPU, 100GB HDD, ~2GB Ram
Desktop: Dell - Core i7, 2.5TB, 8GB Ram
A+, MCP, Hubbell Wiring Premise

Offline

Be excellent to each other!

#2 2012-05-05 09:25:14

Vansgo
#! Die Hard
Registered: 2011-05-02
Posts: 1,580
Website

Re: [SOLVED] No sound via browser through USB speakers

Possibly, turn off the default/blown soundcard in BIOS and then your system will only have one soundcard option to choose with usb setup.

post

 aplay -l

to see soundcard/s

Offline

#3 2012-05-05 10:39:28

KerrMD
Member
From: Montana
Registered: 2012-02-26
Posts: 47

Re: [SOLVED] No sound via browser through USB speakers

Vansgo wrote:

Possibly, turn off the default/blown soundcard in BIOS and then your system will only have one soundcard option to choose with usb setup.

If only I could. The BIOS on this machine is just too limited to allow such a thing. The machine itself is quite old.


Laptop: Acer Aspire 5002WLMi - 1.6GHz Turion ML30 CPU, 100GB HDD, ~2GB Ram
Desktop: Dell - Core i7, 2.5TB, 8GB Ram
A+, MCP, Hubbell Wiring Premise

Offline

#4 2012-05-05 13:05:01

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,490

Re: [SOLVED] No sound via browser through USB speakers

Post output of

lsmod|grep snd

Last edited by xaos52 (2012-05-05 13:05:52)

Offline

#5 2012-05-05 20:14:51

KerrMD
Member
From: Montana
Registered: 2012-02-26
Posts: 47

Re: [SOLVED] No sound via browser through USB speakers

xaos52 wrote:

Post output of

lsmod|grep snd
snd_usb_audio          50634  0 
snd_usb_lib            11156  1 snd_usb_audio
snd_intel8x0m           8100  0 
snd_intel8x0           19595  0 
snd_ac97_codec         79200  2 snd_intel8x0m,snd_intel8x0
snd_seq_midi            3576  0 
snd_seq_midi_event      3684  1 snd_seq_midi
snd_rawmidi            12513  2 snd_usb_lib,snd_seq_midi
ac97_bus                 710  1 snd_ac97_codec
snd_hwdep               4054  1 snd_usb_audio
snd_pcm                47226  4 snd_usb_audio,snd_intel8x0m,snd_intel8x0,snd_ac97_codec
snd_seq                35327  2 snd_seq_midi,snd_seq_midi_event
snd_timer              12270  2 snd_pcm,snd_seq
snd_seq_device          3673  3 snd_seq_midi,snd_rawmidi,snd_seq
snd                    34387  10 snd_usb_audio,snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_rawmidi,snd_hwdep,snd_pcm,snd_seq,snd_timer,snd_seq_device
snd_page_alloc          4977  3 snd_intel8x0m,snd_intel8x0,snd_pcm
soundcore               3450  1 snd
usbcore                99125  6 snd_usb_audio,snd_usb_lib,usbhid,ohci_hcd,ehci_hcd

Laptop: Acer Aspire 5002WLMi - 1.6GHz Turion ML30 CPU, 100GB HDD, ~2GB Ram
Desktop: Dell - Core i7, 2.5TB, 8GB Ram
A+, MCP, Hubbell Wiring Premise

Offline

#6 2012-05-06 08:49:40

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,490

Re: [SOLVED] No sound via browser through USB speakers

snd_pcm                47226  4 snd_usb_audio,snd_intel8x0m,snd_intel8x0,snd_ac97_codec

Try replacing

card 2

by

card 0

Then

sudo invoke-rc.d alsa-utils restart

and let us know if sound is working.

Do post output of

cat /proc/asound/cards

Module snd_intel8x0m can be blacklisted, unless you use its modem functionality

Offline

#7 2012-05-06 17:31:12

KerrMD
Member
From: Montana
Registered: 2012-02-26
Posts: 47

Re: [SOLVED] No sound via browser through USB speakers

 2 [Speaker        ]: USB-Audio - USB Speaker
                      USB Speaker at usb-0000:00:03.0-2, full speed

I have noticed that upon sytem restart I need to reset the sound device settings inside VLC. The USB speakers seem to change device number. It would be nice if I could blacklist the existing card, although I am unsure as to what you mean when you say 'modem' in relation to the card. I'd like to not have to change those settings in VLC or any other program upon system boot. It is a laptop after all.

Thank you for all help thusfar.


Laptop: Acer Aspire 5002WLMi - 1.6GHz Turion ML30 CPU, 100GB HDD, ~2GB Ram
Desktop: Dell - Core i7, 2.5TB, 8GB Ram
A+, MCP, Hubbell Wiring Premise

Offline

#8 2012-05-06 17:42:04

Vansgo
#! Die Hard
Registered: 2011-05-02
Posts: 1,580
Website

Re: [SOLVED] No sound via browser through USB speakers

curious - never saw the post of

aplay -l

Offline

#9 2012-05-06 18:27:27

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,490

Re: [SOLVED] No sound via browser through USB speakers

(1) edit file /etc/modprobe.d/alsa-base-blacklist.conf as root
Add the following two lines, if they are not already there:

blacklist snd-intel8x0
blacklist snd-intel8x0m

(2) edit /etc/modprobe.d/alsa-base.conf
Add the following line

options snd-usb-audio index=0

Then rebuild initramfs

sudo update-initramfs -u

(3) change your ~/.asoundrc to

pcm.!default {
type hw
card 0
}
ctl.!default {
type hw
card 0
}

(5) restart alsa

sudo invoke-rc.d alsa-utils restart

Check cat /proc/asound/cards
that your usb device is now card 0
(6) use alsamixer to unmute eventual muted channels
(7) Your sound should now work

Last edited by xaos52 (2012-05-06 18:31:00)

Offline

#10 2012-05-06 20:54:01

KerrMD
Member
From: Montana
Registered: 2012-02-26
Posts: 47

Re: [SOLVED] No sound via browser through USB speakers

Vansgo wrote:

curious - never saw the post of

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 1: Speaker [USB Speaker], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Laptop: Acer Aspire 5002WLMi - 1.6GHz Turion ML30 CPU, 100GB HDD, ~2GB Ram
Desktop: Dell - Core i7, 2.5TB, 8GB Ram
A+, MCP, Hubbell Wiring Premise

Offline

#11 2012-05-06 21:11:26

KerrMD
Member
From: Montana
Registered: 2012-02-26
Posts: 47

Re: [SOLVED] No sound via browser through USB speakers

Well, the usb now registers as card 0. Volumeicon shows in the taskbar now and unmuted there and in alsamixer. However, still no sound from vids from within browsers.


Laptop: Acer Aspire 5002WLMi - 1.6GHz Turion ML30 CPU, 100GB HDD, ~2GB Ram
Desktop: Dell - Core i7, 2.5TB, 8GB Ram
A+, MCP, Hubbell Wiring Premise

Offline

#12 2012-05-06 21:12:59

VeasMKII
Member
From: UK
Registered: 2012-05-06
Posts: 21
Website

Re: [SOLVED] No sound via browser through USB speakers

Try replacing card X with the card name from aplay -l, eg

pcm.!default {
type hw
card Speaker
}
ctl.!default {
type hw
card Speaker
}

The card enumeration can change during startup so using the name is preferred.

Offline

#13 2012-05-06 22:23:07

KerrMD
Member
From: Montana
Registered: 2012-02-26
Posts: 47

Re: [SOLVED] No sound via browser through USB speakers

Still no dice. It does not seem to be an enumeration issue either. Is there a way to tell iceweasel to use vlc straight up instead?
I tried a test site for HTML5 and got no sound there either.


Laptop: Acer Aspire 5002WLMi - 1.6GHz Turion ML30 CPU, 100GB HDD, ~2GB Ram
Desktop: Dell - Core i7, 2.5TB, 8GB Ram
A+, MCP, Hubbell Wiring Premise

Offline

#14 2012-05-07 07:50:13

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,490

Re: [SOLVED] No sound via browser through USB speakers

I guess your basic sound config is OK now.
The problem must be  in iceweasel.
Please post output of

uname -a
apt-cache policy iceweasel 

Have you tried other browsers?

Last edited by xaos52 (2012-05-07 07:51:11)

Offline

#15 2012-05-07 09:40:58

KerrMD
Member
From: Montana
Registered: 2012-02-26
Posts: 47

Re: [SOLVED] No sound via browser through USB speakers

uname -a

Linux SDF1 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012 i686 GNU/Linux

apt-cache policy iceweasel

iceweasel:
  Installed: 11.0-1~bpo60+1
  Candidate: 11.0-1~bpo60+1
  Version table:
 *** 11.0-1~bpo60+1 0
        100 http://packages.crunchbang.org/statler-mozilla/ squeeze-backports/iceweasel-release i386 Packages
        100 /var/lib/dpkg/status
     3.5.16-14 0
        500 http://security.debian.org/ squeeze/updates/main i386 Packages
     3.5.16-11 0
        500 http://ftp.debian.org/debian/ squeeze/main i386 Packages

Laptop: Acer Aspire 5002WLMi - 1.6GHz Turion ML30 CPU, 100GB HDD, ~2GB Ram
Desktop: Dell - Core i7, 2.5TB, 8GB Ram
A+, MCP, Hubbell Wiring Premise

Offline

#16 2012-05-07 11:35:25

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,490

Re: [SOLVED] No sound via browser through USB speakers

Have a look at this page - especially plugins: http://support.mozilla.org/en-US/kb/Vid … not%20play

Offline

#17 2012-05-07 17:52:00

KerrMD
Member
From: Montana
Registered: 2012-02-26
Posts: 47

Re: [SOLVED] No sound via browser through USB speakers

xaos52 wrote:

Have a look at this page - especially plugins: http://support.mozilla.org/en-US/kb/Vid … not%20play

You've lost me on that link. I have flash as well as vlc's plugin installed and up to date.


Laptop: Acer Aspire 5002WLMi - 1.6GHz Turion ML30 CPU, 100GB HDD, ~2GB Ram
Desktop: Dell - Core i7, 2.5TB, 8GB Ram
A+, MCP, Hubbell Wiring Premise

Offline

#18 2012-05-07 18:25:54

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,490

Re: [SOLVED] No sound via browser through USB speakers

Perhaps having both flash and the vlc plugin is the cause of your problems. Try disabling one of the two.

Offline

#19 2012-05-08 05:31:38

KerrMD
Member
From: Montana
Registered: 2012-02-26
Posts: 47

Re: [SOLVED] No sound via browser through USB speakers

xaos52 wrote:

Perhaps having both flash and the vlc plugin is the cause of your problems. Try disabling one of the two.

Sadly, that does not appear to be the issue either.

Disabled flash and left vlc plugin running and get an error when I attempt to play a video. Using youtube as a test feed. "Your browser does not currently recognize any of video formats available. Click here to visit our frequently asked questions about HTML5."

When flash is left enabled and vlc is disabled I get no sound as usual.


Laptop: Acer Aspire 5002WLMi - 1.6GHz Turion ML30 CPU, 100GB HDD, ~2GB Ram
Desktop: Dell - Core i7, 2.5TB, 8GB Ram
A+, MCP, Hubbell Wiring Premise

Offline

#20 2012-05-08 08:20:19

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,490

Re: [SOLVED] No sound via browser through USB speakers

You do have sound playing a CD/DVD in vlc, dont you?
and when you run

speaker-test -c 2

you should have some random noise from left/right speakers. Can you confirm?

Last edited by xaos52 (2012-05-08 08:25:21)

Offline

#21 2012-05-09 00:45:15

KerrMD
Member
From: Montana
Registered: 2012-02-26
Posts: 47

Re: [SOLVED] No sound via browser through USB speakers

xaos52 wrote:

you should have some random noise from left/right speakers. Can you confirm?

I installed the test version of #! 11 and the sound works. Complete fresh install. big_smile

Going to mark this [solved-ish]

Thank you for the patience and tons of help to all of you.


Laptop: Acer Aspire 5002WLMi - 1.6GHz Turion ML30 CPU, 100GB HDD, ~2GB Ram
Desktop: Dell - Core i7, 2.5TB, 8GB Ram
A+, MCP, Hubbell Wiring Premise

Offline

#22 2012-07-14 09:10:08

rgnr
#! CrunchBanger
Registered: 2012-02-18
Posts: 125

Re: [SOLVED] No sound via browser through USB speakers

I've got the same issue recently. Here's the solution: https://wiki.archlinux.org/index.php/Ad … sound_card And no alsa restart needed smile

Last edited by rgnr (2012-07-14 09:10:44)

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo