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,232 times
4
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
- 18,820
-
Unfortunately this only works temporarily, because if I unplug the power cord from my laptop and plug it in again, the power save mode becomes false again. – functionptr Feb 11 '13 at 21:24
-
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
sudo tlp bat
– Qasim May 11 '13 at 04:37