mudkipme / awesome-minisforum-v3

Useful information for Minisforum V3 AMD Tablet users.
MIT License
62 stars 8 forks source link

volume control fixes for arch #9

Open tandyx opened 1 month ago

tandyx commented 1 month ago

Hiya, dunno if this is the right place to share it, but this repo seems to be a good congregation point for this sorta stuff.

On arch linux, I tried to get the global volume controls to work, but the file location didn't work. after some time I got it to work, but there's probably a better way to do this:

in /etc/wireplumber/wireplumber.conf.d/alsa-soft-mixer.conf:

monitor.alsa.rules = [
  {
    matches = [
      {
        device.name = "~alsa_card.*"
        # factory.name = "api.alsa.pcm.sink"
      }
    ]
    actions = {
      update-props = {
        # Do not use the hardware mixer for volume control. It
        # will only use software volume. The mixer is still used
        # to mute unused paths based on the selected port.
        api.alsa.soft-mixer = true
      }
    }
  },
  {
  matches = [
      {
        node.name = "~alsa_output.*"
      }
    ]
    actions = {
      update-props = {
        # mic breaks w/o
        api.alsa.soft-mixer = false
      }
    }

  }
]
JamiKettunen commented 1 month ago

Are you sure placing the same content in ~/.config/wireplumber/wireplumber.conf.d/alsa-soft-mixer.conf instead doesn't work? Something must be broken with the arch packaging of wireplumber then because that's the per-user configuration drop-in directory and works just fine for me on various distros including Ubuntu 24.10 daily build.

Nice work on finding a fix for the mic issue though, I think I saw that before when testing and was wondering what was wrong. I plan to look into a proper fix for this in case others aren't since I'd really rather not have to add in any config files to get properly working audio I/O on the tablet :)

tandyx commented 1 month ago

Are you sure placing the same content in ~/.config/wireplumber/wireplumber.conf.d/alsa-soft-mixer.conf instead doesn't work? Something must be broken with the arch packaging of wireplumber then because that's the per-user configuration drop-in directory and works just fine for me on various distros including Ubuntu 24.10 daily build.

Nice work on finding a fix for the mic issue though, I think I saw that before when testing and was wondering what was wrong. I plan to look into a proper fix for this in case others aren't since I'd really rather not have to add in any config files to get properly working audio I/O on the tablet :)

When I tried to put it in the right folder, nothing seemed to happen, but maybe it's worth revisiting. Yeah, a proper fix would be nice, but thanks for your contributions to this repo, it's really helped me within these past few days.