Repository navigation
Description
Hello everyone,
I'm currently using HoloISO (Arch based distribution that attempts to create Steam Deck experience as close as possible).
The patch "Workaround for global volume control with the speaker" works but creates other issues like unusable headphone jack (no sound in headphones and once headphones jack is inserted-removed there is no longer sound from speakers).
So I started to investigate alternative options and I found that the issue seems to be with the alsa card profile initialization.
Here are the steps I've done so far :
- Removed the "Workaround for global volume control with the speaker" patch
- Edited
/usr/share/alsa-card-profile/mixer/paths/analog-output.conf.commonand added before[Element PCM]:
[Element Master]
switch = mute
volume = ignore
- Rebooted
- Sound still has 2 modes mute-max volume (in reality is 3 modes : mute when volume is 0 .. push volume up once volume is 50% .. push volume up and the volume is at max till the volume bar is filled)
- Jumped from Steam Gamemode to Desktop (KDE Plasma using X11 window manager) and audio is almost (see below the second behavior for reason) 100% working as it should over speakers and also when using headphone jack
- Jumped back to Gamemode and the audio still works as it should
- Reboot and I'm back to a step 4 behavior and need to repeat step 5 to get back the working audio
While playing with this I've noticed 2 different behaviors in alsamixer.
First behavior is when I reboot the system and get into Gamemode or Desktop (previous step 4 - the one where the sound has only 3 modes mute-50%-100%) - I've opened a ssh session and launched alsamixer -c 1 and while playing with the volume buttons I've noticed that only the Speaker bar is changing - the PCM is "stuck" at 100% while Master is at 50% (as expected due to changes made at previous step 2)
Second behavior is only when I've switched from Gamemode to Desktop (previous step 5 - with almost 100% working audio) - with alsa
8000
mixer -c 1 still opened the volume buttons now change the PCM bar and when the PCM bar is at 0% the Speaker bar drops from 100 to 68 and then to 30 and to 0/mute. When I increase the volume the first 4 pushes of volume up button there is no sound output as the Speaker bar goes from mute to 30 then to 68 and finaly to 100 (this is the reason I said that audio is almost 100% working) before PCM bar start to move and the sound is present in speakers or headphones.
Now I'm trying to figure out what happens, what gets initialized and how when switching from Gamemode to Desktop that makes the audio to work.
Any ideas and hints on where to dig further are welcome.
Activity
makito89 commentedon Oct 21, 2024
Update.
I've found that if I run
systemctl --user restart wireplumber.servicethe sound is working as expected.The output of
wpctl statusbefore service restart (when sound in mute or max)and this after restart (when the sound is working)
From this I suspect that the wireplumber.service is started before the card is fully initialized by pipewire as the IDs for the Audio tree change after service restart or maybe I'm wrong as I do not have any knowledge regarding how linux audio works.
ChaosSpectre commentedon Feb 10, 2025
Tested your fixes on Fedora KDE 41 and had similar results, but still having issues. Steps I took.
Thus far, I have to basically choose between using headphones or using speakers. Something in some recent update seems to have changed how this all works from the original fix, and audio isn't being sent to the current port in use correctly.
I have my audio profile set to analog stereo output, in case that helps anyone.
ChaosSpectre commentedon Feb 10, 2025
Update
I found a solution for speakers vs headphones issue.
systemctl --user restart wireplumber.serviceIf I find a smoother way to do this I'll post here again.
StellarPhenoma commentedon Mar 4, 2025
I utilized these changes on Fedora 41 Workstation, as well as Ubuntu 24.10 Desktop, and it is a working fix to get global volume control working. However, I am noticing quirks that appear to come as a result of alsa's volume control methodology — aka, the dB-based way it appears to raise and lower volume.
Sadly, because it handles volume differently than we read it, 1:1 volume control is not possible with this fix. Here is what I found, and I hope maybe someone could have some insight on how to fix this:
alsamixer -c 1Shows PCM as being 100%alsamixerShows Master as being 100%alsamixer -c 1as 0)Picture
Utilizing the original soft-mixer fix from this repository breaks this fix and the same issue persists — this time with broken alsamixer monitoring. This fix is essentially a longer version of the Arch Wiki's suggestion when dealing with some external DACs, available here: https://wiki.archlinux.org/title/PipeWire#No_sound_from_USB_DAC_until_30%_volume.
I have additionally looked into the other fixes here: https://bbs.archlinux.org/viewtopic.php?id=296733, but the posts are old enough that workarounds and fixes have already been implemented into the codebase and are thus not applicable. Is this the worst position to be in the world? No. But I would like a fix for full, fine-grain control of my audio experience on this laptop.
I'll post if I find anything additional or helpful, here.
Get-A-Pear-Today commentedon Mar 6, 2025
I've tried your fix with Linux Mint. Unfortunately, it seems to do nothing, still just mute or max volume. The original fix doesn't work for Mint because the files are setup differently, so that's a thing. Would you happen to know how I might get this to work on Linux Mint?
Copy/paste reply from another closed issue. Felt it was more appropriate to post here instead.
Sempyos commentedon Mar 6, 2025
Hi, you wouldn't mind showing us the files that are different ? And just going to ask if you can check that you are using pipewire and wireplumber.
Get-A-Pear-Today commentedon Mar 7, 2025
There is no wireplumber.cont.d folder, and nothing mentioning wireplumber in thr /etc directory, but there is in the /usr/share directory. The wireplumber.conf is located here as well in the /usr/share/wireplumber/wireplumber.conf.
Sempyos commentedon Mar 7, 2025
Create the needed directories and then try the first fix, if that doesn't work we can try other things.
tandyx commentedon Mar 12, 2025
is there a way to make this permanent (through user config files)? did a system upgrade and had to redo this fix.
Sempyos commentedon Mar 12, 2025
There might be some /etc/ files you could copy/make but I don't know for sure. Probably go check alsa docs for config files
ChaosSpectre commentedon Nov 26, 2025
Following up here as I switched distros and the issue came back, but now that I've used linux for a few months I feel more confident in figuring out this issue.
I switched from Fedora KDE to NixOS (still using KDE).
Nixos has a hardware channel that you can easily pull in fixes for devices done by the community. For the V3, we have a variety of fixes that make things easy to manage. However, there is still an issue with the audio.
Upon reviewing the audio.nix file, you can actually see that all the audio fixes in there are directly pulled from this repo, just changed so they fit with the way that nixos handles configuration files.
Initially when I pulled these in, they didn't work. My audio went from only having either 0% or 100% volume, to no volume at all. I decided to tinker around found these results
systemctl --user restart wireplumber.service, nothing happens, audio is still brokensystemctl --user restart wireplumber.service, you will be back to the 0% and 100% scenario. For those not on nixos, I believe this is equivalent to just deleting or reverting your config to its default state, and then running the command.systemctl --user restart wireplumber.service, it actually now fixes the sound issues entirely. For those not on nixos, I believe this is equivalent to adding the changes back in that you deleted or reverted in the previous step, and then running the command.This was not ideal, but it did work at least until the next reboot. However, digging around the issues on this repo, I saw someone mention the command
sudo alsactl restore, and so I decided to give that a shot on a fresh reboot with the changes active. Sure enough, that actually fixed it, no rebuilds or adjustments required. For those who are using the first fix in this repo's readme, this should work to resolve your audio issues after reboot if you are still having problems.While it is great that I now only need to perform one step to fix my audio instead of multiple steps, the ideal scenario is performing no steps at all and audio just works. So, I am still working on digging into this, but for those who might also want to try diving in, I would like to provide what I have been able to discover so far about the issue.
I will continue to dig into this until it is resolved. If it is a driver level issue, then I guess this is a good excuse to start learning C lol.
Zaf9670 commentedon Mar 2, 2026
Just changed over to CachyOS from Bazzite and noticed all the activity for audio. Any luck on your end @ChaosSpectre? Thanks for all the work so far.
ChaosSpectre commentedon Mar 2, 2026
Nah not yet, not in a way that solves all the issues. Generally I either get working speakers but connecting a headset disables all audio until reboot, or speakers are unable to go between 0 and 100 audio but headphones work great.
Still chipping away at it in my free time. Nixos has made it easier and harder to figure this out, but I think I'm close to a solution. Never expected to learn how audio works on linux this deeply lol.
AlphaNERD- commentedon Mar 23, 2026
Build instructions for alternative audio fix on Fedora Atomic and distros based on it (Bazzite OS, etc.)
I took the liberty to create instructions for the alternative audio fix on Bazzite. I recently bought the Minisforum V3, installed Bazzite OS and ran into the audio issues. The first fix could be applied on Bazzite OS without so much as a hiccup, but didn't help. The alternative fix needed some additional work to be applied on Bazzite OS. Luckily this wasn't the first time i wrapped a small workaround for Fedora Atomic, so i made these build instructions for the alternative audio fix on Bazzite, Fedora Atomic, etc.
Step 1: Prepare configuration files
Just follow the instructions in the repo, but make sure to save the modified files in the user directory instead of the system directories.
Do not try to save them directly in the system directories. Fedora Atomic is an immutable distro and thus will block changes made like this. We need to package these files first to later apply the updated files as an override package.
Step 2: Prepare distrobox
We need distrobox to create an environment to build the rpm package. We could theoretically work with rpm-ostree but temporarily layering a development environment onto Fedora wastes a lot of time.
Anyway, run these commands to install distrobox:
After reboot, run the following command to create and enter the distrobox:
Then confirm the prompt to create the distrobox.
Step 3: Install tools to create the package
Run the following commands to install
fpmand its dependencies:fpm is the tool that will help us build the package and we need ruby to install and run it as well as rpm-build so fpm can create the rpm package.
Step 4: Create the rpm package
Create the rpm package using the following command:
This command takes the modified configuration files and creates an rpm package around them that will put the files in the correct location.
Step 5: Install your newly created package
Leave the distrobox behind using the command
exitand run the following commands to install the package and reboot your machine:--force-replacefilesis important, as Fedora Atomic doesn't like it too much when we try to replace files that the OS (or other packages) supply.Step 6: Profit!