8000 Quest to get fully functional Audio · Issue #23 · mudkipme/awesome-minisforum-v3 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Quest to get fully functional Audio #23

Open

Description

@makito89

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 :

  1. Removed the "Workaround for global volume control with the speaker" patch
  2. Edited /usr/share/alsa-card-profile/mixer/paths/analog-output.conf.common and added before [Element PCM]:
[Element Master]
switch = mute
volume = ignore
  1. Rebooted
  2. 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)
  3. 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
  4. Jumped back to Gamemode and the audio still works as it should
  5. 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

  1. makito89 commented on Oct 21, 2024

    @makito89
    Author

    Update.

    I've found that if I run systemctl --user restart wireplumber.service the sound is working as expected.

    The output of wpctl status before service restart (when sound in mute or max)

    PipeWire 'pipewire-0' [1.0.3, user@MinisforumV3, cookie:2209520748]
     └─ Clients:
            31. gamescope-generic                   [1.0.3, user@MinisforumV3, pid:1596]
            34. WirePlumber                         [1.0.3, user@MinisforumV3, pid:1638]
            42. WirePlumber [export]                [1.0.3, user@MinisforumV3, pid:1638]
            75. pipewire                            [1.0.3, user@MinisforumV3, pid:2003]
            76. Steam Voice Settings                [1.0.3, user@MinisforumV3, pid:1823]
            77. Steam                               [1.0.3, user@MinisforumV3, pid:1823]
            78. Chromium input                      [1.0.3, user@MinisforumV3, pid:2520]
            79. wpctl                               [1.0.3, user@MinisforumV3, pid:3009]
    
    Audio
     ├─ Devices:
     │      43. Rembrandt Radeon High Definition Audio Controller [alsa]
     │      44. ACP/ACP3X/ACP6x Audio Coprocessor   [alsa]
     │      45. Family 17h/19h HD Audio Controller  [alsa]
     │  
     ├─ Sinks:
     │  *   54. Family 17h/19h HD Audio Controller Analog Stereo [vol: 0.47]
     │  
     ├─ Sources:
     │      53. ACP/ACP3X/ACP6x Audio Coprocessor Stereo [vol: 1.00]
     │  *   55. Family 17h/19h HD Audio Controller Analog Stereo [vol: 1.00]
     │  
     ├─ Filters:
     │  
     └─ Streams:
    
    Video
     ├─ Devices:
     │      56. Hy-Usb2.0-1*MIC                     [v4l2]
     │      57. Hy-Usb2.0-1*MIC                     [v4l2]
     │      58. USB2.0 FHD UVC WebCam               [v4l2]
     │      59. USB2.0 FHD UVC WebCam               [v4l2]
     │      60. USB2.0 FHD UVC WebCam               [v4l2]
     │      61. USB2.0 FHD UVC WebCam               [v4l2]
     │  
     ├─ Sinks:
     │  
     ├─ Sources:
     │      32. (null)                             
     │      69. Hy-Usb2.0-1*MIC (V4L2)             
     │  *   71. USB2.0 FHD UVC WebCam (V4L2)       
     │      73. USB2.0 FHD UVC WebCam (V4L2)       
     │  
     ├─ Filters:
     │  
     └─ Streams:
    
    Settings
     └─ Default Configured Devices:
    

    and this after restart (when the sound is working)

    PipeWire 'pipewire-0' [1.0.3, user@MinisforumV3, cookie:2209520748]
     └─ Clients:
            31. gamescope-generic                   [1.0.3, user@MinisforumV3, pid:1596]
            61. WirePlumber                         [1.0.3, user@MinisforumV3, pid:3026]
            63. WirePlumber [export]                [1.0.3, user@MinisforumV3, pid:3026]
            75. pipewire                            [1.0.3, user@MinisforumV3, pid:2003]
            76. Steam Voice Settings                [1.0.3, user@MinisforumV3, pid:1823]
            77. Steam                               [1.0.3, user@MinisforumV3, pid:1823]
            78. Chromium input                      [1.0.3, user@MinisforumV3, pid:2520]
            79. wpctl                               [1.0.3, user@MinisforumV3, pid:3037]
    
    Audio
     ├─ Devices:
     │      49. Rembrandt Radeon High Definition Audio Controller [alsa]
     │      50. Family 17h/19h HD Audio Controller  [alsa]
     │      51. ACP/ACP3X/ACP6x Audio Coprocessor   [alsa]
     │  
     ├─ Sinks:
     │  *   73. Family 17h/19h HD Audio Controller Analog Stereo [vol: 0.47]
     │  
     ├─ Sources:
     │      72. ACP/ACP3X/ACP6x Audio Coprocessor Stereo [vol: 1.00]
     │  *   74. Family 17h/19h HD Audio Controller Analog Stereo [vol: 1.00]
     │  
     ├─ Filters:
     │  
     └─ Streams:
    
    Video
     ├─ Devices:
     │      45. USB2.0 FHD UVC WebCam               [v4l2]
     │      46. USB2.0 FHD UVC WebCam               [v4l2]
     │      47. USB2.0 FHD UVC WebCam               [v4l2]
     │      48. USB2.0 FHD UVC WebCam               [v4l2]
     │      55. Hy-Usb2.0-1*MIC                     [v4l2]
     │      65. Hy-Usb2.0-1*MIC                     [v4l2]
     │  
     ├─ Sinks:
     │  
     ├─ Sources:
     │      32. (null)                             
     │      36. USB2.0 FHD UVC WebCam (V4L2)       
     │  *   38. USB2.0 FHD UVC WebCam (V4L2)       
     │      40. Hy-Usb2.0-1*MIC (V4L2)             
     │  
     ├─ Filters:
     │  
     └─ Streams:
    
    Settings
     └─ Default Configured Devices:
    

    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.

  2. ChaosSpectre commented on Feb 10, 2025

    @ChaosSpectre
    Contributor

    Tested your fixes on Fedora KDE 41 and had similar results, but still having issues. Steps I took.

    1. I removed the alsa fix recommended in the readme.
    2. Initially I simply connected my headphones and restarted the wireplumber service. Audio on headphones was fixed, but audio for speakers was stuck in a 3 stage format
    3. I then modified analog-output.conf.common to add in the pieces you mention in your first post. This fixed speaker audio, but broke headphone audio.

    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.

  3. ChaosSpectre commented on Feb 10, 2025

    @ChaosSpectre
    Contributor

    Update

    I found a solution for speakers vs headphones issue.

    1. Add the [Element Master] portion mentioned in the first post to analog-output.conf.common
    2. Modify /usr/share/alsa-card-profile/mixer/paths/analog-output-headphones.conf file. Simply make it so [Element Master] looks like the following, which is basically changing volume from "merge" to "ignore"
    [Element Master]
    switch = mute
    volume = ignore
    override-map.1 = all
    override-map.2 = all-left,all-right
    
    1. Restart the wireplumber service using systemctl --user restart wireplumber.service
    2. Test headphones and speakers, they should be working with volume keys now

    If I find a smoother way to do this I'll post here again.

  4. StellarPhenoma commented on Mar 4, 2025

    @StellarPhenoma

    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 1 Shows PCM as being 100%
    • alsamixer Shows Master as being 100%
    • Increasing or decreasing volume in increments of 5 shows the following:
      • PCM volume decrease in non-linear steps, out of sync with the Master volume control (mathematically comes out to 5.55-5.88 per step if we treat it as a linear step and depending on if we treat the final 1% step in alsamixer -c 1 as 0)
      • At approx. 15% volume on the Master correlates with approx. 1% on the PCM volume control

    Picture

    Image

    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.

  5. Get-A-Pear-Today commented on Mar 6, 2025

    @Get-A-Pear-Today

    Update

    I found a solution for speakers vs headphones issue.

    1. Add the [Element Master] portion mentioned in the first post to analog-output.conf.common
    2. Modify /usr/share/alsa-card-profile/mixer/paths/analog-output-headphones.conf file. Simply make it so [Element Master] looks like the following, which is basically changing volume from "merge" to "ignore"
    [Element Master]
    switch = mute
    volume = ignore
    override-map.1 = all
    override-map.2 = all-left,all-right
    
    1. Restart the wireplumber service using systemctl --user restart wireplumber.service
    2. Test headphones and speakers, they should be working with volume keys now

    If I find a smoother way to do this I'll post here again.

    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.

  6. Sempyos commented on Mar 6, 2025

    @Sempyos

    Update
    I found a solution for speakers vs headphones issue.

    1. Add the [Element Master] portion mentioned in the first post to analog-output.conf.common
    2. Modify /usr/share/alsa-card-profile/mixer/paths/analog-output-headphones.conf file. Simply make it so [Element Master] looks like the following, which is basically changing volume from "merge" to "ignore"
    [Element Master]
    switch = mute
    volume = ignore
    override-map.1 = all
    override-map.2 = all-left,all-right
    
    1. Restart the wireplumber service using systemctl --user restart wireplumber.service
    2. Test headphones and speakers, they should be working with volume keys now

    If I find a smoother way to do this I'll post here again.

    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.

    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.

  7. Get-A-Pear-Today commented on Mar 7, 2025

    @Get-A-Pear-Today

    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.

  8. Sempyos commented on Mar 7, 2025

    @Sempyos

    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.

    Create the needed directories and then try the first fix, if that doesn't work we can try other things.

  9. tandyx commented on Mar 12, 2025

    @tandyx

    is there a way to make this permanent (through user config files)? did a system upgrade and had to redo this fix.

  10. Sempyos commented on Mar 12, 2025

    @Sempyos

    is there a way to make this permanent (through user config files)? did a system upgrade and had to redo this fix.

    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

  11. ChaosSpectre commented on Nov 26, 2025

    @ChaosSpectre
    Contributor

    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

    • Upon boot, if you have these changes and run systemctl --user restart wireplumber.service, nothing happens, audio is still broken
    • If you disable these changes, rebuild nixos, and then run systemctl --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.
    • If you reenable these changes, rebuild nixos, and then run 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.

    1. The issue seems consistent across distros. I've seen mention of issues for Arch, Fedora, Linux Mint, Ubuntu, and NixOS.
    2. The issue seems related to Realtek chips. In all cases I had seen, some sort of Realtek chip was involved in the problem. In my case (which should be the case for everyone who has a Minisforum V3 afaik), it is the Realtek ALC245. This might indicate a driver level issue, and in some cases I had seen people say that updates to the Linux Kernel had fixed their problems. However, I am on Kernel Version 6.17.8 and still having the same issues, so the Kernel fixes might not be the full issue. This might be search bias, so other devices might also be affected.
    3. For every case that I had seen in which someone had dug deep enough, the issue seems to be that the volume of audio is controlled by the PCM value, not the Master. This is why by default, the audio ends up being 0% or 100%, because the default volume control is being ignored entirely. This matches up with what @StellarPhenoma had mentioned earlier in this issue. This nixos forum post has a bunch of people going through and finding the same conclusions, as well as figuring out some partial solutions to it. This explains why the second fix ends up working, because the changes being made essentially bypass the Master control and do PCM control instead.
    4. For those who may not know, PCM is the volume level of software. Technically, PCM should be generated by the software on your device, and then passed to Master to handle volume control. Something is ignoring that pass. The reason why the first fix works is because it changes the mixer from hardware to software, thus reading and adjusting the values from PCM instead of Master. Due to the fact this fix doesn't work for everyone on boot, then it is as @makito89 said in their second post; it seems that wireplumber.service is started before the card is fully initialized.

    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.

  12. Zaf9670 commented on Mar 2, 2026

    @Zaf9670

    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.

  13. ChaosSpectre commented on Mar 2, 2026

    @ChaosSpectre
    Contributor

    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.

    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.

  14. AlphaNERD- commented on Mar 23, 2026

    @AlphaNERD-

    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:

    sudo rpm-ostree install distrobox
    systemctl reboot
    

    After reboot, run the following command to create and enter the distrobox:

    distrobox enter
    

    Then confirm the prompt to create the distrobox.

    Step 3: Install tools to create the package

    Run the following commands to install fpm and its dependencies:

    yum install ruby rpm-build
    gem install fpm
    

    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:

    fpm -s dir -t rpm -p minisforum-audio-fix.rpm --name minisforum-audio-fix --version 0.1.0 --architecture all --description "Fixes volume controls on the Minisforum V3" --maintainer "ChaosSpectre, makito89 and MyFairJulia" analog-output.conf.common=/usr/share/alsa-card-profile/mixer/paths/analog-output.conf.common analog-output-headphones.conf=/usr/share/alsa-card-profile/mixer/paths/analog-output-headphones.conf
    

    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 exit and run the following commands to install the package and reboot your machine:

    sudo rpm-ostree install ~/minisforum-audio-fix.rpm --force-replacefiles
    systemctl reboot
    

    --force-replacefiles is 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0