The pm util power saving scripts only work when a laptop is on battery, not when it is plugged in to AC. Is there a way to make pm utils run all the time, regardless of whether the laptop is connected to a power outlet or not?
Asked
Active
Viewed 2,259 times
2 Answers
3
You can enabled this using:
sudo pm-powersave true
or if you want, I guess you could add the following to /etc/rc.local:
pm-powersave true
Colin Ian King
- 19,448
1
You can make a script
sudo gedit /etc/pm/power.d/power
Copy paste the following the following in power file
#!/bin/sh
# Shell script to reduce energy consumption when running battery. Place
# it in /etc/pm/power.d/ and give execution rights.
if on_ac_power; then
# Start AC powered settings #
pm-powersave true
else
# Start battery powered settings -#
pm-powersave true
fi
Now you need to assign execution permission of power script
sudo chmod +x /etc/pm/power.d/power
Now you will have pm-powersave true on both ac/bat