Firefox no sound

Forum Forums New users New Users and General Questions Firefox no sound

  • This topic has 9 replies, 3 voices, and was last updated Mar 14-1:28 pm by ModdIt.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #29437
    Member
    Raziel408

      Hi again:
      Loving the distro

      I 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.

      #29439
      Moderator
      caprea
        Helpful
        Up
        0
        ::

        Hi Raziel408, first of all it is not necessary to install pulseaudio to have sound in firefox.

        If you start firefox with
        apulse firefox

        then 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 pulseaudio

        If there are no numbers in the output only letters, pulseaudio isn’t running. Try to start it with

        pulseaudio -D

        #29440
        Member
        Raziel408
          Helpful
          Up
          0
          ::

          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!

          #29450
          Moderator
          caprea
            Helpful
            Up
            0
            ::

            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 --start

            Also, if you use pulseaudio, you may want to install “pavucontrol”. It gives you better adjustment possibilities.

            #29621
            Member
            Raziel408
              Helpful
              Up
              0
              ::

              Hi Raziel408, first of all it is not necessary to install pulseaudio to have sound in firefox.

              If you start firefox with
              apulse firefox

              then 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 pulseaudio

              If there are no numbers in the output only letters, pulseaudio isn’t running. Try to start it with

              pulseaudio -D

              I’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 firefox

              Now 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?

              #29661
              Moderator
              caprea
                Helpful
                Up
                0
                ::

                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.

                #29663
                Member
                ModdIt
                  Helpful
                  Up
                  0
                  ::

                  Hi All, I posted on this a while back, still works fine for me.
                  Install patchelf #: sudo apt update && sudo apt-get install patchelf

                  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

                  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 .

                  #29693
                  Moderator
                  caprea
                    Helpful
                    Up
                    0
                    ::

                    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/firefox

                    sudo patchelf --set-rpath /usr/lib/x86_64-linux-gnu/apulse /opt/firefox/libxul.so
                    

                    No other modifications have been necessary here.
                    But you have to watch up for firefox-updates, which require the repeating of the procedure.

                    #29984
                    Member
                    Raziel408
                      Helpful
                      Up
                      0
                      ::

                      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/firefox

                      sudo patchelf --set-rpath /usr/lib/x86_64-linux-gnu/apulse /opt/firefox/libxul.so
                      

                      No 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.

                      #33513
                      Member
                      ModdIt
                        Helpful
                        Up
                        0
                        ::

                        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
                        }

                      Viewing 10 posts - 1 through 10 (of 10 total)
                      • You must be logged in to reply to this topic.