Commit Graph
2038 Commits
Author SHA1 Message Date
Aurelien Jarno 97ef21e5ef sensors.1: editorial fixes
Submitted by Bjarni Ingi Gislason <bjarniig@simnet.is> via the Debian
BTS, bug #1050985.
2026-04-24 07:01:28 +00:00
Aurelien Jarno 53b2e83051 isaset.8: editorial fixes
Submitted by Bjarni Ingi Gislason <bjarniig@simnet.is> via the Debian
BTS, bug #1051115.
2026-04-24 07:01:28 +00:00
Aurelien Jarno 4fd2346cf7 isadump.8: editorial fixes
Submitted by Bjarni Ingi Gislason <bjarniig@simnet.is> via the Debian
BTS, bug #1051114.
2026-04-24 07:01:28 +00:00
Alexander Krikun 4f00d78b0f sensors-detect: Add support for NCT6799D
Also adds support for NCT6796D-S
2026-04-23 13:53:19 +00:00
ilya guterman d81c79c578 Enable support for new kernel it87 devices
IT8623E - https://github.com/torvalds/linux/blob/5bc1018675ec28a8a60d83b378d8c3991faa5a27/drivers/hwmon/it87.c#L17
IT8732F - https://github.com/torvalds/linux/blob/5bc1018675ec28a8a60d83b378d8c3991faa5a27/drivers/hwmon/it87.c#L27
IT87952E - https://github.com/torvalds/linux/blob/5bc1018675ec28a8a60d83b378d8c3991faa5a27/drivers/hwmon/it87.c#L37
IT8628E - https://github.com/torvalds/linux/blob/5bc1018675ec28a8a60d83b378d8c3991faa5a27/drivers/hwmon/it87.c#L18
2026-04-23 13:48:02 +00:00
graysky 68bda21952 Fix iconv linking detection for glibc-based builds
The current iconv detection checks if libiconv.so exists via ldconfig,
but fails on glibc systems where iconv is built into libc and doesn't
require separate linking. This causes build failures:

  ld: cannot find -liconv: No such file or directory

Replace the ldconfig check with a compile test that actually verifies
if iconv functions are available without additional libraries. This
correctly detects glibc's built-in iconv while still linking -liconv
on musl/uclibc systems that need it.

Fixes build on glibc-based systems including OpenWrt glibc targets.
2026-04-21 13:32:57 +02:00
xaizek 62a9553191 pwm: fix bad scaling due to use of integer type
This fixes commit c1a1f4ff20 ("pwm: Move
scaling factor from sensors prog to library") which didn't account for
return type of `get_type_scaling()` being `int` rather than `double` or
`float`, so the scaling was done by a factor of 2 instead of 2.55, thus
making the result off by quite a lot.

ms: adjust test
2026-04-21 13:24:21 +02:00
Michal Suchanek 2d18c0952a fancontrol: Uplift the --check option
- do not duplicate the load code
 - add description to man page
2024-02-17 12:41:20 +01:00
Aurelien Jarno c2df8a4183 fancontrol: Add --check option to only check configuration syntax
References: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=582979
2024-02-17 12:41:20 +01:00
Michal Suchanek 5f35944bc4 sensors-detect: Try more locations of udevadm
References: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=852558
2024-02-17 12:06:28 +01:00
Micah Gersten 71fb47f1b5 sensors-detect: Recognize 2 digit kernel version
References: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=630508
2024-02-17 12:06:28 +01:00
Aurelien Jarno b7b10c0065 sensors-detect: Recognize more chips
References: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=588355

ADT7466 -> lm85
SCH5524-NS -> none
2024-02-17 12:06:28 +01:00
Michal Suchanek 9e5156cb67 check: Check perl program syntax 2024-02-17 12:06:28 +01:00
Michal Suchanek 1c757b34a7 Fix build with extra libraries
Fixes: c829b4c7 ("Add LDFLAGS handling similar to CFLAGS")
2024-01-27 14:39:51 +01:00
Michal Suchanek e06d99df7c tests: Add trivial json formatting test 2024-01-17 19:43:50 +01:00
Michal Suchanek 989f387a9a tests: shellcheck the debug progs 2024-01-17 19:41:20 +01:00
Michal Suchanek 06bd510ef7 Install troubleshooting tools 2024-01-17 19:39:46 +01:00
Michal Suchanek 9aa83ee190 sensors-save: New debug tool for saving sensor data from sysfs 2024-01-17 19:39:46 +01:00
Michal Suchanek 905634f182 sensors-find-driver: Convert README to man page 2024-01-17 19:39:46 +01:00
Michal Suchanek 3a5737fe7b Rename find-driver -> sensors-find-driver 2024-01-17 19:39:46 +01:00
Michal Suchanek 0b771017be Append the "+git" post-release marker to LM_VERSION 2024-01-13 17:05:48 +01:00
Michal Suchanek 5c3ba50f80 Release version 3.6.2 2024-01-13 17:03:31 +01:00
Michal Suchanek 3bbd975860 quantity: Add enumeration type
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
2024-01-06 23:05:07 +01:00
Michal Suchanek 6b5a19b708 rrd: drop useless cast
Cast of (const char **) to (char **) avoids one warning to introduce
another. Drop it. rrd upstream should not need the cast anymore.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
2024-01-06 20:25:40 +01:00
Michal Suchanek c6c5dfcffd sensors: New json format option
Using -J rather than -j gives JSON with new, hopefully more usable
structure.
2023-12-28 13:04:22 +01:00
Michal Suchanek 3764b44396 json: Drop whitespace
The json can be reformatted with jq or similar tool into desired layout.
2023-12-28 13:04:10 +01:00
Michal Suchanek 0d9ea7f031 Move temperature sensor type translation to library 2023-12-28 13:03:50 +01:00
Michal Suchanek fcf478016d sensors: Use quantity unit to determine when to translate to fahrenheit 2023-12-28 13:02:52 +01:00
Michal Suchanek b4ab3652af sensors: json: Fix print of sensors without values
When the sensor does not provide a value something bogus is printed,
print a NaN instead.

Also update the output counting to also print a comman for NaNs.
2023-12-28 13:00:49 +01:00
Michal Suchanek 6fa5cba2e3 sysfs: Do not prescale frequency to MHz
Add autoscaling in the output instead.

Fixes: 54363271 ("libsensors + sensors: Add freq_input support")
2023-12-27 14:57:05 +01:00
Michal Suchanek c1a1f4ff20 pwm: Move scaling factor from sensors prog to library
Fixes: a6ec549e ("sensors: Add support for pwm sensors")
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
2023-12-27 13:17:28 +01:00
Michal Suchanek aa87b54d43 sensors: Also avoid conversion from double to float for Fahrenheit
Fixes: 868fd8d0 ("Avoid the conversions from double to float.")
2023-12-26 20:56:36 +01:00
Johannes Segitz f9ccac7d71 harden_sensord.service 2023-12-26 13:51:51 +01:00
Johannes Segitz 6c21643ed0 harden_lm_sensors.service 2023-12-26 13:51:51 +01:00
Johannes Segitz 209aab03ee harden_fancontrol.service 2023-12-26 13:51:51 +01:00
jdelvare@suse.de db241f6c6d lm_sensors-3.4.0-sensord-service-extra-args
Allow passing arbitrary extra arguments to sensord.
2023-12-26 13:51:51 +01:00
Jean Delvare ee5a542b20 pwmconfig: Further raise the fan threshold
Modern 4-pin fans can have a minimum speed (PWM=0) which is still
relatively high. I've seen 4500 RPM fans lower their speed to only
3500 RPM, which is 77% of the maximum speed, above our current
detection threshold (3/4 or 75%). Increase the threshold to 5/6
(roughly 83%) to make sure such fans are handled properly.

References: boo#1181890
Signed-off-by: Jean Delvare <jdelvare@suse.de>
2023-12-26 13:50:24 +01:00
Jean Delvare 36d976cba6 /var/run is deprecated
Systemd now wants PID files in /run, not /var/run. Service files have
been updated upstream already, but not the path used by the actual
programs. Change them too so that things don't break when the
/var/run symlink is eventually dropped.

References: bsc#1185183
2023-12-26 13:50:24 +01:00
Michal Suchanek 79d7803c41 Append the "+git" post-release marker to LM_VERSION 2023-12-26 13:45:29 +01:00
Michal Suchanek 54efada033 Release version 3.6.1
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
2023-12-24 23:38:23 +01:00
hramrach 7602fa5ff7 Merge pull request 'Add support for static only build' (#254) from ffontaine/master into master
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/254
2023-12-24 12:43:47 +01:00
hramrach 380b953638 Merge pull request 'sensord: Add support of emergency alarm' (#280) from amitcohen1/master into master
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/280
2023-12-24 12:40:49 +01:00
hramrach 3ca5feb1fa Merge pull request 'Update pwmconfig' (#304) from SirYaro/patch-1 into master
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/304
2023-12-24 12:38:28 +01:00
hramrach da5ff639fb Merge pull request 'sensors: Handle json trailing ',' when no features are listed' (#305) from nathanrossi/master into master
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/305
2023-12-24 12:37:30 +01:00
Michal Suchanek c91425c121 Merge branch 'thomab/freq' of ~/gitea/data/gitea-repositories/hramrach/lm-sensors 2023-12-24 12:28:52 +01:00
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