LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-28-2003, 04:11 PM   #1
digsby0007
Member
 
Registered: Jan 2003
Posts: 94

Rep: Reputation: 15
Unhappy mozilla/flash sound problem


I have red hat 8.0 installed on my AMD board 256megs of ram, and a 950 duron processor. I have installed the flash/shockwave patch and I can vierw those types of web pages, but there is no sound. I can, however, hear all other types of sounds; Gaim, system sounds, mp3's, movies...etc but now web sites will have any sound. I am using mozilla to browse.

Any Thoughts?
Digsby
 
Old 03-15-2004, 11:24 AM   #2
static_drc
LQ Newbie
 
Registered: Oct 2003
Distribution: Debian GNU/Linux
Posts: 23

Rep: Reputation: 15
Sound in Flash

SOLUTION

I have the Mozilla Flash plugin and I have the stand alone Flash player. (gflashplayer) Both would play flash animations, neither would play sound. It was driving me bonkers.

The solution was for me to:

1) su
2) cd /dev/snd
3) chmod 666 pcm*

I found this out because sound would play for the root user but not for a normal user, and because the solution is very similar to an old 'no sound' fix for older versions of Slackware.

Sound and Flash work great now!

Keep in mind that this is written specifically about Slackware 9.1 (and it's ALSA sound setup). If you are having the same problem but are using a different distribution, you may need to tweak the solution. Good luck!

Dave

=================
Slackware 9.1
Transmeta Crusoe - Fujitsu P2110 notebook
Firefox 0.8 / Mozilla 1.5
ALSA sound (default in Slackware 9.1)
Flash plugin and player 6v79
 
Old 04-05-2004, 11:32 PM   #3
Calinate
LQ Newbie
 
Registered: Mar 2004
Distribution: Debian
Posts: 5

Rep: Reputation: 0
I'm having the same problem but I'm using Debian and OSS. I have esd running but I can't hear any flash animations. Any ideas?
 
Old 04-10-2004, 12:41 PM   #4
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 48
The above trick also seems to work for old OSS with the difference of course that you should chmod 666 /dev/dsp0 (or whatever your dsp device is). I had the same problem with Slackware 9.1 and OSS, but now it works. You could try that (I'm not sure if Flash can use ESD at all?)
 
Old 04-10-2004, 01:08 PM   #5
Calinate
LQ Newbie
 
Registered: Mar 2004
Distribution: Debian
Posts: 5

Rep: Reputation: 0
Yep that did it! Thank you!
 
Old 04-20-2004, 04:54 PM   #6
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 48
Chmod is obviously not the best possible solution because of potential security risks involved. What also seems to work is joining desired users to group sys (edit /etc/group and add appropriate usernames separated by comma to the line that says "sys::3:root,bin,adm"). That way you don't have to touch the permissions of /dev/dsp?.
 
Old 05-23-2004, 08:53 PM   #7
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
hello guys! i've been trying to get sound to work on my flash plugin for months with my alsa system...

i ran into this thread a few minutes ago, and i tried the chmod 666 /dev/snd/pcm* thing but still no luck...

i'm wondering if perhaps you'd have an idea of something else i could try...

i'm running slackware 9.1 (full install)...

sound works fine on everything except the flash plugin, i'm using mozilla firefox 0.8...

here's what my lsmod looks like:

Module Size Used by Tainted: P
nvidia 1965152 6 (autoclean)
snd-pcm-oss 37092 0
snd-mixer-oss 12016 0 [snd-pcm-oss]
parport_pc 14724 1 (autoclean)
lp 6752 0 (autoclean)
parport 23264 1 (autoclean) [parport_pc lp]
ipt_MASQUERADE 1304 1 (autoclean)
ipt_limit 856 3 (autoclean)
ipt_LOG 3448 6 (autoclean)
ipt_state 504 7 (autoclean)
iptable_mangle 2072 0 (autoclean) (unused)
iptable_filter 1644 1 (autoclean)
ip_conntrack_irc 3024 0 (unused)
ip_conntrack_ftp 3856 1 (autoclean)
ip_nat_ftp 2704 0 (unused)
iptable_nat 15800 2 [ipt_MASQUERADE ip_nat_ftp]
ip_conntrack 19944 2 [ipt_MASQUERADE ipt_state ip_conntrack_irc ip_conntrack_ftp ip_nat_ftp iptable_nat]
ip_tables 12480 9 [ipt_MASQUERADE ipt_limit ipt_LOG ipt_state iptable_mangle iptable_filter iptable_nat]
usb-ohci 19048 0 (unused)
usbcore 58976 1 [usb-ohci]
sis900 12684 1
8139too 14472 1
mii 2304 0 [8139too]
crc32 2880 0 [sis900 8139too]
snd-cmipci 17972 0
gameport 1452 0 [snd-cmipci]
snd-pcm 56064 0 [snd-pcm-oss snd-cmipci]
snd-page-alloc 6004 0 [snd-pcm]
snd-opl3-lib 5764 0 [snd-cmipci]
snd-hwdep 4864 0 [snd-opl3-lib]
snd-timer 13444 0 [snd-pcm snd-opl3-lib]
snd-mpu401-uart 3136 0 [snd-cmipci]
snd-rawmidi 12672 0 [snd-mpu401-uart]
snd-seq-device 3920 0 [snd-opl3-lib snd-rawmidi]
snd 29956 0 [snd-pcm-oss snd-mixer-oss snd-cmipci snd-pcm snd-opl3-lib snd-hwdep snd-timer snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore 3332 7 [snd]
ide-scsi 9424 0
agpgart 44100 3
apm 9640 2


any input you can give me to help me through this "silent nightmare" would be ever so greatly appreciated... thank you so much in advance...
 
Old 05-29-2004, 02:14 PM   #8
mr_bod
LQ Newbie
 
Registered: May 2004
Posts: 11

Rep: Reputation: 0
Thankyou for this thread. It's fixed my problem. Help from the community is one of the things I love about GNU.
So cheers!
 
Old 05-29-2004, 03:57 PM   #9
PaulFrields
LQ Newbie
 
Registered: May 2004
Distribution: Fedora Core
Posts: 10

Rep: Reputation: 1
alienDog,

An even better way to do this is to use PAM. The /etc/security/console.perms file shows what devices the console user inherits over device files, so that the physical console user gets to use floppies, CD's, etc. Add /dev/snd to this list (it should be pretty apparent how when you look at the file, or use the man pages). When the user logs out, the ownership can be set to revert to, for example, a mode of 600 owned by root.root.
 
Old 06-09-2004, 08:27 AM   #10
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 48
There is no /etc/security/console.perms in slackware and I have no idea how PAM works in it Furthermore it causes problems. Consider this:

You don't use graphical login program (xdm, gdm, kdm or whatever) but instead you login via text console.

You have an autologout feature on your shell enabled and you start X (which will result in console-session being closed after a specified time since you're most likely not using the console anymore) OR you like to close the console manually after starting X.

What will happen is that once the autologout kicks in or you log out, you also lose your ownership on the device files and they stop working for you. I remember this being a problem for me when I was using RedHat. It's a matter of taste to some extent of course...

Another potential problem with this approach is that since only one user can own the devices at a time, only one user can access them at a time (at least I think so, correct me if I'm wrong). If you have several user accounts on your machine and you use them for different tasks, it could become really annoying...

It would also be possible to have /etc/login.defs to add the user to a number of groups upon login (like floppy, cdrom and whatever). This doesn't seem to be a problem with autologout/logout as the user will remain a member of these groups even if the original console is closed. At the moment this is the approach I'm using.

Last edited by alienDog; 06-09-2004 at 08:46 AM.
 
Old 06-12-2004, 09:35 PM   #11
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
i finally got the sound on my flash plugin working... all i did was change the permissions of /dev/dsp0 from crw-rw--w- to crw-rw-rw- using:

chmod o+r /dev/dsp0

a chmod 666 /dev/dsp0 (as suggested on one of the posts above) would have also worked...

just thought i'd share this in case it could benefit anybody else also...

by the way, i'm on slackware 9.1 with mozilla firefox 0.8...
 
Old 07-09-2004, 12:20 PM   #12
worker.ant
LQ Newbie
 
Registered: Jul 2004
Distribution: RH9
Posts: 1

Rep: Reputation: 0
help with flash sound

Hello. I'm having trouble with mozilla and flash animations. THe sound does not work. I got the latest Mozilla (1.7) on RH9, and just figured out how to get the Flash to work. However, there is no sound. At this point, I'm stuck. Help?
 
Old 07-10-2004, 07:07 AM   #13
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
it's usually a permissions issue...

try doing something like chmod 666 /dev/dsp0


Last edited by win32sux; 07-10-2004 at 07:09 AM.
 
Old 07-22-2004, 01:11 PM   #14
zapotek
LQ Newbie
 
Registered: Jun 2004
Distribution: PCLinuxOS
Posts: 16

Rep: Reputation: 0
I have the same problem... but in suse 9.0. I really can't figure out why mozilla 1.4 even realplayer8 don't play sounds, but the image is very well. I'm sure now, that's not a problem with file permissions, because I can't hear the sound even if I'm logged as root.
 
Old 07-29-2004, 03:46 PM   #15
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 48
Can you hear sounds from any program? Have you checked your mixer settings? At least slackware leaves sound levels to zero by default when using alsa (silly...)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
flash problem in mozilla can't find /usr/lib/mozilla ejbest Linux - Software 6 01-12-2010 09:48 AM
mozilla flash- no sound dbkluck Debian 14 12-26-2003 05:35 PM
flash sound in mozilla nickwu2000 Linux - Newbie 1 10-23-2003 02:51 AM
sound problem on flash player plugin/mozilla lucas Linux - Newbie 0 07-25-2003 01:29 PM
no sound, video, flash from mozilla ... ryanmcdonald Linux - General 2 10-19-2002 02:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration