diff --git a/install/config/all.sh b/install/config/all.sh index 1656a2d5..a7b28c02 100644 --- a/install/config/all.sh +++ b/install/config/all.sh @@ -64,6 +64,8 @@ run_logged $OMARCHY_INSTALL/config/hardware/apple/fix-spi-keyboard.sh run_logged $OMARCHY_INSTALL/config/hardware/apple/fix-suspend-nvme.sh run_logged $OMARCHY_INSTALL/config/hardware/apple/fix-t2.sh +run_logged $OMARCHY_INSTALL/config/hardware/lenovo/fix-yoga-pro7-bass-speakers.sh + run_logged $OMARCHY_INSTALL/config/hardware/fix-bcm43xx.sh run_logged $OMARCHY_INSTALL/config/hardware/fix-surface-keyboard.sh run_logged $OMARCHY_INSTALL/config/hardware/fix-yt6801-ethernet-adapter.sh diff --git a/install/config/hardware/lenovo/fix-yoga-pro7-bass-speakers.sh b/install/config/hardware/lenovo/fix-yoga-pro7-bass-speakers.sh new file mode 100644 index 00000000..4459f0ae --- /dev/null +++ b/install/config/hardware/lenovo/fix-yoga-pro7-bass-speakers.sh @@ -0,0 +1,10 @@ +# Fix bass speakers on Lenovo Yoga Pro 7 14IAH10 +# The ALC287 codec needs a pin quirk to route audio to both AMP speakers. +# Without this quirk, only one speaker works and bass output is missing. +# Reference: https://wiki.archlinux.org/title/Lenovo_Yoga_9i_2022_(14AiPI7) + +if omarchy-hw-match "Yoga Pro 7 14IAH10"; then + sudo tee /etc/modprobe.d/lenovo-yoga-pro7-bass.conf <<'EOF' +options snd-sof-intel-hda-generic hda_model=alc287-yoga9-bass-spk-pin +EOF +fi diff --git a/migrations/1778001804.sh b/migrations/1778001804.sh new file mode 100755 index 00000000..38413d36 --- /dev/null +++ b/migrations/1778001804.sh @@ -0,0 +1,3 @@ +echo "Fix bass speakers on Lenovo Yoga Pro 7 14IAH10" + +source "$OMARCHY_PATH/install/config/hardware/lenovo/fix-yoga-pro7-bass-speakers.sh"