From 7d27b92f7e8104283bd71e3c5bbdcb7b7ec54301 Mon Sep 17 00:00:00 2001 From: Sam Kirby Date: Tue, 18 May 2021 14:15:10 +0100 Subject: Add k10temp plugin The existing support for the coretemp kernel driver only works with Intel CPUs. This commit extends support for temperature monitoring to AMD CPUs. k10temp is a kernel driver for monitoring the temperature of AMD processors. It supports everything from AMD's 10h (Opteron/Athlon) family of processors to the latest 19h (Zen 3) family. Reference: https://www.kernel.org/doc/html/latest/hwmon/k10temp.html The meaning of the various temperatures made available has changed over the years and only `Tctl` is available on processors prior to the 17h family. Labels for these temperatures are present but as Tctl and Tdie do not contain a number I could not find a way to use these as `checkedDataRetrieval` expects an integer label. It is a PCI device and so an address needs to be supplied as part of the configuration. Example configuration: `Run K10Temp "0000:00:18.3" ["--template", "T: C | C"] 60` --- xmobar.cabal | 1 + 1 file changed, 1 insertion(+) (limited to 'xmobar.cabal') diff --git a/xmobar.cabal b/xmobar.cabal index 87916f5..959d499 100644 --- a/xmobar.cabal +++ b/xmobar.cabal @@ -149,6 +149,7 @@ library Xmobar.Plugins.Monitors.Common.Parsers, Xmobar.Plugins.Monitors.Common.Files, Xmobar.Plugins.Monitors.CoreTemp, + Xmobar.Plugins.Monitors.K10Temp, Xmobar.Plugins.Monitors.CpuFreq, Xmobar.Plugins.Monitors.Disk, Xmobar.Plugins.Monitors.Mem, -- cgit v1.2.3