[solved] Firefox no sound
Posted: Thu Jul 22, 2021 1:02 am
For those having issues with sound in the Firefox browser. Follow the instructions below.
Try testing other browser and application to see if sound works...
Try switching the default device...
Test with other applications...
Test with Firefox, if not working, follow instructions below.
OK, now that other applications are working... next let's get Firefox working...
Get some info from the firefox package.
In firefox, open a new tab, about:config
Create media.cubeb.backend as indicated above, set it to oss. Restart Firefox.
This worked for me.
Additionally, you can set it to sndio, but you will have to start the sndiod.
Here is my freebsd/ghostbsd versions.
Try testing other browser and application to see if sound works...
Try switching the default device...
Code: Select all
root@ghostbsd-pc:/usr/home/ # sysctl hw.snd.default_unit=1
root@ghostbsd-pc:/usr/home/ # cat /dev/sndstat
Installed devices:
pcm0: <Conexant CX20585 (Right Analog)> (play/rec)
pcm1: <Conexant CX20585 (Internal Analog)> (play/rec) default
pcm2: <Intel Ibex Peak (HDMI/DP 8ch)> (play)
pcm3: <Intel Ibex Peak (HDMI/DP 8ch)> (play)
Test with Firefox, if not working, follow instructions below.
OK, now that other applications are working... next let's get Firefox working...
Get some info from the firefox package.
Code: Select all
f@ghostbsd-pc ~> pkg info -xD firefox
More reading:
## Audio backend
Currently used audio backend can be inspected on `about:support` page.
Supported backends and default probing order is as follows:
- `pulse-rust` if `pulseaudio` package is installed (PULSEAUDIO option)
- `jack` if `jackit` package is installed (JACK option)
- `sndio` if `sndio` package is installed (SNDIO option)
- `alsa` if `alsa-lib` package is installed (ALSA option)
- `oss` (always available)
To force a specific backend open `about:config` page and create
`media.cubeb.backend` preference.
Create media.cubeb.backend as indicated above, set it to oss. Restart Firefox.
This worked for me.
Additionally, you can set it to sndio, but you will have to start the sndiod.
Code: Select all
f@ghostbsd-pc ~> sndiod
Code: Select all
Name : os-generic-userland
Version : 21.06.23
Installed on : Sun Jul 18 20:28:37 2021 PDT
Origin : os/userland
Architecture : FreeBSD:13:amd64