Michal Suchanek
39d3145da9
test: Generate dependency files
2023-12-30 18:58:32 +01:00
Michal Suchanek
7a4b9b98c0
Correct dependencies for generated parser
...
The parser needs to be regenerated when makefile changes
2023-12-30 18:58:32 +01:00
Michal Suchanek
c829b4c7fb
Add LDFLAGS handling similar to CFLAGS
2023-12-29 15:37:00 +01:00
Michal Suchanek
d60d6beebf
Correct parser file dependencies
...
The dependencies for the parser files are not correct.
There is baroque irule adding header prerequisites to the parser but the
parser may still fail to build.
The real dependency is on conf-parse.h
There is no way to tell make that a rule produces two targets, such as
parse.c and parse.h. However, the dependency files are generated by a
separate rule, and not as a byproduct of building the source so they can
themselves have dependencies.
And dependencies they do have: when the header is generated it's in lib
but when the header is missing while generating dependency file it's
searched in top directory, and then the file that depends on it cannot
be built because the header neveer appears there.
When the generated .c file is addded as prerequisite to the dependency
file that should reference the header generated together with the .c
file the dependency file is generated correctly with the header present.
This is not easily reproducible with the current source but adding
conf-lex.h generated with conf-lex.c and including it in conf-parse.c
now makes both conf-lex.ad depend on conf-parse.h and conf-lex.ad on
conf-lex.h making the build 100% fail.
2023-12-29 15:11:49 +01:00
Michal Suchanek
9c66c7b59e
Remove special build rules for parser
...
The parser can be generated warning-free, no need to suppress warnings.
2023-12-29 15:11:49 +01:00
Michal Suchanek
f1af9ceae2
Add test makefile target
2023-12-28 20:58:39 +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
297b050d3d
sysfs: Add function for determining feature quantity
2023-12-28 13:02:33 +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
fceeee0543
sysfs: Multiplier 1 is the default, no need to list it.
...
Signed-off-by: Michal Suchanek <msuchanek@suse.de >
2023-12-27 13:40:53 +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
b76cd8a5f6
sysfs: Specific match has to go before generic match
...
This is not really a problem when the specific scaling factors happen to
be for factors not matched by a generic match but this may not hold in
general over time.
Fixes: 1bd92120 ("Fill the magnitude field of dynamically generated device entries.")
2023-12-27 13:17:16 +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
Michal Suchanek
43b6101bb0
sysfs: Expand filename buffer to quiet warning
...
The GCC heurisitc says that the buffer can overflow by 2 bytes, expand
it.
2023-12-26 16:35:46 +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
82ca61b38a
sysfs: remove unused variable
...
Fixes: e5e053bb ("libsensors: Avoid non-symlink sysfs device entries")
Signed-off-by: Michal Suchanek <msuchanek@suse.de >
2023-12-25 19:34:29 +01:00
Michal Suchanek
54efada033
Release version 3.6.1
...
Signed-off-by: Michal Suchanek <msuchanek@suse.de >
V3-6-1
2023-12-24 23:38:23 +01:00
Michal Suchanek
dbe3686933
Zotac IONITX-U: add conf extension.
2023-12-24 14:23:22 +01:00
hramrach
e48f8a41c8
Merge pull request 'Create GA-MA770-UD3.conf' ( #208 ) from clipo1979/patch-3 into master
...
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/208
2023-12-24 13:15:09 +01:00
hramrach
d268aca651
Merge pull request 'Add config for MSI X570-A Pro' ( #265 ) from depau-forks/master into master
...
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/265
2023-12-24 13:10:51 +01:00
hramrach
1b5678e09a
Merge pull request 'Add MS-7C91 configuraation' ( #306 ) from Tinigriffy/MS-7C91 into master
...
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/306
2023-12-24 13:09:58 +01:00
hramrach
b36d388bbd
Merge pull request 'Add Gigabyte GA-990FXA-UD7 config' ( #326 ) from SakiiCode/master into master
...
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/326
2023-12-24 13:09:33 +01:00
hramrach
36cf57f0bf
Merge pull request 'Add config for MSI B550-A Pro' ( #330 ) from soerengrunewald/master into master
...
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/330
2023-12-24 13:08:52 +01:00
hramrach
928125e598
Merge pull request 'Create GA-Z68AP-D3.conf' ( #338 ) from clipo1979/patch-4 into master
...
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/338
2023-12-24 13:08:19 +01:00
hramrach
39f1f39d9f
Merge pull request 'Config file Zotac IONITX-U Series mainboard' ( #413 ) from reibuehl/patch-1 into master
...
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/413
2023-12-24 13:05:35 +01:00
hramrach
2ad2f8bd2b
Merge pull request 'Config for ASRock B550 Steel Legend' ( #458 ) from akruppa/master into master
...
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/458
2023-12-24 13:05:07 +01:00
hramrach
61800efe18
Merge pull request 'New configuration for Lenovo ThinkPad X120e' ( #465 ) from sidorsett/master into master
...
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/465
2023-12-24 13:03:04 +01:00
hramrach
61ce4f89d1
Merge pull request 'New configuration for Netgear RN3138 NAS' ( #436 ) from enkiusz/rn3138-config into master
...
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/436
2023-12-24 13:01:43 +01:00
hramrach
5a9059cb3f
Merge pull request 'Add SuperMicro X8DTL-I ( X8DTL-*) config' ( #431 ) from renardein/patch-1 into master
...
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/431
2023-12-24 13:01:18 +01:00
hramrach
df163beb23
Merge pull request 'Add Fujitsu D3402-B1 config' ( #424 ) from Wer-Wolf/d3402 into master
...
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/424
2023-12-24 13:00:48 +01:00
hramrach
ddf1f11f1c
Merge pull request 'Add config for ASRock Z390 Taichi motherboard' ( #399 ) from petersulyok/add_config_for_asrock_z390_taichi into master
...
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/399
2023-12-24 12:59:02 +01:00
hramrach
bd4b7876ab
Merge pull request 'Add config for ASRock Z690 Extreme motherboard' ( #398 ) from petersulyok/add_config_for_asrock_z690_extreme into master
...
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/398
2023-12-24 12:58:47 +01:00
hramrach
3cb8b9196f
Merge pull request 'configs: Add ASUS M5A97 motherboard' ( #370 ) from oliv3r/master into master
...
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/370
2023-12-24 12:58:24 +01:00
hramrach
1f57c9285a
Merge pull request 'Support nct6106 chip and add config for Supermicro A2SAP' ( #384 ) from georgmu/nct6106 into master
...
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/384
2023-12-24 12:57:45 +01:00
hramrach
e25ddddc8b
Merge pull request 'Add config for Gigabyte B550 Vision D' ( #315 ) from mt-inside/master into master
...
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/315
2023-12-24 12:54:50 +01:00
hramrach
6a9a324bdf
Merge pull request 'Add config for Gigabyte B550M AORUS PRO' ( #302 ) from kapsh/b550m-aorus into master
...
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/302
2023-12-24 12:53:36 +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
b5f7b4c7c1
Merge pull request 'Tiny cleanup' ( #361 ) from a1346054/fixes into master
...
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/361
2023-12-24 12:41:54 +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