# \[Linux\] Sharing Audio Output volume between Anki and Spotify

**URL:** <https://forums.ankiweb.net/t/linux-sharing-audio-output-volume-between-anki-and-spotify/68731>\
**Category:** Help\
**Created:** [February 7, 2026, 11:43am UTC](https://forums.ankiweb.net/t/linux-sharing-audio-output-volume-between-anki-and-spotify/68731 "2026-02-07T11:43:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![crab](https://avatars.discourse-cdn.com/v4/letter/c/c5a1d2/32.png) [@crab](https://forums.ankiweb.net/u/crab)\
**Post date:** [February 7, 2026, 11:43am UTC](https://forums.ankiweb.net/t/linux-sharing-audio-output-volume-between-anki-and-spotify/68731/1 "2026-02-07T11:43:46Z")

</div>

So on Linux, Anki uses mpv to play audio. The problem I encountered is that somehow, when changing the audio of spotify (Flatpak) the audio of Anki also changes to this exact volume. The contrary is not the case: Changing the mpv audio volume (the one Anki uses) does not change the spotify volume.

I don’t even know if this is the right place to ask this question since this looks more like a general mpv “problem”. There is also the fact that I don’t understand how mpv and spotify interact with each other but maybe that’s unrelated here.

So if there is some kind stranger that knows a bit more about how Anki uses mpv (and maybe about how mpv gets used in general) and how I can _decouple_ those two programs, I would be very happy.

---

<div class="post-metadata">

**Author:** ![kelciour](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/kelciour/32/14770_2.png) [@kelciour](https://forums.ankiweb.net/u/kelciour)\
**Post date:** [February 9, 2026, 10:22pm UTC](https://forums.ankiweb.net/t/linux-sharing-audio-output-volume-between-anki-and-spotify/68731/2 "2026-02-09T22:22:11Z")

</div>

> <https://github.com/mpv-player/mpv/issues/16978>
>
> \### mpv Information
> 
> \`\`\`bash
> mpv v0.40.0-dirty Copyright © 2000-2025 mpv/MPlayer…/mplayer2 projects
> built on Oct 4 2025 16:40:45
> libplacebo version: v7.351.0
> FFmpeg version: n8.0
> FFmpeg library versions:
> libavcodec 62.11.100
> libavdevice 62.1.100
> libavfilter 11.4.100
> libavformat 62.3.100
> libavutil 60.8.100
> libswresample 6.1.100
> libswscale 9.1.100
> \`\`\`
> 
> \### Other Information
> 
> \`\`\`text
> \- Linux version: Arch Linux
> \- Kernel Version: Linux loq15iax9 6.17.5-arch1-1.1 #1 SMP PREEMPT\_DYNAMIC Sat, 25 Oct 2025 04:05:25 +0000 x86\_64 GNU/Linux
> \- GPU Model:
> 
> 00:02.0 VGA compatible controller \[0300\]: Intel Corporation Alder Lake-S \[UHD Graphics\] \[8086:468b\] (rev 0c)
> 01:00.0 VGA compatible controller \[0300\]: NVIDIA Corporation AD107M \[GeForce RTX 4050 Max-Q / Mobile\] \[10de:28e1\] (rev a1)
> 
> \- Mesa/GPU Driver Version: \`OpenGL version string: 4.6.0 NVIDIA 580.95.05\`
> \- Window Manager and Version: Hyprland 0.51.1
> \- Source of mpv: form Arch's repo \`sudo pacman -S mpv\`
> \- Latest known working version: N/A
> \- Issue started after the following happened: N/A
> \`\`\`
> 
> \### Reproduction Steps
> 
> \- Have a spotify package from arch official repo: \`spotify-launcher 0.6.3-2.1\`
> \- Change the volume level via spotify's volume knob or pavucontrol (let's say set it to 40%)
> \- Open an audio file (not a video) with mpv
> 
> 
> \### Expected Behavior
> 
> mpv should have an independent volume from spotify (spotify at 40%, mpv at 100%).
> 
> \### Actual Behavior
> 
> mpv's volume is lowered to 40%
> If you change it back to 100% through pavucontrol, it stays that way until you adjust spotify’s volume again and reopen the mpv audio file.
> 
> \### Log File
> 
> \[output.txt\](https://github.com/user-attachments/files/23206690/output.txt)
> 
> \### Sample Files
> 
> I have a video demonstration 
> 
> https://github.com/user-attachments/assets/7c84437e-5836-4724-8fa9-6566d778faf3
> 
> \### I carefully read all instruction and confirm that I did the following:
> 
> \- \[x\] I tested with the latest mpv version to validate that the issue is not already fixed.
> \- \[x\] I provided all required information including system and mpv version.
> \- \[x\] I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of \`--log-file=output.txt\`.
> \- \[x\] I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
> \- \[x\] I attached the full, untruncated log file.
> \- \[x\] I attached the backtrace in the case of a crash.

If I understood it correctly, try to update to the latest mpv version (v0.41.0) or add the following line into the `mpv.conf` file located in the Anki2 folder ([Managing Files - Anki Manual](https://docs.ankiweb.net/files.html#user-data)) and restart Anki. The `mpv.conf` file doesn’t exist by default and needs to be created.

```auto
ao=pulse

```

---

<div class="post-metadata">

**Author:** ![crab](https://avatars.discourse-cdn.com/v4/letter/c/c5a1d2/32.png) [@crab](https://forums.ankiweb.net/u/crab)\
**Post date:** [February 10, 2026, 10:16am UTC](https://forums.ankiweb.net/t/linux-sharing-audio-output-volume-between-anki-and-spotify/68731/3 "2026-02-10T10:16:42Z")

</div>

Thanks, thats exactly it.  
Since currently on the official fedora repos there is still the v0.40 version I solved it by using the mpv.conf file.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [March 12, 2026, 10:17am UTC](https://forums.ankiweb.net/t/linux-sharing-audio-output-volume-between-anki-and-spotify/68731/4 "2026-03-12T10:17:23Z")

</div>

Closed on March 12, 2026, 10:17am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
