Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ctsdownloads/f45ccf1cde0217210182c3b904100e9b to your computer and use it in GitHub Desktop.
Save ctsdownloads/f45ccf1cde0217210182c3b904100e9b to your computer and use it in GitHub Desktop.
12th gen - Ubuntu 22.10 Installation on the Framework Completing Setup
# This is for 12th Gen ONLY.
# Copy the entire text block below, paste into the terminal, press enter and type your
user's password as prompted.
# This will:
# - Update your Ubuntu install's packages.
# - Workaround needed to get the best suspend battery life for SSD power drain.
# - Disable the ALS sensor so that your brightness keys work.
# - Enable improved fractional scaling support for Ubuntu's GNOME environment using Wayland.
# - Enable headset mic input.
## *****COPY AND PASTE THIS CODE BELOW*****
sudo apt update && sudo apt upgrade -y && echo "options snd-hda-intel model=dell-headset-multi" | sudo tee -a /etc/modprobe.d/alsa-base.conf && gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']" && sudo sed -i 's/^GRUB_CMDLINE_LINUX_DEFAULT.*/GRUB_CMDLINE_LINUX_DEFAULT="quiet splash module_blacklist=hid_sensor_hub nvme.noacpi=1"/g' /etc/default/grub && sudo update-grub &&
echo "[connection]" | sudo tee /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf && echo "wifi.powersave = 2" | sudo tee -a /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
## *****COPY AND PASTE THIS CODE ABOVE*****
## then press enter key, password, reboot.
# If you would rather enter the commands individually instead:
## Updating packages.
sudo apt update && sudo apt upgrade -y
## Enable headset mic input.
echo "options snd-hda-intel model=dell-headset-multi" | sudo tee -a /etc/modprobe.d/alsa-base.conf
## Enable improved fractional scaling support for Ubuntu's GNOME environment using Wayland.
gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"
## Disable the ALS sensor so that your brightness keys work, 12th gen only.
sudo gnome-text-editor /etc/default/grub
## Append the following to the GRUB_CMDLINE_LINUX_DEFAULT="quiet splash section.
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash module_blacklist=hid_sensor_hub"
## Workaround needed to get the best suspend battery life for SSD power drain.
sudo gnome-text-editor /etc/default/grub
## Append the following to the GRUB_CMDLINE_LINUX_DEFAULT="quiet splash section.
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nvme.noacpi=1"
# Sudo with your fingerprints.
## To run sudo in a terminal with the fingerprint reader, you need to run this command in a terminal and follow the prompts.
sudo pam-auth-update
## Also, if you've previously enrolled fingerprints in Windows or another Linux distro, you may find that fingerprint enrollment errors until you manually force clear the stored fingerprints.
https://knowledgebase.frame.work/en_us/fingerprint-enrollment-rkG6YP7xF
## Additional ways to extend battery life can be found at this link: https://community.frame.work/t/linux-battery-life-tuning/6665.
@stuartsoft
Copy link

What is the license for this gist? Public Domain?

@Uselessa
Copy link

please add note for those who use systemd boot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment