From: <dom...@us...> - 2013-04-25 12:55:56
|
Revision: 298 http://sourceforge.net/p/fvwm-crystal/code/298 Author: dominique_libre Date: 2013-04-25 12:55:47 +0000 (Thu, 25 Apr 2013) Log Message: ----------- components/scripts/FvwmScript-CpuTemp: updated to work with /sys Modified Paths: -------------- ChangeLog fvwm/components/scripts/FvwmScript-CpuTemp Modified: ChangeLog =================================================================== --- ChangeLog 2013-04-25 11:32:42 UTC (rev 297) +++ ChangeLog 2013-04-25 12:55:47 UTC (rev 298) @@ -8,6 +8,7 @@ Makefile: added bin/fvwm-crystal.videomodeswicth* installation; installation of the Session and desktop file. recipes/Default with ACPI: fixed forgotten infostore variable + components/scripts/FvwmScript-CpuTemp: updated to work with /sys Mercredi 24 Avril 2013 Dominique Michel functions/Icon-Launcher: cleanup; fix icon style to work with Icon-Thumbnails Modified: fvwm/components/scripts/FvwmScript-CpuTemp =================================================================== --- fvwm/components/scripts/FvwmScript-CpuTemp 2013-04-25 11:32:42 UTC (rev 297) +++ fvwm/components/scripts/FvwmScript-CpuTemp 2013-04-25 12:55:47 UTC (rev 298) @@ -10,7 +10,7 @@ Init Begin Set $temp_prev = 1 - Set $temp = (GetOutput {cat /proc/acpi/thermal_zone/TH*/temperature} 1 2) + Set $temp = (GetOutput {sed 's:...$::' </sys/class/hwmon/hwmon0/temp1_input} 1 1) Set $tmp = $temp °C ChangeTitle 1 $tmp End @@ -19,7 +19,7 @@ Begin If (RemainderOfDiv (GetTime) 2)==0 Then Begin - Set $temp = (GetOutput {cat /proc/acpi/thermal_zone/TH*/temperature} 1 2) + Set $temp = (GetOutput {sed 's:...$::' </sys/class/hwmon/hwmon0/temp1_input} 1 1) Set $tmp = $temp °C If $temp==$temp_prev Then This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |