Commit Graph
5232 Commits
Author SHA1 Message Date
Slava Bacherikov 3b4e53f177 Add configs for ASUS MB P10S-M WS 2019-10-19 16:27:45 +03: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
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
Ondřej Lysoněk 782a2124b6 sensors-detect: Add detection of AMD Family 17h model 30h
Kernel support was added in mainline commit 210ba1201ff95.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-01-10 15:09:24 +01:00
Ondřej Lysoněk 097432dd01 Merge pull request #124 from lucasrangit/sensord-oneline
sensord: add oneline sensor log output option
2018-12-30 14:59:29 +01:00
Ondřej Lysoněk 84f773b3ec lm_sensors.lsm: Update the Maintained-by field
It's time to accept it.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-11-23 20:17:56 +01:00
Ondřej Lysoněk 7029800ddc Update version.h after the release
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-11-23 19:54:45 +01:00
Ondřej Lysoněk e8afbda10f 3.5.0 release
soname was bumped due to commit dcf23676cc which introduced an ABI
change.

Fixes #29

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
V3-5-0
2018-11-23 18:05:48 +01:00
Ondřej Lysoněk f22b411652 Clarify how to update SENSORS_API_VERSION
My understanding is that SENSORS_API_VERSION should be the same
as $(LIBMAINVER)$(LIBMINORVER) in lib/Module.mk. This means that
the first digit of SENSORS_API_VERSION needs to be incremented whenever
API *or* ABI changes, because we have to increment LIBMAINVER even if
only ABI changes to avoid program breakage.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-11-23 17:23:56 +01:00
Ondřej Lysoněk c56c90156d Update CHANGES
Update CHANGES with respect to commits d4cb932567 and 7e976f1325.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-11-23 12:19:08 +01:00
Ondřej Lysoněk 7e976f1325 libsensors: Treat devices without a known ancestor bus as virtual
Currently only hwmon devices that don't have a parent device are treated
as virtual. Let's extend the concept to hwmon devices, that don't have
a *recognized ancestor* device (hwmon devices that according to the kernel
don't reside on a bus that we recognize). This change is meant to address
cases where a hwmon device has a thermal class device for a parent, but
the thermal class device doesn't have a parent device.

These kind of hwmon devices started appearing in the 4.19 kernel
due to commit f6b6b52ef7a54160c0. It was not reported as a kernel
regression and fixed in the kernel, because according to
Documentation/admin-guide/sysfs-rules.rst, the change was OK to make
(it says "Position of devices along device chain can change").

Fixes #139

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-11-23 12:17:01 +01:00
Ondřej Lysoněk d4cb932567 libsensors: Consider all ancestor devices when determining bus type
Go through all ancestor devices of a hwmon device until we find a device
that resides on a bus that we recognize. This change is meant to address
hwmon devices that don't reside directly on a bus, but have another
device in the middle of the hiearchy. For example:
ACPI device -> thermal device -> hwmon device

These kind of hwmon devices started appearing in the 4.19 kernel
due to commit f6b6b52ef7a54160c0. It was not reported as a kernel
regression and fixed in the kernel, because according to
Documentation/admin-guide/sysfs-rules.rst, the change was OK to make
(it says "Position of devices along device chain can change").

Fixes #133

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-11-23 12:16:52 +01:00
Ondřej Lysoněk 567e6a3b36 libsensors: Pass a resolved device path to sensors_read_one_sysfs_chip
According to Documentation/admin-guide/sysfs-rules.rst, the "device"
link "must never appear in any path as an element". This patch makes
lm_sensors respect that.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-11-23 11:33:05 +01:00
Ondřej Lysoněk 6ac43308b5 libsensors: Rename a local variable
Rename a local variable to make it consistent with other parts of the
code. The variable is called (more descriptively) "dev_name"
in sensors_read_one_sysfs_chip(), so let's rename it to that.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-11-23 11:33:05 +01:00
Ondřej Lysoněk 0fbfc3b6e0 libsensors: Refactor bus type identification into a separate function
Refactor bus type identification into a separate function in order to
make the code more readable and easier to maintain.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-11-23 11:33:05 +01:00
Ondřej Lysoněk 0cb449735f libsensors: Refactor device classification into a separate function
Refactor device classification into a separate function in order to
make the code more readable and easier to maintain.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-11-23 11:33:05 +01:00
Ondřej Lysoněk 874ab9548d Merge pull request #143 from doctor64/asus_p8z68-v_lx
configs: Add ASUS P8Z68-V LX board
2018-11-19 18:03:23 +01:00
Alex Cherkayev e9e108316a configs: Add ASUS P8Z68-V LX board 2018-11-18 22:21:40 +02:00
Ondřej Lysoněk e4ff9c375e Update CHANGES
Add missing entries to the CHANGES file. Here's the list of relevant
commits:
* musl C library support: 8fb3922219
* F71868A hardwired inputs: dfa4518962
* fancontrol: save original pwm values: 34627e4666
* vt1211_pwm: use bash instead of sh: 06a57f6d54
* coverity scan fixes: 3b548b74ae, 40aa494c02, fb595f55d1,
  e0c146763b
* support for power min, lcrit, min_alarm, lcrit_alarm: dcf23676cc
* NCT6796D hardwired inputs: 64e13d5998
* Add the find-driver script: c755805cef

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-11-07 18:51:23 +01:00
Ondřej Lysoněk 012d76b978 README: Link to the lm_sensors website on hwmon wiki
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-11-07 18:03:23 +01:00
Ondřej Lysoněk 1f1f8c8a81 Merge pull request #140 from Camille019/patch-1
sensors: Fix power_common_sensors[] list
2018-11-05 10:31:48 +01:00
Camille019 c3dc727f5f sensors: Fix power_common_sensors[] list 2018-11-04 01:24:24 +01:00
Ondřej Lysoněk c755805cef Add the find-driver script
The script is meant to identify the driver and kernel module responsible
for exporting a given hardware monitoring chip.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-10-05 17:59:30 +02:00
Ondřej Lysoněk 35d2443488 Merge pull request #131 from maciejsszmigiero/two-new-mbs
add Gigabyte GA-F2A88XM-HD3 and MSI MS-7A34 (B350 TOMAHAWK) config
2018-10-02 09:16:01 +02:00
Maciej S. Szmigiero f35936bf94 configs: Add MSI MS-7A34 (B350 TOMAHAWK)
Input routing and scaling for this board was read from schematic of a
similar MSI MS-7B00 (B350 Gaming Pro Carbon) board.

temp5 on the MS-7B00 schematic is a thermistor under the B350 chip itself.
However, on my MS-7A34 board the reading is stuck at 23°C.
Judging from MS-7A34 board sensor readings that other people had posted
online the sensor seems to work properly for them, so I have left it
enabled.

Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
2018-10-02 01:09:20 +02:00
Maciej S. Szmigiero 520e467b67 configs: Add Gigabyte GA-F2A88XM-HD3
Input routing and scaling for this board was read from its schematic,
verified on a real specimen.

This config is likely also valid for other members of GA-F2A88XM-x family,
as differences between them seem pretty minor.
It might also be valid for GA-F2A85XM-HD3 board considering that
GA-F2A88XM-HD3 schematic has the former board name as title in many places.

Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
2018-10-02 01:08:41 +02:00
Ondřej Lysoněk 255804953e Update links to the git repo
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-09-29 13:02:21 +02:00
Ondřej Lysoněk 807f9b1529 README: Update with info about the mailing list archives
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-09-23 11:02:29 +02:00
Ondřej Lysoněk 38220cc2e9 pwmconfig: Fix a sed expression
This fixes commit 3daae37d58.
The escaping inside backticks is really kinda crazy.

Fixes #126

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-09-20 21:19:11 +02:00
Ondřej Lysoněk bcc5c67eff Merge pull request #120 from pudh4418/nct6796d
sensors.conf.default: Add hardwired NCT6796D inputs
2018-09-20 19:30:32 +02:00
Ondřej Lysoněk 03477cc9dc Merge pull request #119 from rigred/master
MSI P35 Neo 3 & ASRock X370 Gaming K4 sample configs
2018-09-11 09:10:56 +02:00
rigred 310ce4e95c ASRock X370 Gaming K4
Values as per nuvoton nct6779D datasheetSection 8.5 Analog Inputs (Page 54,55).

Is based on nct6779 which uses a 2.048V input range, all inputs above that are scaled using a voltage divider.
Specific inputs like the ADC, AVCC, VBAT, 3VSB and 3VCC utilize an integrated voltage divider.

Signed-off-by: Rigo Reddig <rigo.reddig@gmail.com>
2018-09-10 21:11:41 +02:00
rigred eb2a435de1 MSI P35-Neo3 MS-7395
Values pulled from: https://www.alldatasheet.com/datasheet-pdf/pdf/257913/FINTEK/F71882FG.html
See "Application circuit section page 122"

Signed-off-by: Rigo Reddig <rigo.reddig@gmail.com>
2018-09-10 21:00:29 +02:00
Ondřej Lysoněk c52ce346d4 Update README to say all configs are now imported from lm-sensors.org
The import has been done in commit 1398ef020.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-09-01 19:45:02 +02:00
Ondřej Lysoněk 8f54fe85e8 Update lm_sensors.lsm to reflect the new home of lm_sensors
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-09-01 19:45:24 +02:00
Ondřej Lysoněk 17d62bd318 Update release_checklist to reflect the new home of lm_sensors
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-09-01 19:45:02 +02:00
Ondřej Lysoněk be3679ae06 Mention the new mailing list in README
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-09-01 19:39:03 +02:00
Ondřej Lysoněk 6413b80847 Fix stale links
Fixes #8

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-09-01 19:38:55 +02:00
Lucas Magasweran c7c6e66328 sensord: add oneline sensor log output option
Add an option `-1`/`--oneline` that logs the updates sensor value with
the chip and adapter on the same line.

This makes it easier to parse and uniquely identify sensors without
labels, such as `temp1` in the example below.

Without `--oneline`:

```
Chip: iwlwifi-virtual-0
Adapter: Virtual device
  temp1: 35.0 C
Chip: coretemp-isa-0000
Adapter: ISA adapter
  Package id 0: 46.0 C
  Core 0: 43.0 C
  Core 1: 43.0 C
  Core 2: 39.0 C
  Core 3: 41.0 C
Chip: acpitz-virtual-0
Adapter: Virtual device
  temp1: 25.0 C
Chip: dell_smm-virtual-0
Adapter: Virtual device
  Processor Fan: 2512 RPM
  Video Fan: 2498 RPM
  CPU: 46.0 C
  Ambient: 54.0 C
  Ambient: 47.0 C
  Other: 40.0 C
Chip: pch_skylake-virtual-0
Adapter: Virtual device
  temp1: 66.0 C
```

With `--oneline`:

```
Chip: iwlwifi-virtual-0 Adapter: Virtual device  temp1: 34.0 C
Chip: coretemp-isa-0000 Adapter: ISA adapter  Package id 0: 47.0 C
Chip: coretemp-isa-0000 Adapter: ISA adapter  Core 0: 42.0 C
Chip: coretemp-isa-0000 Adapter: ISA adapter  Core 1: 43.0 C
Chip: coretemp-isa-0000 Adapter: ISA adapter  Core 2: 39.0 C
Chip: coretemp-isa-0000 Adapter: ISA adapter  Core 3: 41.0 C
Chip: acpitz-virtual-0 Adapter: Virtual device  temp1: 25.0 C
Chip: dell_smm-virtual-0 Adapter: Virtual device  Processor Fan: 2512 RPM
Chip: dell_smm-virtual-0 Adapter: Virtual device  Video Fan: 2501 RPM
Chip: dell_smm-virtual-0 Adapter: Virtual device  CPU: 46.0 C
Chip: dell_smm-virtual-0 Adapter: Virtual device  Ambient: 54.0 C
Chip: dell_smm-virtual-0 Adapter: Virtual device  Ambient: 48.0 C
Chip: dell_smm-virtual-0 Adapter: Virtual device  Other: 40.0 C
Chip: pch_skylake-virtual-0 Adapter: Virtual device  temp1: 66.0 C
```

Signed-off-by: Lucas Magasweran <lucas.magasweran@ieee.org>
2018-08-24 14:36:54 +02:00
Roy Zhang 64e13d5998 sensors.conf.default: Add hardwired NCT6796D inputs
It seems Nuvoton NCT6796D also has the same hardwired inputs.

This was determined experimentally on an ASUS PRIME B360M-A board.

Signed-off-by: Roy Zhang <pudh4418@gmail.com>
2018-08-22 16:44:04 +08:00