Commit Graph
1988 Commits
Author SHA1 Message Date
hramrach fbdf135806 Merge pull request 'sensors: Add support for rated values' (#358) from cpackham-atlnz/rated-values into master
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/358
2023-12-24 12:24:56 +01:00
hramrach fb35c5b4fa Merge pull request 'fancontrol, pwmconfig: Allow read-only pwm*_enable' (#344) from amezin/master into master
Note: strip superfluous parentheses
2023-12-24 12:20:04 +01:00
hramrach d13de9c532 Merge pull request 'prog/sensors: Only do conversion to Fahrenheit on temperatures' (#359) from cpackham-atlnz/fahrenheit into master
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/359
2023-12-24 12:07:22 +01:00
hramrach e7ecb0b92f Merge pull request 'Pwm' (#363) from Wer-Wolf/pwm into master
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/363
2023-12-24 12:06:18 +01:00
hramrach d2c15ac572 Merge pull request 'pwmconfig: Deal with relative paths for the config file.' (#386) from misieck/RelPath into master
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/386
2023-12-24 12:00:46 +01:00
hramrach 67898d9d9b Merge pull request 'ZSH completion for sensors and sensors-detect' (#404) from VorpalBlade/feature/zsh-completion into master
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/404
2023-12-24 11:58:03 +01:00
hramrach f6a3acb18a Merge pull request 'Add support for "inverted mode" PWM to fancontrol' (#435) from enkiusz/inverted-pwm-drive into master
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/435
2023-12-24 11:55:45 +01:00
hramrach f9be5331c8 Merge pull request 'fix spelling error' (#420) from uniontech-lilinjie/master into master
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/420
2023-12-24 11:54:24 +01:00
hramrach c5ae3fec1e Merge pull request 'fancontrol: Executable commands as temp sensors.' (#443) from xloem/tempexec into master
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/443
2023-12-24 11:53:24 +01:00
Miigon 88eeffcb50 pwmconfig: change usage of 'egrep' to 'grep -E'
GNU grep warns 'egrep' as obsolescent since grep-3.8
2023-06-14 08:36:21 +08:00
xloem d6dced0503 fancontrol: Executable commands as temp sensors. 2023-04-29 17:25:21 -04:00
Maciej Grela 2568fc1073 Allow configurations with MINPWM > MAXPWM
These configurations would drive the PWM outputs in an "inverted mode"
where the 0 value is full fan speed and 255 stops the fan. The PWM
output adjustment algorithm works correctly in this situation.
2023-03-26 17:02:22 +02:00
lilinjie f24ed9de23 fix spelling error
Signed-off-by: lilinjie <lilinjie@uniontech.com>
2022-12-12 11:01:54 +08:00
Arvid Norlander 3e82636733 ZSH completion for sensors and sensors-detect 2022-07-18 18:00:45 +02:00
Michal Pomorski 9943682a80 Add quotes over path variables. 2022-02-10 02:39:26 +01:00
Michal Pomorski 5e2e1fff53 Deal with relative paths for the config file. 2022-02-10 02:20:03 +01:00
Armin Wolf a6ec549ed6 sensors: Add support for pwm sensors
Add print_chip_pwm for displaying SENSORS_FEATURE_PWM.
2021-08-28 08:02:01 +02:00
Chris Packham 488d20b783 prog/sensors: Only do conversion to Fahrenheit on temperatures
Only apply conversion from Celsius to Fahrenheit on temperature values.
Leave other sensor readings as they were returned.

Fixes #357

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
2021-08-13 17:05:28 +12:00
Chris Packham 88f6c5ec9b sensors: Add support for rated values
Sysfs attributes for rated values were recently added to the kernel[1].
This adds support for displaying them in lm-sensors.

[1] - https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e8e61235

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
2021-08-12 15:07:38 +12:00
Aleksandr Mezin 49b6ae283d pwmconfig, fancontrol: Allow read-only pwm*_enable
Don't fail if pwm*_enable is read-only, but already set to 1.
2021-06-18 12:12:12 +06:00
sibeream a0ef84f658 Flag allow-no-sensors added. 2021-02-24 15:50:14 +01:00
Artem Egorenkov 58da103714 Merge pull request #290 from pzahemszky/2020-11-14-fancontrol
Improve some error messages of fancontrol
2020-12-02 15:50:49 +01:00
David Bartley ac03cccaf9 sensors-detect: Add support for NCT6687D.
Signed-off-by: David Bartley <andareed@gmail.com>
2020-12-01 02:44:32 -08:00
Peter Zahemszky af6bb037ef Improve some more error messages 2020-11-14 13:16:08 +00:00
Peter Zahemszky 1d8f9f18f9 Fix an error message 2020-11-14 13:12:35 +00:00
Wei Huang 5deee7d0c3 sensors-detect: Add support for AMD CPU Family 19h
Enable sensors-detect support for AMD Zen3 (Family 19h) CPUs. This PCI ID
is derived from Linux kernel PCI_DEVICE_ID_AMD_19H_DF_F3.

Signed-off-by: Wei Huang <wei.huang2@amd.com>
2020-08-27 01:11:43 -05:00
Ondřej Lysoněk 60d3c6be94 Merge pull request #226 from puneetse/fix-systemd-pidfile-warning
Change PIDFile path from /var/run to /run in systemd service units
2020-06-25 12:49:49 +02:00
Jean Delvare 97b07b2d86 sensors-detect: Move Winbond WPCD377I to the non-hwmon table
Move the detection entry for the Winbond WPCD377I to the
@non_hwmon_chip_ids table, where it belongs. This saves one line, and
more importantly prevents "not-a-sensor" from being accidentally
added to the list of kernel drivers.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
2020-05-13 11:02:42 +02:00
Jean Delvare 23c53b4574 sensors-detect: Fix the driver for Nuvoton W83677HG-I
Originally, support for the Nuvoton W83677HG-I and derivatives was
first added to the w83627ehf driver, so that's the driver recommended
by sensors-detect. Later, support for the same device was added to
the nct6775 driver. In kernel v5.6, support was removed from the
w83627ehf driver to get rid of the duplicate code.

So sensors-detect should now point users of this device to the
nct6775 driver. We can't do that for very old kernels though, as this
driver did not exist back then. I chose v3.10 for the cut-over, as
this is when support for the Nuvoton W83677HG-I was finalized in the
nct6775 driver, at least according to git log.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
2020-05-12 17:19:01 +02:00
puneetse 25f4f87937 Change PIDFile path from /var/run to /run
/var/run is considered a legacy directory by systemd 239+ and having it in unit files causes a warning to be emitted to the journal.
2020-03-11 09:36:51 -07:00
Ondřej Lysoněk 5066426c33 Merge pull request #205 from chris-est/master
sensors-detect: add support for FSC Teutates Chip
2019-10-30 09:24:18 +01:00
chris-est d5365edf20 sensors-detect: add support for FTS Teutates Chip
This patch adds support for the FTS Teutates Chip,
used on Fujitsu Mainboards for Intel Skylake and later Chipsets.
It is based on a patch from Fujitsu and was tested on a D-3446-S Mainboard.

The corresponding kernel module can be found here [1].

This is a revised version of an earlier pull request [2].

[1]: https://github.com/torvalds/linux/blob/master/drivers/hwmon/ftsteutates.c#L711
[2]: https://github.com/lm-sensors/lm-sensors/pull/9
2019-10-29 19:32:04 +01:00
Ondřej Lysoněk 6ac7554d69 sensors-detect: Document the --stat option in the man page 2019-10-25 12:16:05 +02:00
Ondřej Lysoněk c31efbbbab Append the "+git" post-release marker to LM_VERSION 2019-10-18 10:14:11 +02:00
Ondřej Lysoněk 1667b850a1 Update LM_VERSION for the 3.6.0 release 2019-10-17 17:43:18 +02:00
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
Samuel FORESTIER ab69812631 Fixes missing Fahrenheit conversion with raw output enabled 2019-10-07 19:30:11 +02:00
Samuel FORESTIER 10c4f2afdf Fixes Fahrenheit missing conversion when data are JSON-formatted 2019-08-21 19:20:46 +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
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
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
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