From bab0004d085a68133da3a693ba742c593e829d17 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 14 Jan 2026 17:40:53 -0500 Subject: [PATCH] Fix volume controls on Asus G14 --- .../wireplumber.conf.d/alsa-soft-mixer.conf | 18 ++++++++++++++++++ migrations/1768429270.sh | 5 +++++ 2 files changed, 23 insertions(+) create mode 100644 config/wireplumber/wireplumber.conf.d/alsa-soft-mixer.conf create mode 100644 migrations/1768429270.sh diff --git a/config/wireplumber/wireplumber.conf.d/alsa-soft-mixer.conf b/config/wireplumber/wireplumber.conf.d/alsa-soft-mixer.conf new file mode 100644 index 00000000..6fc1dbd9 --- /dev/null +++ b/config/wireplumber/wireplumber.conf.d/alsa-soft-mixer.conf @@ -0,0 +1,18 @@ +## Use software volume control for all ALSA devices. +## This prevents hardware mixer quirks (like muffled audio on Realtek codecs) +## and provides consistent volume behavior across all hardware. + +monitor.alsa.rules = [ + { + matches = [ + { + device.name = "~alsa_card.*" + } + ] + actions = { + update-props = { + api.alsa.soft-mixer = true + } + } + } +] diff --git a/migrations/1768429270.sh b/migrations/1768429270.sh new file mode 100644 index 00000000..adc5559f --- /dev/null +++ b/migrations/1768429270.sh @@ -0,0 +1,5 @@ +echo "Fix volume controls for laptops with problematic Realtek codecs (like Asus G14)" + +mkdir -p ~/.config/wireplumber/wireplumber.conf.d/ +cp $OMARCHY_PATH/config/wireplumber/wireplumber.conf.d/alsa-soft-mixer.conf ~/.config/wireplumber/wireplumber.conf.d/ +systemctl --user restart wireplumber