Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eclecticc/096235e8e2d2d92f780d49c317522ffc to your computer and use it in GitHub Desktop.
Save eclecticc/096235e8e2d2d92f780d49c317522ffc to your computer and use it in GitHub Desktop.
Ubuntu 22.04 LTS Installation on the Framework Laptop steps
# Make sure to update your packages to get the latest kernel
sudo apt update && sudo apt upgrade -y
# To enable headset mic input, edit /etc/modprobe.d/alsa-base.conf
echo "options snd-hda-intel model=dell-headset-multi" | sudo tee -a /etc/modprobe.d/alsa-base.conf
# On some SSDs (e.g. SN750 with older firmware), there is a workaround to improve suspend battery life
sudo sed -i 's/^GRUB_CMDLINE_LINUX_DEFAULT.*/GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nvme.noacpi=1"/g' /etc/default/grub
# Then refresh the GRUB configuration
sudo update-grub
# And reboot
sudo reboot
@copeland3300
Copy link

Might I suggest the following changes:

  • comment out or remove line 5

  • comment out or remove line 10

  • change line 7 to echo "options snd-hda-intel model=dell-headset-multi" | sudo tee -a /etc/modprobe.d/alsa-base.conf

  • change line 12 to sudo sed -i 's/^GRUB_CMDLINE_LINUX_DEFAULT.*/GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nvme.noacpi=1/g' /etc/default/grub

  • add sudo reboot at the end for good measure? (maybe this should be optional?)

This way, all changes happen without requiring the user to make the modifications.

@eclecticc
Copy link
Author

Good idea. Edited.

@boris-github
Copy link

Hi @eclecticc!
Please correct the following line with double quotes at the end of the value:

sudo sed -i 's/^GRUB_CMDLINE_LINUX_DEFAULT.*/GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nvme.noacpi=1/g' /etc/default/grub
->
sudo sed -i 's/^GRUB_CMDLINE_LINUX_DEFAULT.*/GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nvme.noacpi=1" /etc/default/grub

@eclecticc
Copy link
Author

Thanks, corrected.

@stuartsoft
Copy link

Is this gist in public domain? What license should I reference if I were to fork it?

@eclecticc
Copy link
Author

Yes, it is in the public domain.

@stuartsoft
Copy link

cool. ty. Same for your other gists? Also public domain?

@eclecticc
Copy link
Author

Yes, unless otherwise specified in the gist, our gists are public domain.

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