Last active
October 30, 2022 20:15
-
-
Save smmr0/0ad3cdc6a32fc07a722127d0c8c60b5e to your computer and use it in GitHub Desktop.
ASUS ZenBook 3 Deluxe UX490UA: Ubuntu: Volume controls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://askubuntu.com/a/917257 | |
--- analog-output.conf.common 2021-11-07 18:13:46.834763904 -0600 | |
+++ analog-output.new.conf.common 2021-11-07 18:14:54.876504851 -0600 | |
@@ -134,12 +134,23 @@ | |
; # numbering schemes, so we can't hardcode the full jack name in our configuration | |
; # files. | |
+[Element Master] | |
+switch = mute | |
+volume = ignore | |
+ | |
+ | |
[Element PCM] | |
switch = mute | |
volume = merge | |
override-map.1 = all | |
override-map.2 = all-left,all-right | |
+ | |
+[Element LFE] | |
+switch = mute | |
+volume = ignore | |
+ | |
+ | |
[Element External Amplifier] | |
switch = select | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euf -o pipefail | |
# https://stackoverflow.com/a/246128/2384183 | |
dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
sudo patch -p0 /usr/share/pulseaudio/alsa-mixer/paths/analog-output.conf.common -i "$dir/analog-output.conf.common.patch" | |
pulseaudio -k |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment