`/proc/acpi/thermal_zone/THM0/temperature'.
+2005-12-25 Romain Francoise <romain@orebokech.com>
+
+ * battery.el (battery-linux-proc-acpi): Also try
+ `/proc/acpi/thermal_zone/THM0/temperature'.
+
2005-12-24 Chong Yidong <cyd@stupidchicken.com>
* custom.el (custom-push-theme): Fix docstring.
(when (re-search-forward
"temperature: +\\([0-9]+\\) C$" nil t)
(match-string 1))))
+ (when (file-exists-p
+ "/proc/acpi/thermal_zone/THM0/temperature")
+ (with-temp-buffer
+ (insert-file-contents
+ "/proc/acpi/thermal_zone/THM0/temperature")
+ (when (re-search-forward
+ "temperature: +\\([0-9]+\\) C$" nil t)
+ (match-string 1))))
"N/A"))
(cons ?r (or (and rate (concat (number-to-string rate) " "
rate-type)) "N/A"))