mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Revert "Make fixing the F13 AMD audio input just a thing that happens"
This reverts commit c6cd49a0aa.
This commit is contained in:
@@ -361,9 +361,10 @@ show_update_config_menu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
show_update_hardware_menu() {
|
show_update_hardware_menu() {
|
||||||
case $(menu "Restart" " Wi-Fi\n Bluetooth") in
|
case $(menu "Restart" " Wi-Fi\n Bluetooth\n AMD Audio (F13)") in
|
||||||
*Wi-Fi*) present_terminal omarchy-restart-wifi ;;
|
*Wi-Fi*) present_terminal omarchy-restart-wifi ;;
|
||||||
*Bluetooth*) present_terminal omarchy-restart-bluetooth ;;
|
*Bluetooth*) present_terminal omarchy-restart-bluetooth ;;
|
||||||
|
*Audio*) present_terminal omarchy-restart-amd-audio ;;
|
||||||
*) show_update_menu ;;
|
*) show_update_menu ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|||||||
10
bin/omarchy-restart-amd-audio
Executable file
10
bin/omarchy-restart-amd-audio
Executable file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
CARD=$(pactl list cards | grep -B20 "Family 17h/19h" | grep "Name: " | awk '{print $2}')
|
||||||
|
|
||||||
|
if [[ -n $CARD ]]; then
|
||||||
|
pactl set-card-profile "$CARD" "HiFi (Mic1, Mic2, Speaker)" 2>/dev/null
|
||||||
|
else
|
||||||
|
echo "AMD audio card not found"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
@@ -47,7 +47,6 @@ source $OMARCHY_INSTALL/config/hardware/printer.sh
|
|||||||
source $OMARCHY_INSTALL/config/hardware/usb-autosuspend.sh
|
source $OMARCHY_INSTALL/config/hardware/usb-autosuspend.sh
|
||||||
source $OMARCHY_INSTALL/config/hardware/ignore-power-button.sh
|
source $OMARCHY_INSTALL/config/hardware/ignore-power-button.sh
|
||||||
source $OMARCHY_INSTALL/config/hardware/nvidia.sh
|
source $OMARCHY_INSTALL/config/hardware/nvidia.sh
|
||||||
source $OMARCHY_INSTALL/config/hardware/fix-f13-amd-audio-input.sh
|
|
||||||
|
|
||||||
# Login
|
# Login
|
||||||
source $OMARCHY_INSTALL/login/plymouth.sh
|
source $OMARCHY_INSTALL/login/plymouth.sh
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
AMD_AUDIO_CARD=$(pactl list cards | grep -B20 "Family 17h/19h" | grep "Name: " | awk '{print $2}')
|
|
||||||
|
|
||||||
if [[ -n $AMD_AUDIO_CARD ]]; then
|
|
||||||
pactl set-card-profile "$AMD_AUDIO_CARD" "HiFi (Mic1, Mic2, Speaker)" 2>/dev/null || true
|
|
||||||
fi
|
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
echo "Fix audio input on AMD Framework laptops"
|
echo "Fix audio input on AMD Framework laptops"
|
||||||
|
|
||||||
source $OMARCHY_PATH/install/config/hardware/fix-f13-amd-audio-input.sh || true
|
omarchy-restart-amd-audio || true
|
||||||
|
|||||||
Reference in New Issue
Block a user