Page 1 of 1

X5040 Sensors

Posted: Wed May 28, 2025 4:49 pm
by MartinW
Hello everyone.

I've had my X5040 board for coming up to 2 years now and never bothered with Linux since I have other machines with linux on but last weekend I decided to take the plunge. I got MintPPC up and running using kernel 6.15-rc7 and the single root partition method. I copied the kernel modules into /lib/modules (in a folder of the same name as reported by `name -r`) and installed the psensors package, and yet I get no temp readings except for my 2 hard drives (one of which is clearly wrong since it is locked at 100C and I'm guessing a SATA 6 SSD is not going to be that hot!).

The only hardware monitoring module I could see is lm90 (I think it was called that) so I inserted that but still nothing. Are there known issues with sensors on P5040, or something further I need to do?

Thanks.

Re: X5040 Sensors

Posted: Thu May 29, 2025 10:03 am
by sailorMH
I am not sure about X5000, but you can try universal lmsensors:

Code: Select all

apt-get install lm-sensors
sensors-detect
sensors
At least, it show PCIe devices temperature. Depending on X5000 design it should show motherboard and CPU temperature. Look here viewtopic.php?t=4938. Sensors-detect takes some time and user interaction.

To check SSD temperatures use one of this:

Code: Select all

apt-get install hddtemp
hddtemp /dev/sdX

Code: Select all

apt-get install smartmontools
smartctl -a /dev/sdX

Re: X5040 Sensors

Posted: Thu May 29, 2025 12:00 pm
by MartinW
I did already try lm-sensors and sensors-detect but it didn’t find any sensors. I believe I’ve seen it working for x5020 so I would think it should work for 5040 but maybe there is something missing from the device tree file? I don’t really understand that files source.

For now I wrote some C code to get the temps from the MCU over serial as per the manual. It works so at least I have something even if it’s a crude command like app for now. It’s also not finished yet, it displays all the info in hex at the moment but it won’t take me long to sort that.

I’m guessing there is a better way to integrate it into the OS sensor platform but I don’t know anything about that.