9

Possible Duplicate:
How do I add a kernel boot parameter?

I just upgraded to 11.10 from 11.04 on my laptop (I don't have Windows) by downloading from the Ubuntu website. The laptop battery is in bad condition, but I was using it with the 11.04 plugged to AC all the time, and everything was fine.

After installing 11.10, the laptop seems to not notice that it is connected to AC, so it shuts down a few minutes after starting. I read that I have to type pcie_aspm=force in the boot command, so I tried accessing it by pressing the "F6" key while booting, and then the other F keys, but nothing happened. I also found that I can write that instruction in the terminal window, but I don't know in which file or location. I would appreciate some help, but I am not a computer engineer, so please write the instructions in plain English.

nargo7
  • 91

3 Answers3

15

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.

Lekensteyn
  • 178,446
1

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:

  1. How do I set 'nomodeset' after I've already installed Ubuntu?
fossfreedom
  • 174,526
0

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
int_ua
  • 8,892