Updated pmcputemp v0.9 64bit

Moderator: Forum moderators

Post Reply
ozsouth
Posts: 1713
Joined: Sun Jul 12, 2020 2:38 am
Location: S.E. Australia
Has thanked: 260 times
Been thanked: 780 times

Updated pmcputemp v0.9 64bit

Post by ozsouth »

Bookwormpup10.0.7 has been released (has a new Debian 12 base) & not only does the taskbar thermometer not change for me, but locating the correct file to display cpu temp is now obscure. All my previous cputemp programs will now fail with this pup. Need a more generic way to do this. So, this program searches hwmon0 -> hwmon5 folders & within them temp0_input -> temp4_input, finds the temp & displays that location ever after. Not ideal, but at least it's a guide. If unhappy with auto-selection (i.e. temp doesn't change), can edit
/root/.config/pmcputemp/pmcputemprc , & restart X, allowing re-detection - may need to do this later if PC was very cold upon .pet install. Tested OK in s15pup64-240706 & BookwormPup64-10.0.7. Need to restart X after install to activate. Use at own risk.

20Feb2025 - see v0.9s, further down - does the search in reverse, as cpu temps often not first item found.

Last edited by ozsouth on Wed Feb 26, 2025 11:35 pm, edited 11 times in total.
User avatar
BarryK
Posts: 2959
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 158 times
Been thanked: 819 times

Re: Updated pmcputemp v0.9h

Post by BarryK »

ozsouth
Posts: 1713
Joined: Sun Jul 12, 2020 2:38 am
Location: S.E. Australia
Has thanked: 260 times
Been thanked: 780 times

Re: Updated pmcputemp v0.9h

Post by ozsouth »

@BarryK - thanks for that. Unfortunately, the location just shows the static 25C. That's been my problem for years, on different PCs. Now that Debian 12 has a different format again, I chose to make the location in /sys/class/hwmon & check dozens of combinations for a sensible temperature. It was fine before this, just had to match tempX_label with tempX_input. Hence my rough approach above.

Tahrbaby
Posts: 121
Joined: Mon Jul 13, 2020 8:26 am
Location: London
Has thanked: 53 times
Been thanked: 18 times

Re: Updated pmcputemp v0.9h

Post by Tahrbaby »

ozsouth wrote: Fri Jul 12, 2024 4:49 am

Bookwormpup10.0.7 has been released & not only does the taskbar thermometer not change for me, but locating the correct file to display cpu temp is obscure. Instead of a matching label (to the input number) we just have 'name' file. All my previous cputemp programs will now fail with this pup. Need a more generic way to do this. So, this program searches hwmon0 -> hwmon7 folders & within them temp0_input -> temp7_input, finds the highest temp & displays that location ever after. Not ideal, but at least it's a guide. If unhappy with auto-selection, can manually edit /root/.config/pmcputemp/pmcputemprc.
Tested OK in s15pup64-240706 & BookwormPup64-10.0.7. Need to restart X after install to activate. Use at own risk.

Thanks for the updated pmcputemp @ozsouth

Was hoping it would fix the current problem I have whilst running in Bookworm 10.0.6 but no such luck yet.
I have the cpu temp icon in the taskbar at boot and it displays the correct temperature fine.
The problem I see is,the icon vanishes after around 30 minutes of runtime and I have to restart it from the startup directory to run for another 30 minutes or so.
This is on an AMD laptop.

TIA for any ideas?

ozsouth
Posts: 1713
Joined: Sun Jul 12, 2020 2:38 am
Location: S.E. Australia
Has thanked: 260 times
Been thanked: 780 times

Re: Updated pmcputemp v0.9h

Post by ozsouth »

@Tahrbaby - is your problem happening in the standard BookwormPup64, or after my .pet is installed? I'm using a very different method to radky's, so they shouldn't clash.

Tahrbaby
Posts: 121
Joined: Mon Jul 13, 2020 8:26 am
Location: London
Has thanked: 53 times
Been thanked: 18 times

Re: Updated pmcputemp v0.9h

Post by Tahrbaby »

ozsouth wrote: Sun Jul 14, 2024 9:15 am

@Tahrbaby - is your problem happening in the standard BookwormPup64, or after my .pet is installed? I'm using a very different method to radky's, so they shouldn't clash.

Yes Sir @ozsouth .indeed it was occurring in the standard BokwormPup64 and nothing to do with your latest version.

ozsouth
Posts: 1713
Joined: Sun Jul 12, 2020 2:38 am
Location: S.E. Australia
Has thanked: 260 times
Been thanked: 780 times

Re: Updated pmcputemp v0.9h

Post by ozsouth »

For BookwormPup64 ONLY, I made a reverse version of gatotray - see: viewtopic.php?p=126095#p126095

ozsouth
Posts: 1713
Joined: Sun Jul 12, 2020 2:38 am
Location: S.E. Australia
Has thanked: 260 times
Been thanked: 780 times

Updated pmcputemp v0.9s

Post by ozsouth »

I found that on many systems, the first temp listed is a static item (could be package, motherboard, wifi adaptor or gpu), not a cpu core, so I made a version that searches in reverse, as cpu cores seem to be listed last.
This checks 6 hwmon folders & 5 temp_input files, starting from hwmon5/temp4_input & working back till one is found. That location is then the default. My current display is hwmon3/temp3_input , which is Core 1. That is a good indicator, even if not perfect.
Need to restart X after install. Works on all 64bit pups I tried. Use at own risk.

Attachments
pmcputemp-0.9s.pet
(8.25 KiB) Downloaded 19 times
Last edited by ozsouth on Mon Feb 24, 2025 5:54 am, edited 1 time in total.
User avatar
mikewalsh
Moderator
Posts: 6518
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 993 times
Been thanked: 2170 times

Re: Updated pmcputemp v0.9

Post by mikewalsh »

@ozsouth :-

I'm assuming this is now "no-arch", Oz.....yes? I see pmcputemp.sh checks

Code: Select all

uname -m

.....on line 6, so.....

Mike. :? ;)

ozsouth
Posts: 1713
Joined: Sun Jul 12, 2020 2:38 am
Location: S.E. Australia
Has thanked: 260 times
Been thanked: 780 times

Re: Updated pmcputemp v0.9s 64bit

Post by ozsouth »

@mikewalsh - Executable is 64bit only. Detection shell script could be used for either.

Post Reply

Return to “Utilities”