Forum › Forums › New users › New Users and General Questions › Firefox no sound
Tagged: Sound in firefox and tor bundles
- This topic has 9 replies, 3 voices, and was last updated Mar 14-1:28 pm by ModdIt.
-
AuthorPosts
-
November 17, 2019 at 2:24 pm #29437Member
Raziel408
Hi again:
Loving the distroI have a problem. I have no clue. I like to use the lastest version of firefox. So I download the .tar and uncompres it on my home dir. But the sound of firefox is not working. I tried installing pulse audio but no. I’m sure the sound is working in my pc. since I managed to play audio files and the audio test is working.
November 17, 2019 at 4:13 pm #29439Moderator
caprea
::Hi Raziel408, first of all it is not necessary to install pulseaudio to have sound in firefox.
If you start firefox with
apulse firefoxthen the sound is working. apulse is pre-installed with antiX.
Second, you can install the latest firefox with the package-installer in control-centre > system > package-installer.
But you say you have pulseaudio already installed and still no sound. Maybe you just uninstall it again and use apulse.
Or if you want to keep pulseaudio, let’s see if it runs first.
ps -C pulseaudioIf there are no numbers in the output only letters, pulseaudio isn’t running. Try to start it with
pulseaudio -DNovember 17, 2019 at 4:38 pm #29440MemberRaziel408
::Thanks,
apulse firefox
didn’t work
ps -C pulseaudio
returned no numbers, so:
pulseaudio -D
Worked!
I installed pulseaudio based in: https://support.mozilla.org/en-US/kb/fix-common-audio-and-video-issues#w_you-may-need-to-install-the-required-pulseaudio-software
Thanks a lot!November 18, 2019 at 3:17 am #29450Moderator
caprea
::OK. fine it works.
If you have the problem pulseaudio doesn’t autostart after booting, you can open
control-centre > session > User session configuration
It will open the startup-file of the desktop-session with geany
There you can add below
pulseaudio --startAlso, if you use pulseaudio, you may want to install “pavucontrol”. It gives you better adjustment possibilities.
November 22, 2019 at 8:10 am #29621MemberRaziel408
::Hi Raziel408, first of all it is not necessary to install pulseaudio to have sound in firefox.
If you start firefox with
apulse firefoxthen the sound is working. apulse is pre-installed with antiX.
Second, you can install the latest firefox with the package-installer in control-centre > system > package-installer.
But you say you have pulseaudio already installed and still no sound. Maybe you just uninstall it again and use apulse.
Or if you want to keep pulseaudio, let’s see if it runs first.
ps -C pulseaudioIf there are no numbers in the output only letters, pulseaudio isn’t running. Try to start it with
pulseaudio -DI’m no fan of having a lot of packages for the sema thing, so now I’m trying to use apulse. I installed firefox via apt-get and removed pulseaudio.
No sound. Re install firefox via apt-get, no sound. tried:apulse firefoxNow that works. Tried to purge firefox, and reinstall. Still no sound. But still apulse firefox works. How do I make firefox use apulse by default?
November 22, 2019 at 12:00 pm #29661Moderator
caprea
::This is quick and easy to do, but depends heavily on how you want to open firefox (from menu or toolbar)and which desktop you use, eg icewm, rox-fluxbox and so on.
The conky should tell you about it under “Uptime”.Please post this information.November 22, 2019 at 12:11 pm #29663MemberModdIt
::Hi All, I posted on this a while back, still works fine for me.
Install patchelf #: sudo apt update && sudo apt-get install patchelfChange to within your firefox packet or installation directory. cd to get there
Then do: patchelf –set -rpath /usr/lib/apulse libxul.so
patchelf –set-rpath /usr/lib/apulse libxul.so
If you installed to a root directory, not home (from a repo or a deb file). prefix with
sudo or your command will fail due to lack of rights.Note: Watch out for browser updates, you will in my experience have to repeat the abovew steps afterwards.
You might have to change firefox about config preferences to following. I had to but that might change with new versions.
security.sandbox.content.syscall_whitelist;16
security.sandbox.content.write_path_whitelist;/dev/snd/Current Firefox versions seem to ignore ~/.asound.conf (~/. means hidden file in home, dot before file or folder name =hidden)
you may need to select the default audio output to a different one. If the system settings do not work for you please try following. I was unable to get my Audigy card working using GUI options, sound always defaulted to Onboard, even with that option switched off in BIOS, this fixed it.
Put an .asound.conf in your home:pcm.!default {
type hw
card N
}ctl.!default {
type hw
card N
}Substitute N with a small integer, 0 for your first sound card (which is the default), 1 for your second, and so on.
The ! in !default isn’t negation here! It is an overriding of the previously (system-wide defined) global alsa.conf .
November 23, 2019 at 9:03 am #29693Moderator
caprea
::How do I make firefox use apulse by default?
Change to within your firefox packet or installation directory. cd to get there
Then do: patchelf –set -rpath /usr/lib/apulse libxul.so
patchelf –set-rpath /usr/lib/apulse libxul.so
Yes, it’s also possible to use Moddit’s solution, instead of changing menu-entries and so on.
On my antiX19 64bit, and firefox installed via the package-installer or apt-get (and due to the forum-software, which turns 2 dashes into one),
I had to change the commands to the following
sudo apt update && sudo apt-get install patchelf
cd /opt/firefoxsudo patchelf --set-rpath /usr/lib/x86_64-linux-gnu/apulse /opt/firefox/libxul.soNo other modifications have been necessary here.
But you have to watch up for firefox-updates, which require the repeating of the procedure.November 29, 2019 at 8:41 am #29984MemberRaziel408
::Sorry for the delayed answer.
How do I make firefox use apulse by default?
On my antiX19 64bit, and firefox installed via the package-installer or apt-get (and due to the forum-software, which turns 2 dashes into one),
I had to change the commands to the following
sudo apt update && sudo apt-get install patchelf
cd /opt/firefoxsudo patchelf --set-rpath /usr/lib/x86_64-linux-gnu/apulse /opt/firefox/libxul.soNo other modifications have been necessary here.
But you have to watch up for firefox-updates, which require the repeating of the procedure.I tried this solution. It worked perfectly. Thanks a lot.
I was also aware the I could change the menus, but that solution didn’t seem very efficient. Thanks a lot anyway.March 14, 2020 at 1:28 pm #33513MemberModdIt
::Hi all, You may now only have to do patchelf job once, latest updates have just worked with .asound config in
home.
Content in my case is as below. Depending on your setup you may need to change this.#Substitute N with a small integer, 0 for your first sound card (which is the default),
#1 for your second, and so on.pcm.!default {
type hw
card 0
}ctl.!default {
type hw
card 0
} -
AuthorPosts
- You must be logged in to reply to this topic.