0

I am trying to improve my laptop's energy consumption by using powertop and a script to change the settings after booting.The script I made is based on the answer of Ric Klaren under this post: `powertop --auto-tune` without messing with USB and touchpad

Here's the script:

#!/bin/bash
powertop --auto-tune
HIDDEVICES=3-1
for i in ; do
  echo -n "Enabling " | cat - /sys/bus/usb/devices//product
  echo 'on' > /sys/bus/usb/devices//power/control
done

Somehow it does not work as intended and enables every option, as well as those concerning my USB mouse. Here's the output, if I run the script:

modprobe cpufreq_stats failedLoaded 127 prior measurements  
RAPL device for cpu 0  
RAPL Using PowerCap Sysfs : Domain Mask d  
RAPL device for cpu 0  
RAPL Using PowerCap Sysfs : Domain Mask d  
Devfreq not enabled  
glob returned GLOB_ABORTED  
To show power estimates do 221 measurement(s) connected to battery only  
Leaving PowerTOP

Thanks!

Florian
  • 1
  • 2

0 Answers0