SynoCommunity / spksrc

Cross compilation framework to create native packages for the Synology's NAS
https://synocommunity.com
Other
3.03k stars 1.23k forks source link

[Package Request] lm-sensors #5443

Closed zsdd89 closed 3 months ago

zsdd89 commented 2 years ago

Software Name

lm-sensors

Brief Description

Hi Please can you add lm-sensors daemon into the SynoCli Monitor Tools pack? I need to install entware on my xpenology nas to monitor cpu temps, every other tools are already included in your SynoCli packs. Thank you

Website

https://github.com/lm-sensors/lm-sensors

Documentation

No response

Build/Installation documentation

https://github.com/lm-sensors/lm-sensors

Source code

https://github.com/lm-sensors/lm-sensors/releases/tag/V3-6-0

OpenSource License

GPLv3

Other License

No response

hgy59 commented 5 months ago

@zsdd89 are you still interested in lm-sensors?

If you expect a lm-sensors daemon, it does not suit into synocli-monitor, since the synocli-* packages are command line tools only and do not install any service or daemon.

An other reason for a dedicated package for lm-sensors is the dependency of perl.

hgy59 commented 5 months ago

@zsdd89 i tried lm-sensors on virtual DSM 7.2 on x86-64, but no sensors are available:

$ sudo sensors-detect
# sensors-detect version 3.6.0
# System: QEMU Standard PC (i440FX + PIIX, 1996) [pc-i440fx-2.2]
# Kernel: 4.4.302+ x86_64
# Processor: Intel(R) Celeron(R) CPU J3355 @ 2.00GHz (6/92/9)

This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.

Some south bridges, CPUs or memory controllers contain embedded sensors.
Do you want to scan for them? This is totally safe. (YES/no):
Silicon Integrated Systems SIS5595...                       No
VIA VT82C686 Integrated Sensors...                          No
VIA VT8231 Integrated Sensors...                            No
AMD K8 thermal sensors...                                   No
AMD Family 10h thermal sensors...                           No
AMD Family 11h thermal sensors...                           No
AMD Family 12h and 14h thermal sensors...                   No
AMD Family 15h thermal sensors...                           No
AMD Family 16h thermal sensors...                           No
AMD Family 17h thermal sensors...                           No
AMD Family 15h power sensors...                             No
AMD Family 16h power sensors...                             No
Hygon Family 18h thermal sensors...                         No
Intel digital thermal sensor...                             No
Intel AMB FB-DIMM thermal sensor...                         No
Intel 5500/5520/X58 thermal sensor...                       No
VIA C7 thermal sensor...                                    No
VIA Nano thermal sensor...                                  No

Some Super I/O chips contain embedded sensors. We have to write to
standard I/O ports to probe them. This is usually safe.
Do you want to scan for Super I/O sensors? (YES/no):
Probing for Super-I/O at 0x2e/0x2f
Trying family `National Semiconductor/ITE'...               No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Nuvoton/Fintek'...               No
Trying family `ITE'...                                      No
Probing for Super-I/O at 0x4e/0x4f
Trying family `National Semiconductor/ITE'...               No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Nuvoton/Fintek'...               No
Trying family `ITE'...                                      No

Some systems (mainly servers) implement IPMI, a set of common interfaces
through which system health data may be retrieved, amongst other things.
We first try to get the information from SMBIOS. If we don't find it
there, we have to read from arbitrary I/O ports to probe for such
interfaces. This is normally safe. Do you want to scan for IPMI
interfaces? (YES/no):
Probing for `IPMI BMC KCS' at 0xca0...                      No
Probing for `IPMI BMC SMIC' at 0xca8...                     No

Some hardware monitoring chips are accessible through the ISA I/O ports.
We have to write to arbitrary I/O ports to probe them. This is usually
safe though. Yes, you do have ISA I/O ports even if you do not have any
ISA slots! Do you want to scan the ISA I/O ports? (YES/no):
Probing for `National Semiconductor LM78' at 0x290...       No
Probing for `National Semiconductor LM79' at 0x290...       No
Probing for `Winbond W83781D' at 0x290...                   No
Probing for `Winbond W83782D' at 0x290...                   No

Lastly, we can probe the I2C/SMBus adapters for connected hardware
monitoring devices. This is the most risky part, and while it works
reasonably well on most systems, it has been reported to cause trouble
on some systems.
Do you want to probe the I2C/SMBus adapters now? (YES/no):
Using driver `i2c-piix4' for device 0000:00:01.3: Intel 82371AB PIIX4 ACPI
modprobe: FATAL: Module i2c-piix4 not found.
Failed to load module i2c-piix4.

Sorry, no sensors were detected.
Either your system has no sensors, or they are not supported, or
they are connected to an I2C or SMBus adapter that is not
supported. If you find out what chips are on your board, check
https://hwmon.wiki.kernel.org/device_support_status for driver status.

It seems that the required kernel drivers are not available on DSM.

hgy59 commented 4 months ago

@zsdd89 are you still interested in lm-sensors?

Just found, that only on VirtualDSM the sensors are missing. Even the DSM Control Panel is not showing the Thermal Status on VirtualDSM.

On a real DSM218+ it reports such as:

$ sensors
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +44.0°C  (high = +105.0°C, crit = +105.0°C)
Core 0:         +43.0°C  (high = +105.0°C, crit = +105.0°C)
Core 2:         +42.0°C  (high = +105.0°C, crit = +105.0°C)

And the sensors command works without perl. Only sensors-detect and sensors-conf-convert depend on installed Perl package.

So it will be an option to add lm-sensors to synocli-monitor. I will suggest to omit the perl dependency to the package, so it will be optional and Perl must only be installed to use sensors-detect or sensors-conf-convert.

zsdd89 commented 4 months ago

Hi Yes, it would be very useful Thanks