]> git.sur5r.net Git - i3/i3status/commitdiff
FreeBSD: switch from acpi to coretemp to get the cpu temperature
authorBaptiste Daroussin <bapt@FreeBSD.org>
Fri, 9 Dec 2011 23:30:22 +0000 (00:30 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 9 Dec 2011 23:38:59 +0000 (23:38 +0000)
include/i3status.h

index a54208f86bfb2ed039117a1de999aa5bda8f0c2a..24097b02ca6bf90fd4ac067dab83cef8f09fcc9b 100644 (file)
@@ -16,7 +16,8 @@ enum { O_DZEN2, O_XMOBAR, O_NONE } output_format;
 
 #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
 
-#define THERMAL_ZONE "hw.acpi.thermal.tz%d.temperature"
+/* this needs the coretemp module to be loaded */
+#define THERMAL_ZONE "dev.cpu.%d.temperature"
 #define BATT_LIFE "hw.acpi.battery.life"
 #define BATT_TIME "hw.acpi.battery.time"
 #define BATT_STATE "hw.acpi.battery.state"