# HG changeset patch # User Juri Linkov # Date 1147214615 0 # Node ID b270f677c9795fa23cc9de268ad038d654f19419 # Parent 08c09d92fecc9bdc0f62bb90621922a59abe5382 (battery-linux-proc-acpi): Also try `/proc/acpi/thermal_zone/THR2/temperature'. diff -r 08c09d92fecc -r b270f677c979 lisp/battery.el --- a/lisp/battery.el Tue May 09 19:48:03 2006 +0000 +++ b/lisp/battery.el Tue May 09 22:43:35 2006 +0000 @@ -386,6 +386,14 @@ (when (re-search-forward "temperature: +\\([0-9]+\\) C$" nil t) (match-string 1)))) + (when (file-exists-p + "/proc/acpi/thermal_zone/THR2/temperature") + (with-temp-buffer + (insert-file-contents + "/proc/acpi/thermal_zone/THR2/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"))