How do I add pcie_aspm=force to my boot options? [duplicate]
To apply it to all kernels, edit /etc/default/grub
(root privileges required) and change:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pcie_aspm=force"
Run sudo update-grub
afterwards.
To edit the boot options on startup, hold Esc while starting GRUB (after the BIOS POST). Press E on the selected entry, use your arrows to move and keyboard to type. When done, press Ctrl + X to boot.
In the linked question below, the OP asked a similar question - in their case they wanted to add nomodeset to GRUB.
You could use the same advice given but substitute nomodeset for pcie_aspm=force
Linked Question:
- How do I set 'nomodeset' after I've already installed Ubuntu?
One-line solution, use at you own risk:
sudo sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT=\"\(.*\)\"/GRUB_CMDLINE_LINUX_DEFAULT=\"\1 pcie_aspm=force\"/' /etc/default/grub && sudo update-grub