How do I make a permanent change in a kernel parameter

Hi, I’ve just found that I can have a better battery life if I type the following command:
echo powersave > /sys/module/pcie_aspm/parameters/policy
However this change is not permanent. How do I make it permanent? Is there a file I can edit
to make it permanent?

On 06/27/2011 07:36 PM, derhundchen wrote:
>
> Hi, I’ve just found that I can have a better battery life if I type the
> following command:
> echo powersave> /sys/module/pcie_aspm/parameters/policy
> However this change is not permanent. How do I make it permanent? Is
> there a file I can edit
> to make it permanent?

Add that command to /etc/init.d/boot.local. It will be executed every time you
reboot.

derhundchen, I suggest you might want to look at the following thread on the very same subject.

Possible Power Management regressions in recent Linux kernels ?

Thank You,