Commit 180a4473 authored by Romain Francoise's avatar Romain Francoise
Browse files

(battery-linux-proc-acpi): Also try

`/proc/acpi/thermal_zone/THM0/temperature'.
parent 3a5050af
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.
......
......@@ -347,6 +347,14 @@ The following %-sequences are provided:
(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"))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment