Skip to content

Commit

Permalink
fix: Framework 13 AMD support (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
ledif authored Jan 11, 2025
1 parent 75d2072 commit 0f1e011
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions system_files/shared/usr/libexec/ublue-system-setup
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ VEN_ID="$(cat /sys/devices/virtual/dmi/id/chassis_vendor)"
CPU_VENDOR=$(grep "vendor_id" "/proc/cpuinfo" | uniq | awk -F": " '{ print $2 }')

# SCRIPT VERSION
HWS_VER=3
HWS_VER=4
HWS_VER_FILE="/etc/ublue/hws_version"
[[ -f "$HWS_VER_FILE" ]] && HWS_VER_RAN=$(cat $HWS_VER_FILE)

Expand Down Expand Up @@ -63,9 +63,11 @@ else
echo "No karg changes needed"
fi

SYS_ID="$(cat /sys/devices/virtual/dmi/id/product_name)"

# FRAMEWORK 13 AMD FIXES
if [[ ":Framework:" =~ ":$VEN_ID:" ]]; then
if [[ $SYS_ID == "Laptop ("* ]]; then
if [[ $SYS_ID == "Laptop 13 ("* ]]; then
if [[ "AuthenticAMD" == "$CPU_VENDOR" ]]; then
if [[ ! -f /etc/modprobe.d/alsa.conf ]]; then
echo 'Fixing 3.5mm jack'
Expand Down

0 comments on commit 0f1e011

Please sign in to comment.