Page 1 of 1

poorercputemp/pmcputemp revisions

Posted: Fri Apr 05, 2024 12:45 am
by ozsouth

Seems modern puppies store their temperature data in /sys/class/hwmon. These offerings use the figure for the first 'Core' found. These work (FOR ME) in Bookwormpup64-10.0.6, Fossapup64-9.6-CE4, s15pup64_22.12-231209.
Must restart X after install to activate. Use at own risk.

1. I made a later pmcputemp 64bit (v0.9g). No obvious memory leak in this version.

2. I made a revision of poorercputemp 64bit (v0.1e). Note this only displays 2 digit temperature.


Re: pmcputemp revision g

Posted: Fri Apr 05, 2024 1:43 am
by mikewalsh

@ozsouth :-

Hm. Interesting.....

For me, temp1_input in that directory corresponds to my Nvidia GPU.....not the CPU at all! (This is in Xenialpup64, BTW; I wouldn't like to say where you draw the line for 'modern' Puppies).

The location you've named is the exact same one the 'discovery' line for the nouveau module in my NvidiaTrayTemp utility defaults to if it can't find the nvidia.ko module at

Code: Select all

/lib/modules/$UNAME/kernel/drivers/video/nvidia.ko

.....in which case it'll grep the official driver's core temp readout from /usr/bin/nvidia-smi (the Nvidia command-line utility included with every .run file you download from their website).

Food for thought, huh?

Mike. Image


Re: pmcputemp revision g

Posted: Fri Apr 05, 2024 2:34 am
by ozsouth

@mikewalsh - pmcputemp actually looks at (in /sys/class/hwmon) hwmon0 thru hwmon7, then checks in them for temp0 thru temp3 label, looking for the first label with 'Core' in it. So my s15pup64 actually displays /sys/class/hwmon/hwmon4/temp2_input , because
/sys/class/hwmon/hwmon4/temp2_label was 1st containing 'Core'. Hopefully that avoids the old gpu trap.
No worries about big modules - it only checks for 6 - coretemp , k10temp, k8temp, it87, lm85 & ncct6775 . If folk have a different module, the could replace one of those in the 2 instances in /usr/bin/pmcputemp.sh .
I actually tried this .pet on Bionicpup64 & Fossa64-Less too - both worked, but other pcs might not use /sys/class/hwmon path.

Later: I remembered pmcputemp0.63 has a small memory leak, so used same search method for new poorercputemp0.1. Later again, made pmcputempv0.9 - leak fixed.


Re: pmcputemp revision g

Posted: Fri Apr 05, 2024 3:39 am
by PipzDex

hello forum
Lately I've been working with conky and found some ways to display the same data (temp) with different commands
one of them is / and it shows me the information this way

Code: Select all

${acpitemp}

50 (number) but you need insert the "°C"
another is / and it shows me the information this way

Code: Select all

${hwmon 0 temp 1} and ${hwmon 0 temp 2}

55 45 (It's dual core my laptop) and the same here with the "°C"
another one / and this way

Code: Select all

${execi 10 sensors | grep 'Core 0' | awk {'print $3'}}

+50.0°C Exactly as shown no need change o add something

I know there are more commands but these are the ones that have worked for me so far
I hope this information is useful to you

by the way they all work in lua files

Cheers


poorercputemp/pmcputemp revisions

Posted: Fri Apr 05, 2024 4:10 am
by ozsouth

I added poorercputemp 0.1e (limitation - 2 digit temp display) , so folk can choose between it & later pmcputemp 0.9g Note both now also check for module smsc47b397. See 1st post.


Re: poorercputemp/pmcputemp revisions

Posted: Fri Apr 05, 2024 9:18 am
by OscarTalks
ozsouth wrote: Fri Apr 05, 2024 4:10 am

pmcputemp 0.63g (issue - small memory leak).

I believe the memory leak was fixed with some assistance from jamesbond. Check out the latest source from 01micko's github and see the latest commits (3 years ago).
The ones I compiled now show as version 0.90
https://github.com/01micko/pmcputemp


Re: poorercputemp/pmcputemp revisions

Posted: Fri Apr 05, 2024 10:18 am
by ozsouth

@OscarTalks - thanks for that. I use poorercputemp (no leak), so had forgotten until after I posted.

Later: I have now made pmcputemp 0.9g - leak appears fixed. See 1st post.