Firefox install - nutthawit/alpine-dotfile GitHub Wiki

Install a web browser

Install firefox and Thai font

doas apk add firefox font-noto font-noto-thai
doas fc-cache -fv

Troubleshooting

Fix pipewire when pause video on youtube sound volume is reset to default

This is a common, though frustrating, issue that is often related to how PipeWire's session manager (WirePlumber) handles streams from applications like web browsers (especially Firefox) when they pause. When you pause, the audio stream is considered "idle," and PipeWire/WirePlumber might drop the stream and its settings (including volume) to save power.

If you are primarily using Firefox you can force Firefox to use the older ALSA backend instead of PipeWire's default PulseAudio emulation.

  1. Install the ALSA PipeWire Bridge: You must have the package that bridges ALSA to PipeWire installed. The name varies by distribution, but is often pipewire-alsa.

    doas apk add pipewire-alsa
    
  2. Change Firefox's Backend:

    • Type about:config in the Firefox address bar and press Enter.
    • Accept the risk warning.
    • Search for media.cubeb.backend.
    • If it doesn't exist, create a new String value and name it media.cubeb.backend.
    • Select type String and set its value to: alsa
    • Restart Firefox.

This makes Firefox bypass the PipeWire PulseAudio layer, which may prevent the volume reset bug.