2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 14:25:39 +00:00
Commit Graph

5269 Commits

Author SHA1 Message Date
Ondřej Lysoněk
f1e1a7607c Rename LM_SENSORS_VER to LM_VERSION
Rename LM_SENSORS_VER to LM_VERSION to match the version constant in
version.h. Also, use the "+git" suffix in the version as we are
between releases.
2019-10-17 16:18:23 +02:00
Ondřej Lysoněk
5c900c7e85 Replace svn keywords with LM_SENSORS_VER constant
The keywords Revision, Date and Id were being expanded by Subversion
way back when the project was being maintained in Subversion. Now when
the project is maintained in git, the keywords are no longer expanded
and appear e.g. in the output of sensors-detect literally.

Drop the keywords, or replace them with LM_SENSORS_VER where
applicable.

The value of the constant will have to be updated manually every time
a new release is made.

Inspired by a similar change in i2c-tools (commit daa430031ffd;
thanks, Jean).
2019-10-17 15:29:58 +02:00
Ondřej Lysoněk
c28d20d19d sensors-detect: Fix printing CPU info on ppc and arm
The format of /proc/cpuinfo on other arches is different from the
format on x86. Modify the print_cpu_info function to handle arm and
ppc.

This change also eliminates Perl warnings caused by non-existent
elements in the %cpu hash:
Use of uninitialized value in concatenation (.) or string at
./prog/detect/sensors-detect line 3124.

Based on a patch from Changqing Li <changqing.li@windriver.com>,
GitHub PR: https://github.com/lm-sensors/lm-sensors/pull/168
2019-10-17 10:07:21 +02:00
Ondřej Lysoněk
2b5e364e0a Merge branch 'magnuspub-master'
Merge branch with squashed commits based on
https://github.com/magnuspub/lm-sensors/tree/master

GitHub PR:
https://github.com/lm-sensors/lm-sensors/pull/174
2019-10-15 12:56:16 +02:00
Federico Magnani
1178783409 Add MSI X470 GAMING PRO config
[olysonek: squashed commits]
2019-10-15 12:54:47 +02:00
Ondřej Lysoněk
94a04b8829 Merge branch 'clipo1979-master'
Merged a fixed up branch based on
https://github.com/clipo1979/lm-sensors/tree/master

GitHub PR:
https://github.com/lm-sensors/lm-sensors/pull/170
2019-10-15 11:59:54 +02:00
clipo1979
24cfa4d3e2 Create GA-M56S-S3.conf
[olysonek: squashed commits]
2019-10-15 11:56:32 +02:00
Ondřej Lysoněk
e78cc7e9c7 Merge branch 'patch-1'
Merged a fixed up branch based on
https://github.com/merlinschumacher/lm-sensors/tree/patch-1

GitHub PR:
https://github.com/lm-sensors/lm-sensors/pull/150
2019-10-15 09:59:28 +02:00
Merlin Schumacher
4d226d76cf Config for MSIs X370 SLI Plus
This adds a config file for the MSI X370 SLI Plus. Similiar models may
work with derived configurations.

[olysonek: fixed up 'compute in3' statement, fixed up whitespace,
           reformatted description]
2019-10-15 09:55:59 +02:00
Ondřej Lysoněk
735f8f9216 Merge pull request #141 from karolgrudzinski/X470-ULTRA-GAMING
configs: add support for X470 ultra gaming (WIP)
2019-10-15 09:32:48 +02:00
Ondřej Lysoněk
e4083ae3a5 Merge pull request #184 from bugparty/master
add ASRock X370 Taichi config
2019-10-15 09:07:28 +02:00
Ondřej Lysoněk
e9a86d67de Merge branch 'patch-1'
Github PR: https://github.com/lm-sensors/lm-sensors/pull/203
2019-10-11 10:14:25 +02:00
pablow1422
af13af759b Better scaling for +12V reading
Apparently, Gigabyte uses a 8kOhm and a 2.7kOhm resistor for the
voltage divider (both are commercially available SMD resistors). It
matches my BIOS reading.

Applied from PR
https://github.com/lm-sensors/lm-sensors/pull/203

[olysonek: squashed commits, updated description]
2019-10-11 10:09:57 +02:00
Ondřej Lysoněk
ec0e30ccc8 Merge pull request #196 from HorlogeSkynet/master
Fixes Fahrenheit missing conversion for JSON and RAW output modes
2019-10-08 09:13:25 +02:00
Samuel FORESTIER
ab69812631 Fixes missing Fahrenheit conversion with raw output enabled 2019-10-07 19:30:11 +02:00
Jean Delvare
4ab7331755 libsensors: Prevent warning with glibc >= 2.20
Since glibc 2.20, the usage of _BSD_SOURCE is deprecated. Fix it like
described here:

https://sourceware.org/glibc/wiki/Release/2.20#Deprecation_of__BSD_SOURCE_and__SVID_SOURCE_feature_macros

Inspired from a similar patch by Wolfram Sang for i2c-tools.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
2019-09-02 13:42:00 +02:00
Samuel FORESTIER
10c4f2afdf Fixes Fahrenheit missing conversion when data are JSON-formatted 2019-08-21 19:20:46 +02:00
Ondřej Lysoněk
7478a7da14 Merge pull request #192 from lucasrangit/use-toolchain-target-arch
makefile: use compiler target arch when determining what programs to compile
2019-08-08 16:25:16 +02:00
Lucas Magasweran
0863eff8fa makefile: use target arch when determining what programs to compile
To better support cross-compilation, the Makefile should detect the
compiler's target architecture instead of using `uname -m`, which
returns the host architecture. This approach uses the `gcc`/`clang`
compatible `-dumpmachine` option.

Cross-compilation worked but because of this bug, `isadump` and
`isaset` x86 ISA specific tools were built for PCC and ARM.

This run-time issue became a compile-time issue when `glibc` 2.30
removed the `sys/io.h` I/O port functions on ARM.

Also renamed `MACHINE` to `ARCH` to match cross-compiler conventions
for specifying the target architecture. For example,

`make ARCH=arm CC=arm-linux-gnueabi-gcc AR=arm-linux-gnueabi-ar`

Fixes #190

Signed-off-by: Lucas Magasweran <lucas.magasweran@ieee.org>
Reported-and-tested-by: Millhouse <milhouse@libreelec.tv>
2019-08-08 15:26:30 +02:00
Karol Grudziński
d13256e7fe Changed "Temp 2" label to "EC_TEMP"
This motherboard supports one external temperature sensor. When there isn't
anything connected it shows very low values (e.g. -55C in my case).

Signed-off-by: Karol Grudziński <krlgrudzinski@gmail.com>
2019-08-02 15:40:21 +02:00
Karol Grudziński
70f3a0d9ce Added initial config for Gigabyte X470 AORUS ULTRA GAMING
https://www.gigabyte.com/Motherboard/X470-AORUS-ULTRA-GAMING-rev-10

This config is based on:
  - GA-AB350-GAMING3.conf
  - GA-AX370-GAMING5.conf
  - output of HWiNFO64 Sensor Status program on Windows

Signed-off-by: Karol Grudziński <krlgrudzinski@gmail.com>
2019-08-02 15:40:21 +02:00
Ondřej Lysoněk
5573d9d942 Merge pull request #189 from luca020400/master
Add support for Nuvoton NCT6112D/NCT6114D/NCT6116D Super IO Sensors
2019-07-30 11:37:54 +02:00
Luca Stefani
819786cb8d Add support for Nuvoton NCT6112D/NCT6114D/NCT6116D Super IO Sensors
* See https://patchwork.kernel.org/patch/11044521/#22774197 for reference
2019-07-30 11:35:58 +02:00
Ondřej Lysoněk
d20ecfd4e8 Fix coding style
Let's use the kernel coding style in lm_sensors.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-07-29 10:38:22 +02:00
Ondřej Lysoněk
6e1cff65fb Merge pull request #180 from michalsimek/master
sensors: Scale voltage and current values
2019-07-29 10:32:34 +02:00
Ondřej Lysoněk
eba5bf0714 sensors-detect: Reorder Nuvoton chips to match the kernel ordering
Reorder Nuvoton chips in the superio_ids_winbond array to match the
order in the kernel to make lookup easier. No functional change.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-07-29 09:57:28 +02:00
Ondřej Lysoněk
6ead226a2c sensors-detect: Update devid_mask for devices supported by nct6775
Since mainline commit 0599682b826ff7bbf, the nct6775 driver uses a
0xfff8 mask when scanning for devices. Update our detection to match
the kernel.

Fixes #188

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-07-29 09:42:40 +02:00
Ondřej Lysoněk
ef0d2a393d Merge pull request #188 from luca020400/master
Add new Nuvoton Super IO Sensors
2019-07-29 09:33:05 +02:00
Luca Stefani
079064472f Add support for Nuvoton NCT6798D Super IO Sensors 2019-07-26 14:56:12 +02:00
Luca Stefani
ed56004740 Add support for Nuvoton NCT6797D Super IO Sensors 2019-07-25 23:52:47 +02:00
Ondřej Lysoněk
00e7d37b35 sensors-detect: Add detection of AMD family 17h, model 70h
k10temp support was added in groeck/hwmon-next commit
22cac1016a4831922d2.

Fixes #187

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-07-23 11:54:22 +02:00
Ondřej Lysoněk
7daa6c5ed5 Merge pull request #181 from Leo-PL/X7DCL_fix_VTT
configs: fix Supermicro X7DCL VTT limits
2019-07-05 12:29:31 +02:00
Ondřej Lysoněk
77a75f1e02 Merge pull request #182 from Prism019/patch-1
Add driver for Fintek F75387SG/RG to sensors-detect
2019-07-05 12:15:21 +02:00
bowman
5056b5bd0a add ASRock X370 Taichi config 2019-06-24 22:30:52 +08:00
Prism Tutaj
d03b3e3156 Add driver for Fintek F75387SG/RG to sensors-detect
Support for the Fintek F75387SG/RG was added to driver f75375s back in 2013.
2019-06-24 01:19:25 -05:00
Lech Perczak
f371624531 configs: fix Supermicro X7DCL VTT limits
According to:
"Quad-Core Intel® Xeon(R) Processor 5400 Series Electrical Specifications"
(table 2-12), FSB termination voltage of the CPUs (VTT) is 1.1V +/-5%.
Initial configuration set it to 1.2V - fix that.

Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
2019-06-23 23:57:23 +02:00
Michal Simek
1b8b1bce9e sensors: Scale voltage and current values
scale_value is generic function for scaling values. There is a lower
resolution then json format provides for voltage and current.
The patch is calling scale_value() and showing values with higher
resolution.
For example on Xilinx ZynqMP platform:
ina226-i2c-3-41
Adapter: i2c-0-mux (chan_id 0)
in0:           2.00 mV
in1:         848.00 mV
power1:      287.50 mW
curr1:       330.00 mA

Signed-off-by: Michal Simek <monstr@monstr.eu>
2019-06-20 13:31:52 +02:00
Ondřej Lysoněk
2c8cca3d6c sensors: json: Do not print a stray comma
Previously, if an error happened when reading the value of a subfeature,
subCnt would get incremented and a stray comma would get printed in the
following iteration, even though nothing was printed in the previous
iteration. This would produce a syntactically incorrect JSON.

This is based on a patch from the su8 user on GitHub.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-05-05 11:43:44 +02:00
Ondřej Lysoněk
50f227dafe sensors: json: Skip printing an unnecessary newline
Don't print a newline if no features were printed.

This is based on a patch from the su8 user on GitHub.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-05-05 11:43:44 +02:00
Ondřej Lysoněk
1020728a96 Merge pull request #173 from hygonsoc/master
sensors-detect: Add Hygon SoC driver detect support
2019-04-08 10:35:15 +02:00
hygonsoc
19fb506ef0 Add Hygon SoC driver detect support to use k10temp driver
Signed-off-by: hygonsoc <hygonsoc@gmail.com>
2019-04-08 11:39:11 +08:00
Ondřej Lysoněk
7812be2efe Merge pull request #161 from karolszklarski/master
Adding AVERAGE option to fancontrol
2019-04-01 12:55:03 +02:00
Ondřej Lysoněk
bd1292cc1a Merge pull request #162 from jonasmalacofilho/conf-asus-prime-z370-a
configs: Add ASUS PRIME Z370-A motherboard
2019-03-31 10:43:13 +02:00
Ondřej Lysoněk
1a404a661c Merge pull request #157 from Leo-PL/X7DCL
configs: add Supermicro X7DCL
2019-03-31 10:13:02 +02:00
clipo1979
d0d7d02e5b Create GA-880GA-UD3H.conf 2019-02-14 22:00:24 +00:00
Jonas Malaco
87f64e08d0 configs: Add ASUS PRIME Z370-A motherboard
Tested with i7-8700K and two UEFI versions.
2019-01-30 02:07:31 -02:00
Karol Szklarski
b2039f04e1 Adding AVERAGE option to fancontrol 2019-01-26 22:12:15 +01:00
Ondřej Lysoněk
a60d30785e sensors-detect: Add detection of AMD Family 16h Model 30h power sensors
Support in fam15h_power was added in mainline commit 0bd52941586b3.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-01-23 11:04:04 +01:00
Ondřej Lysoněk
6a585cf1e1 sensors-detect: Update AMD Family 15h power sensors detection
Bring Family 15h power sensors detection up to date with the mainline
fam15h_power driver.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-01-23 11:04:04 +01:00
Lech Perczak
5a20b0c61d configs: add Supermicro X7DCL
Add configuration for Supermicro X7DCL motherboard.
Based on slightly modified setup of X7DBE from this repo.
Runtime tested on X7DCL-3 rev. 1.1a

So far there is only support for onboard sensors,
no support for PSU failure yet, nor external PMBus sensors.

Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
2019-01-11 22:16:43 +01:00