You are not logged in.

#1 2012-10-06 21:34:24

replabrobin
Member
Registered: 2010-05-06
Posts: 226

What is the right way to apply powertop recomendations

Is there some easy way to apply the powertop recommendations as they are found in the html output? It seems many of the changes are made as echo commands to various members of /sys/devices/pci..../control, but when I hacked together a quick script to duplicate the recommended settings at boot I found that the device numbers are not necessarily constant.

An ubuntu thread http://tombuntu.com/index.php/2008/09/0 … -powertop/ suggests

#!/bin/dash
find /sys/devices/pci* -path "*power/control" -exec bash -c "echo auto > '{}'" \;

but is that the right way? Not all of the echo commands are using 'auto' in my powertop output.

Offline

#2 2012-10-06 21:36:18

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: What is the right way to apply powertop recomendations

I used udev rules, so that these changes would not be applied until the devices had been recognized by the system.

Offline

#3 2012-10-06 21:38:28

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: What is the right way to apply powertop recomendations

Perhaps these two projects are of interest to you:

1. https://bbs.archlinux.org/viewtopic.php?id=134109
2. https://github.com/Unia/powersave (my own)


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

Board footer

Powered by FluxBB