Skip to content

Commit

Permalink
feat(framework): Add Framework 13 font scale fix and audio fixes (#1259)
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo authored May 7, 2024
1 parent 47bbaab commit c55bf3b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
17 changes: 17 additions & 0 deletions system_files/shared/usr/libexec/ublue-system-setup
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,23 @@ else
echo "No karg changes needed"
fi

# FRAMEWORK 13 AMD FIXES
if [[ ":Framework:" =~ ":$VEN_ID:" ]]; then
if [[ $SYS_ID == "Laptop ("* ]];
if [[ "AuthenticAMD" == "$CPU_VENDOR" ]]; then
if [[ ! -f /etc/modprobe.d/alsa.conf ]]; then
echo 'Fixing 3.5mm jack'
sudo tee /etc/modprobe.d/alsa.conf <<< "options snd-hda-intel index=1,0 model=auto,dell-headset-multi"
echo 0 | sudo tee /sys/module/snd_hda_intel/parameters/power_save
fi
if [[ ! -f /etc/udev/rules.d/20-suspend-fixes.rules ]]; then
echo 'Fixing suspend issue'
echo "ACTION==\"add\", SUBSYSTEM==\"serio\", DRIVERS==\"atkbd\", ATTR{power/wakeup}=\"disabled\"" > /etc/udev/rules.d/20-suspend-fixes.rules'
fi
fi
fi
fi
echo "$IMAGE_NAME" > $KNOWN_IMAGE_NAME_FILE
echo "$IMAGE_FLAVOR" > $KNOWN_IMAGE_FLAVOR_FILE
echo "$HWS_VER" > $HWS_VER_FILE
4 changes: 4 additions & 0 deletions system_files/shared/usr/libexec/ublue-user-setup
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ if [[ ":Framework:" =~ ":$VEN_ID:" ]]; then
dconf write /org/gnome/shell/extensions/Logo-menu/menu-button-icon-image 31
echo 'Setting touch scroll type'
dconf write /org/gnome/desktop/peripherals/mouse/natural-scroll true
if [[ $SYS_ID == "Laptop ("* ]]; then
echo 'Applying font fix for Framework 13'
dconf write /org/gnome/desktop/interface/text-scaling-factor 1.25
fi
touch "$UBLUE_CONFIG_DIR/framework-initialized"
fi
fi
Expand Down

0 comments on commit c55bf3b

Please sign in to comment.