4

On my Ubuntu (server) installation I'm tweaking some power parameters. But most of these parameters such as /sys/class/scsi_host/host0/link_power_management_policy keep getting reset. I have inspected some of my log files and it seems that pm-powersave false is executed on each boot (from /var/log/pm-powersave.log)

How can I prevent this from executing on each boot?

1

1 Answer 1

2

pm-powersave is a utility to manage the power-saving configuration of the computer when it is connected to the AC and when it works on battery. You should make the changes you desire to the pm-powersave config files (for AC/Battery respectively). You can find more information about the issue here.

In my case, as I want to save as much energy as possible in both cases (AC/Battery), I copied the files from /usr/lib/pm-utils/power.d to /etc/pm/power.d and edited them to always work like in battery mode. At the end of each file, functions are called in depending of the received value (true for battery and false for AC). So, I replaced all AC function with the ones for battery. Then I added the script in the link above, with some modifications (not so aggresive) and replaced again the AC function calling with the Battery one.

1
  • How does that answer the question? What is causing it to run?
    – nafg
    May 2, 2013 at 8:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .