hwmon

package
v0.4.130 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package hwmon reads the temperature of the processor from the hwmon chips the kernel lists in /sys/class/hwmon.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CPUTemperature

func CPUTemperature(root string) (int, bool)

CPUTemperature is the temperature of the processor in millidegrees, as the chips under root (/sys/class/hwmon) report it: the hottest chip of the first name in cpuChips the box has (coretemp has one per socket), and false when it has none or none that can be read. A chip's number is not fixed (the battery and the charger of a laptop take the first ones), which is why the chip is found by its name and never by hwmon0.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL