lm sensors opensuse 42.1 and openSUSE 13.2

Hi

The program I know of to monitor temperature is lm-sensors.

I have opensuse 42.1 leap into a box and opensuse 13.2 in another box.

I searched the lmsensors program in both versions (42.1 and 13.2) of openSUSE and does not appear be installed. Nevertheless, in opensuse 13.2 there is a widget which shows the temperature of my processor :confused:

I’m confused . How can the widgets display the temperature in 13.2, if there is no lmsensors intalled ?

Thanks

Hi
It’s called ‘sensors’ these days…


zypper in sensors
sensors-detect
sensors

2 Likes

Thank you for your replies :slight_smile:

Excuse for my English, I’m trying to communicate …

Opensuse 13.2 and also the Opensuse The Leap 42.1, does not have, on a clean installation, sensors installed

***but although they have not on a clean installation, sensors installed in opensuse 13.2 there is a widget ( in opensuse 13.2 ) that shows the temperature of my processor

***How can it ?

thanks

Hi
What desktop environment (KDE, GNOME, XFCE etc)? Maybe post a screenshot of what your wanting?

Sensors is just an interface to the temperature sensors. The Temperature widget probably just access the hardware directly. Nothing at all magic about sensors package.

If you do sensors-detect it tells you what kernel driver it accesses, like Intel Coretemp driver in my case. The KDE widgets access the same driver, or the information is fed to them because they’re a lot slower, less accurate to update than using the terminal command. You can watch the widget adjust to the sensors command when it updates.

1 Like

Thanks

Use KDE

http://s8.postimg.org/kgqweihgh/imagem3.jpg](http://postimg.org/image/kgqweihgh/)

→→→ the red arrow shows in YaST that lmsensors (sensors) is not installed

→→→ the blue arrow shows that the widgets use lmsensors (sensors)

lmsensors could be installed in the kernel, or something?

The question might be stupid, but I’m new to opensuse

thanks

The kernel has the necessary drivers - do read carefully the post from david_banner for explanation re “sensors” package versus the KDE widget.

Running sensors-detect scans your hardware and offers to set the results in a config file at /etc/sysconfig/lm_sensors.

I believe that systemd initializes the lm_sensors service (see YaST Services Manager) using that config file at system startup to load the required kernel modules. The service should be “Enabled” and “Active”.

At the command line, “sensors” will display the status of the lm_sensors detected, and to provide continuous monitoring use “watch sensors” (key Ctrl+Z to quit). The quote marks are not required.

Hi

I do !

If I run “sensors-detect” I get

# sensors-detect
If 'sensors-detect' is not a typo you can use command-not-found to lookup the package that contains it, like this:
    cnf sensors-detect  

What was to be expected since I have not “lmsensor” (sensors) installed

# sensors
If 'sensors' is not a typo you can use command-not-found to lookup the package that contains it, like this:
    cnf sensors

ps: Every magic trick has a, if there is no trick is that there is a mystery

thanks for the replies :slight_smile:

I think the secret is in

**libsensors4

**

| libsensors4 - Hardware health monitoring library
|
|

libsensors offers a way for applications to access the hardware monitoring chips of the system. A system-dependent configuration file controls how the different inputs are labeled and what scaling factors have to be applied for the specific hardware, so that the output makes sense to the user.

The above was taken from Yast information .

It explains also because I have “sensors3.conf” file in /etc

but if this is true, then what program I could use to read temperatures, without being widgets ???

Thank you and sorry for the nonsense

Yes. You will need superuser privileges (administrator) to install the “sensors” package and to run the included “sensors-detect” program, but your ordinary user can run the “sensors” and “watch sensors” commands. The package also installs the systemd service for lm_sensors.

For “sensors-detect”, it is normally safe to give default replies by just pressing enter to all questions (the program will also tell you that).

thanks for the replies :slight_smile:

Please note that I ran sensor as su ( # )

I do not, as yet, install lmsensor … more information on above topics

libsensors4, is already installed on opensuse by default on a clean installation

thanks

It seems to me that if I uninstall libsensor4, I’ll in the risk to break the system, or at least make a big mess in the system …

I can’t see any Plasma 5 widgets for temperature sensors on my Leap installation. In that case, the only alternative I know is to use the command line package “sensors” as previously described. The displayed temperatures are the same as for the KDE4 widget - I have run both in parallel on 13.1 KDE4 recently. :wink:

You don’t need to remove libsensors4, it was already installed on my Leap before I installed “sensors”, and here they are both installed.

thanks for the replies

Yes . I have Opensuse leap 42.1 installed and know that.

Both the 13.2, as in “Leap 42.1” If you type sensors as sudo, you get nothing, unless you install the lmsensors

*Somehow kde uses libsensors4 to read *temperatures

thanks :slight_smile:

libsensors4 is also installed on leap 42.1 by default equal to 13.2, and there widgets that can be downloaded and it shows, in spite of not working properly, the temperature. The name is “Thermal Monitor” by clearmartin.

And you do not need lmsensors

thanks :slight_smile:

Now look at the configuration options (click spanner) for that ‘Thermal Monitor’ widget, it tells you the source it’s drawing from (for me: lmsensors/coretemp-isa-0000/core_0) - If you set it to ‘group sources’ and get it to monitor all your cores, it seems to take the average number between all cores. But there is definite lag there and it quite often misreads things.

Everything comes through accessing the relevant kernel driver, the widgets just aren’t as accurate / efficient at updating real time temps as using the sensors / watch sensors command. How do I know? I dropped a new ‘old’ i5-760 quad core in this box last week and needed to accurately monitor temperatures to see how efficient they were for (conservative) overclocking purposes, so I’ve got them all running side by side and am currently monitoring what’s going on.

I have sensors, libsensors4, libsensors4-32bit, libqt5sensors5, libqt5sensors5-imports packages installed.

Perhaps reading information available on the internet may help to clarify or update the situation for you. For example: https://en.wikipedia.org/wiki/Lm_sensorsThe basic tools and drivers provided by lm_sensors include the library “libsensors” for use by applications i.e. an application program interface (API). In the case of KDE4 that facility is provided by “libsensors4”, and presumably used by the KDE4 widgets. Both cases will end up using a configuration file for your hardware and the same kernel drivers for your particular chip sensors.

KDE4 (now unsupported by KDE project) is replaced by Plasma5. They are very different desktop implementations. AFAICT widgets (programs) for displaying temperatures on Plasma5 are not yet available!

Much earlier, Malcolm gave you the command line solution available for any linux desktop that features a terminal. There is that solution now for your Leap 42.1/Plasma5. The rest of us are just trying to answer questions and provide additional info, that now seem to be going round in circles.

That Thermal Monitor plasmoid is plasma 5 only: http://kde-apps.org/content/show.php/Thermal+Monitor?content=170354

Resource Monitor from the same guy is too: http://kde-apps.org/content/show.php?content=170120