poorercputemp/pmcputemp revisions

Moderator: Forum moderators

Post Reply
ozsouth
Posts: 1569
Joined: Sun Jul 12, 2020 2:38 am
Location: S.E. Australia
Has thanked: 241 times
Been thanked: 704 times

poorercputemp/pmcputemp revisions

Post 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.

Attachments
pmcputemp-0.9g.pet
cpu temperature display 64bit - updated to v0.9
(8.36 KiB) Downloaded 34 times
poorercputemp64-0.1e.pet
cpu temperature display 64bit - only displays 2 digits
(7.49 KiB) Downloaded 33 times
Last edited by ozsouth on Fri Apr 05, 2024 1:25 pm, edited 10 times in total.
User avatar
mikewalsh
Moderator
Posts: 6160
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 795 times
Been thanked: 1981 times

Re: pmcputemp revision g

Post 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

ozsouth
Posts: 1569
Joined: Sun Jul 12, 2020 2:38 am
Location: S.E. Australia
Has thanked: 241 times
Been thanked: 704 times

Re: pmcputemp revision g

Post 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.

Last edited by ozsouth on Fri Apr 05, 2024 12:35 pm, edited 5 times in total.
User avatar
PipzDex
Posts: 189
Joined: Sun Jul 12, 2020 11:16 pm
Location: Mexico
Has thanked: 61 times
Been thanked: 81 times

Re: pmcputemp revision g

Post 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

Pentium (R) 2.20GHz I RAM: 8.0 GB I F96-CE_5 I Kernel 6.6.8-64oz-ao I Glibc: 2.31 I 1600x900 Px

My Puppy Stuff and more

ozsouth
Posts: 1569
Joined: Sun Jul 12, 2020 2:38 am
Location: S.E. Australia
Has thanked: 241 times
Been thanked: 704 times

poorercputemp/pmcputemp revisions

Post 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.

Last edited by ozsouth on Fri Apr 05, 2024 1:49 pm, edited 1 time in total.
User avatar
OscarTalks
Posts: 623
Joined: Tue Jul 14, 2020 10:11 pm
Location: London UK
Has thanked: 2 times
Been thanked: 247 times

Re: poorercputemp/pmcputemp revisions

Post 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

Attachments
pmcputemp090.jpg
pmcputemp090.jpg (30.02 KiB) Viewed 976 times
ozsouth
Posts: 1569
Joined: Sun Jul 12, 2020 2:38 am
Location: S.E. Australia
Has thanked: 241 times
Been thanked: 704 times

Re: poorercputemp/pmcputemp revisions

Post 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.

Post Reply

Return to “Utilities”