2013-05-11(土) 雨
_ 運動不足
薬をもらうために柏駅前の皮膚科まで徒歩で往復。慣れているはずなのにやけに疲れた。車通勤を始めたおかげで、歩く距離が短くなって、運動不足なのかもしれない。これからは、努めて歩くようにしないといけないな。
_ Nautilusのサムネール表示*その2
Nautilusでサムネールがされなくなった問題だが、bug #683394 : nautilus: Thumbnails are created, but not displayed (nautilus loops over non-existing files in "~/.thumbnails/fail", causes also high CPU usage)のようだ。Workaroundは、
ln -s ~/.thumbnails ~/.cache/thumbnails
でいいようだ。どうも、Nautilusが
fetch thumbnails from ~/.cache/thumbnails, and creating them to ~/.thumbnails/normal. ~/.cache/thumbnails doesn't even exist.
という動作を起こしているらしい。で、新しいglibが、これを引き起こすようだ。ま、GNOME 3.8のパッケージが全て揃えば、解消するのかもしれない。
_ ASRock 990FX Extreme 9でlm_sensors*その2
ASRock 990FX Extreme 9でCPUファンの回転数の読み取りと制御ができるようになったので、まとめておく。
最初に、このページに書かれているように、
$ sudo isaset -y -f 0x2e 0x87 $ sudo isaset -y -f 0x2e 0x87 $ sudo isaset -y 0x2e 0x2f 0x7 0x8 $ sudo isaset -y 0x2e 0x2f 0xf0 0xb2 $ sudo isaset -y 0x2e 0x2f 0xf1 0xb3
を実行しておく。これで、fan2でCPUファンの回転数が読めるようになる。次に、pwmconfigを実行して、CPUファンの回転数を制御できるようにする。とりあえず、こんな感じでやってみた*1。
$ sudo pwmconfig # pwmconfig revision 5857 (2010-08-22) This program will search your sensors for pulse width modulation (pwm) controls, and test each one to see if it controls a fan on your motherboard. Note that many motherboards do not have pwm circuitry installed, even if your sensor chip supports pwm. We will attempt to briefly stop each fan using the pwm controls. The program will attempt to restore each fan to full speed after testing. However, it is ** very important ** that you physically verify that the fans have been to full speed after the program has completed. Found the following devices: hwmon0/device is k10temp hwmon1/device is fam15h_power hwmon2 is radeon hwmon3/device is nct6776 Found the following PWM controls: hwmon3/device/pwm1 current value: 224 hwmon3/device/pwm1 is currently setup for automatic speed control. In general, automatic mode is preferred over manual mode, as it is more efficient and it reacts faster. Are you sure that you want to setup this output for manual control? (n) hwmon3/device/pwm2 current value: 228 hwmon3/device/pwm2 is currently setup for automatic speed control. In general, automatic mode is preferred over manual mode, as it is more efficient and it reacts faster. Are you sure that you want to setup this output for manual control? (n) hwmon3/device/pwm3 current value: 255 Giving the fans some time to reach full speed... Found the following fan sensors: hwmon3/device/fan1_input current speed: 1448 RPM hwmon3/device/fan2_input current speed: 3409 RPM hwmon3/device/fan3_input current speed: 0 ... skipping! hwmon3/device/fan4_input current speed: 0 ... skipping! hwmon3/device/fan5_input current speed: 0 ... skipping! Warning!!! This program will stop your fans, one at a time, for approximately 5 seconds each!!! This may cause your processor temperature to rise!!! If you do not want to do this hit control-C now!!! Hit return to continue: Testing pwm control hwmon3/device/pwm3 ... hwmon3/device/fan1_input ... speed was 1448 now 1442 no correlation hwmon3/device/fan2_input ... speed was 3409 now 3409 no correlation No correlations were detected. There is either no fan connected to the output of hwmon3/device/pwm3, or the connected fan has no rpm-signal connected to one of the tested fan sensors. (Note: not all motherboards have the pwm outputs connected to the fan connectors, check out the hardware database on http://www.almico.com/forumindex.php) Did you see/hear a fan stopping during the above test (n)? Testing is complete. Please verify that all fans have returned to their normal speed. The fancontrol script can automatically respond to temperature changes of your system by changing fanspeeds. Do you want to set up its configuration file now (y)? What should be the path to your fancontrol config file (/etc/fancontrol)? Loading configuration from /etc/fancontrol ... Select fan output to configure, or other action: 1) Change INTERVAL 3) Save and quit 2) Just quit 4) Show configuration select (1-n): 4 Common Settings: INTERVAL=10 Select fan output to configure, or other action: 1) Change INTERVAL 3) Save and quit 2) Just quit 4) Show configuration select (1-n): 2 hideo@Mary:~$ sudo pwmconfig # pwmconfig revision 5857 (2010-08-22) This program will search your sensors for pulse width modulation (pwm) controls, and test each one to see if it controls a fan on your motherboard. Note that many motherboards do not have pwm circuitry installed, even if your sensor chip supports pwm. We will attempt to briefly stop each fan using the pwm controls. The program will attempt to restore each fan to full speed after testing. However, it is ** very important ** that you physically verify that the fans have been to full speed after the program has completed. Found the following devices: hwmon0/device is k10temp hwmon1/device is fam15h_power hwmon2 is radeon hwmon3/device is nct6776 Found the following PWM controls: hwmon3/device/pwm1 current value: 224 hwmon3/device/pwm1 is currently setup for automatic speed control. In general, automatic mode is preferred over manual mode, as it is more efficient and it reacts faster. Are you sure that you want to setup this output for manual control? (n) hwmon3/device/pwm2 current value: 228 hwmon3/device/pwm2 is currently setup for automatic speed control. In general, automatic mode is preferred over manual mode, as it is more efficient and it reacts faster. Are you sure that you want to setup this output for manual control? (n) y hwmon3/device/pwm3 current value: 255 Giving the fans some time to reach full speed... Found the following fan sensors: hwmon3/device/fan1_input current speed: 1442 RPM hwmon3/device/fan2_input current speed: 3629 RPM hwmon3/device/fan3_input current speed: 0 ... skipping! hwmon3/device/fan4_input current speed: 0 ... skipping! hwmon3/device/fan5_input current speed: 0 ... skipping! Warning!!! This program will stop your fans, one at a time, for approximately 5 seconds each!!! This may cause your processor temperature to rise!!! If you do not want to do this hit control-C now!!! Hit return to continue: Testing pwm control hwmon3/device/pwm2 ... hwmon3/device/fan1_input ... speed was 1442 now 1442 no correlation hwmon3/device/fan2_input ... speed was 3629 now 1320 It appears that fan hwmon3/device/fan2_input is controlled by pwm hwmon3/device/pwm2 Would you like to generate a detailed correlation (y)? Would you like to generate a graphical plot using gnuplot (y)? PWM 255 FAN 3609 PWM 240 FAN 3497 PWM 225 FAN 3375 PWM 210 FAN 3253 PWM 195 FAN 3125 PWM 180 FAN 3020 PWM 165 FAN 2896 PWM 150 FAN 2783 PWM 135 FAN 2662 PWM 120 FAN 2542 PWM 105 FAN 2402 PWM 90 FAN 2280 PWM 75 FAN 2142 PWM 60 FAN 1988 PWM 45 FAN 1856 PWM 30 FAN 1695 PWM 28 FAN 1658 PWM 26 FAN 1654 PWM 24 FAN 1626 PWM 22 FAN 1616 PWM 20 FAN 1595 PWM 18 FAN 1577 PWM 16 FAN 1549 PWM 14 FAN 1527 PWM 12 FAN 1515 PWM 10 FAN 1485 PWM 8 FAN 1464 PWM 6 FAN 1451 PWM 4 FAN 1418 PWM 2 FAN 1388 PWM 0 FAN 1304 Hit return to continue... Testing pwm control hwmon3/device/pwm3 ... hwmon3/device/fan1_input ... speed was 1442 now 1450 no correlation hwmon3/device/fan2_input ... speed was 3629 now 3770 no correlation No correlations were detected. There is either no fan connected to the output of hwmon3/device/pwm3, or the connected fan has no rpm-signal connected to one of the tested fan sensors. (Note: not all motherboards have the pwm outputs connected to the fan connectors, check out the hardware database on http://www.almico.com/forumindex.php) Did you see/hear a fan stopping during the above test (n)? Testing is complete. Please verify that all fans have returned to their normal speed. The fancontrol script can automatically respond to temperature changes of your system by changing fanspeeds. Do you want to set up its configuration file now (y)? What should be the path to your fancontrol config file (/etc/fancontrol)? Loading configuration from /etc/fancontrol ... Select fan output to configure, or other action: 1) hwmon3/device/pwm2 3) Just quit 5) Show configuration 2) Change INTERVAL 4) Save and quit select (1-n): 5 Common Settings: INTERVAL=10 Settings of hwmon3/device/pwm2: Depends on Controls MINTEMP= MAXTEMP= MINSTART= MINSTOP= Select fan output to configure, or other action: 1) hwmon3/device/pwm2 3) Just quit 5) Show configuration 2) Change INTERVAL 4) Save and quit select (1-n): 1 Devices: hwmon0/device is k10temp hwmon1/device is fam15h_power hwmon2 is radeon hwmon3/device is nct6776 Current temperature readings are as follows: hwmon0/device/temp1_input 14 hwmon2/temp1_input 68 hwmon3/device/temp1_input 44 hwmon3/device/temp2_input 32 hwmon3/device/temp3_input 1 Select a temperature sensor as source for hwmon3/device/pwm2: 1) hwmon0/device/temp1_input 2) hwmon2/temp1_input 3) hwmon3/device/temp1_input 4) hwmon3/device/temp2_input 5) hwmon3/device/temp3_input 6) None (Do not affect this PWM output) select (1-n): 4 Enter the low temperature (degree C) below which the fan should spin at minimum speed (20): Enter the high temperature (degree C) over which the fan should spin at maximum speed (60): Enter the PWM value (0-255) to use when the temperature is over the high temperature limit (255): Select fan output to configure, or other action: 1) hwmon3/device/pwm2 3) Just quit 5) Show configuration 2) Change INTERVAL 4) Save and quit select (1-n): 4 Saving configuration to /etc/fancontrol... Configuration saved
出来上がった/etc/fancontrolは、
# Configuration file generated by pwmconfig, changes will be lost INTERVAL=10 DEVPATH=hwmon3=devices/platform/w83627ehf.656 DEVNAME=hwmon3=nct6776 FCTEMPS=hwmon3/device/pwm2=hwmon3/device/temp2_input FCFANS= hwmon3/device/pwm2=hwmon3/device/fan2_input MINTEMP=hwmon3/device/pwm2=20 MAXTEMP=hwmon3/device/pwm2=60 MINSTART=hwmon3/device/pwm2=150 MINSTOP=hwmon3/device/pwm2=0
ってな感じになった。
/etc/sensors3.confに次の行を追加しておく。
# in4 and in5 are not connedted ignore in4 ignore in5 # Fans label fan1 "Case fan" label fan2 "CPU fan" set fan1_min 750 set fan2_min 1400 # fan5 and fan5 are not used ignore fan3 ignore fan4 ignore fan5
毎回起動後にisasetコマンドを実行するのは面倒なので、次のようなファイルを作成して*2、/etc/init.d/にコピーして、update-rc.dで登録しておいた。
#!/bin/sh -e case "$1" in start) isaset -y -f 0x2e 0x87 isaset -y -f 0x2e 0x87 isaset -y 0x2e 0x2f 0x7 0x8 isaset -y 0x2e 0x2f 0xf0 0xb2 isaset -y 0x2e 0x2f 0xf1 0xb3 exit 0 ;; stop|restart|reload|force-reload) exit 1 ;; esac
最後に、sensorsコマンドの出力はこんな感じになった。
fam15h_power-pci-00c4 Adapter: PCI adapter power1: 40.47 W (crit = 125.19 W) k10temp-pci-00c3 Adapter: PCI adapter temp1: +15.5°C (high = +70.0°C) (crit = +70.0°C, hyst = +67.0°C) radeon-pci-0100 Adapter: PCI adapter temp1: +67.0°C nct6776-isa-0290 Adapter: ISA adapter Vcore: +0.91 V (min = +0.00 V, max = +1.74 V) in1: +1.80 V (min = +0.00 V, max = +0.00 V) ALARM AVCC: +3.33 V (min = +2.98 V, max = +3.63 V) +3.3V: +3.31 V (min = +2.98 V, max = +3.63 V) in6: +0.98 V (min = +0.00 V, max = +0.00 V) ALARM 3VSB: +3.49 V (min = +2.98 V, max = +3.63 V) Vbat: +3.41 V (min = +2.70 V, max = +3.63 V) Case fan: 1459 RPM (min = 750 RPM) CPU fan: 3781 RPM (min = 1400 RPM) SYSTIN: +45.0°C (high = +0.0°C, hyst = +0.0°C) ALARM sensor = thermistor CPUTIN: +33.5°C (high = +80.0°C, hyst = +75.0°C) sensor = thermistor AUXTIN: +1.0°C (high = +80.0°C, hyst = +75.0°C) sensor = thermistor PCH_CHIP_TEMP: +0.0°C PCH_CPU_TEMP: +0.0°C PCH_MCH_TEMP: +0.0°C intrusion0: ALARM intrusion1: ALARM
_ tDiary-3.2.2
ようやく時間を作って、tDiaryを3.2.2にアップグレードした。今回は、一発で決まったかな。それにしても、このバージョンでruby 1.8系のサポート終了って話だけど、この日記のホストである「さくらのレンタルサーバ」はruby 1.9を導入してくれないのかな。
_ linux 3.8.12-1
最新のupstreamバージョンである3.8.12に対応したパッケージがunstableにアップロードされた。experimentalの時には、すっ飛ばされたバージョンが多かったけど、unstableになると、対応が違うね。さて、3.9.x系列のパッケージは、いつ出るのだろうか。
Copyright (C) 2005-2012 by Hidenosuke. All rights reserved.
mailto: hidenosuke_at_hidenosuke_dot_org or hideo.oshima_at_gmail_dot_com