Thinkpadの発熱調整(2)

Thinkpadの発熱調整(1)


無線LANの低消費電力設定を起動時に行うようにしてみた。

/etc/rc.localの最後に一行追加

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
echo 5 > /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/power_level

コメントにも書かれているように/etc/rc.localは起動スクリプトの最後に実行されるのでここに設定を追加しました。
最初は/etc/rc.sysinitに記述していたのだけれど、sysinitの実行タイミングでは設定がなされませんでした。おそらくこのタイミングでは設定対象の初期設定がなされていなかったのだと思われます。


ちなみに前回、実行したコマンドは

for i in /sys/bus/pci/devices/*/power_level ; do echo 5 > $i ; done

でしたがpower_levelファイルを実際に探してみたら

/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/power_level

しか無かったのでこの設定のみ変更するようにコマンドを変えました。