]
トップ «前の日記(2006-11-22) 最新 次の日記(2006-11-24)» 編集

Yukiharu YABUKI の tDiary



このtDiaryを検索します。

2006-11-23 [長年日記]

_ 起床

6:00, ついでにラジオ体操。

_ お弁当

お出かけ用にお弁当を作成。バナナガードにバナナをいれて出動。

_ Aptの鍵

武藤さんの記事にもあるが、先日よりaptの鍵が変更になってaptitudeでメッセージができるようになったので、gpgで鍵をfetchしてきて、apt-keyに食わせて鍵を更新。
gpg --edit-key 6070D3A1
gpg (GnuPG) 1.4.5; Copyright (C) 2006 Free Software Foundation, Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING for details.
 
 
pub  1024D/6070D3A1  created: 2006-11-20  expires: 2009-07-01  usage: SC
                     trust: unknown       validity: unknown
[ unknown] (1). Debian Archive Automatic Signing Key (4.0/etch) 
 
Command> quit

_ 署名付きのメールを使いたいが、手違いでSMTP Hostがブラックリストに載ってしまい困った時

緊急避難的にどうするか。IRCの話題より。

_ memo: Wikipedia は広告の為の場所ではありません

slashdot.jpより。(http://slashdot.jp/article.pl?sid=06/11/23/1158246&from=rss)

_ cpufreqd関係 for X32

Ernalda:~# modprobe -a speedstep-centrino
Ernalda:~# modprobe -a cpufreq_ondemand
Ernalda:~# modprobe -a cpufreq_powersave
Ernalda:~# modprobe -a cpufreq_userspace
cpufrequtilsの設定 /etc/default/cpufrequtilsを下記のようにいじってみた。
Ernalda:~# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
userspace powersave ondemand performance
コメントにあるようにどの governors が利用可能か上記でチェック。また最低クロックと最大クロックを設定ときには
Ernalda:~# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
1600000 1400000 1200000 1000000 800000 600000
で確認。
# Which governor to use. Must be one of the governors listed in:
#   cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
#
# and which limits to set. Both MIN_SPEED and MAX_SPEED must be values
# listed in:
#   cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
# a value of 0 for any of the two variables will disabling the use of
# that limit variable.
#
# WARNING: the correct kernel module must already be loaded or compiled in.
#
# Set ENABLE to "true" to let the script run at boot time.
#
# eg:   ENABLE="true"
#       GOVERNOR="ondemand"
#       MAX_SPEED=1000
#       MIN_SPEED=500
 
#ENABLE="false"
ENABLE="true"
#GOVERNOR="ondemand"
GOVERNOR="userspace"
#MAX_SPEED=0
MAX_SPEED=1600000
#MIN_SPEED=0
MIN_SPEED=600000
cpufreq-infoで確認
Ernalda:~# cpufreq-info
cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to linux@brodo.de, please.
analyzing CPU 0:
  driver: centrino
  CPUs which need to switch frequency at the same time: 0
  hardware limits: 600 MHz - 1.60 GHz
  available frequency steps: 1.60 GHz, 1.40 GHz, 1.20 GHz, 1000 MHz, 800 MHz, 600 MHz
  available cpufreq governors: userspace, powersave, ondemand, performance
  current policy: frequency should be within 1.60 GHz and 1.60 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 1.60 GHz (asserted by call to hardware).
Ernalda:~# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
performance
/etc/default/cpufreqdの内容で、
# Cpufreqd startup configuration
 
# CPU kernel module.
# Leave empty if you which to load the modules in different ways
# of CPUFreq support for your cpu is built in.
CPUFREQ_CPU_MODULE=""
 
# Governor modules.
# A list separated by spaces. They are needed by cpufreqd
# to load your policies. The init script can automatically
# try to load them. Leave empty to disable loading governor
# modules at all, use "auto" to let the script do the job.
CPUFREQ_GOV_MODULES="auto"
CPUFREQ_CPU_MODULE=""をどのように書くかを、/etc/init.d/cpufreqdの中身をみて確認する。
load_cpu_module() {
        if [ -n "$CPUFREQ_CPU_MODULE" ] ; then
                modprobe -q $CPUFREQ_CPU_MODULE || /bin/true
        fi
}
の部分でロードしているので、modprobe -a speedstep-centrino cpufreq_ondemand cpufreq_powersave cpufreq_userspaceと試してみてよさそうなんで、スペース区切りでよさそうか。/etc/modulesに書くよりはスマートかな... これはThink Pad X32用に設定したので、AMDや他のPCなら別の組み合わせをどうぞ。あとは/etc/cpufreqd.confの設定、雛型はメンテナーが用意しているので、man 5 cpufreqd.conf で情報を確認しつつ微調整。ACが利用できている時、バッテリーで動いている時、ACで動いていてもCPUが熱い時など動作クロックを変更できます。(というか、もうエントリーがあるので思い通りか確認するだけで良い)