Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 12 Dec 2019, 11:59
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Newer CPU temperature display
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [11 Posts]  
Author Message
ozsouth

Joined: 01 Jan 2010
Posts: 600
Location: S.E Australia

PostPosted: Mon 18 Mar 2019, 02:02    Post subject:  Newer CPU temperature display  

Version 3 released (hopefully final):

- Uninstall other cpu temperature programs (if any), then install v3 version (32 or 64 bit).
- Keep sensors .pet if installed or install appropriate version (see below). Then restart X.
- If no valid module found, gives error message & exits program whereas v2 showed zero & kept running.
- Has more efficient code & anyone can change inputs/outputs by editing /usr/bin/cpucurtemp.sh
[Thankyou pre-testers - this is slightly different from the v2u1 test files.]

NOTES: Program checks the CPU raw temps 1-5 & reports the highest temperature (checks up to 4 cores). Refreshes every 5 seconds & re-starts every hour to mitigate small memory leak. Clicking/hovering on taskbar icon shows CPU frequencies. Tested in several pups on different pcs. Run at own risk.
This program by default utilises the common modules for AMD (k10temp) and Intel (coretemp) - used in machines made after 2011 (& some before). If no usable modules available, displays error message 'CPUCURTEMP FAILED' - i.e. not working for you. May be possible to find a usuable module, but some boards just aren't capable.

If it doesn't work for you (i.e. you have an old PC) you need to know what module is used for temperature - i.e. k8temp or it87 or lm85 or w83627hf or smsc47b397 or adt7463 or atk0110 ... etc.
If you have the appropriate sensors .pet loaded, can install (at own risk) sensors-detect-min .pet & in terminal run: sensors-detect-min
This should tell you what module is needed & opening screen detects CPU - AMD or Intel.
For AMD - edit 2nd line of /usr/bin/cpucurtemp.sh to list your module (replacing k10temp) & reboot (saving session).
For Intel - edit 3rd line of /usr/bin/cpucurtemp.sh to list your module (replacing coretemp) & reboot (saving session).
cpucurtemp64v3.pet
Description 
pet

 Download 
Filename  cpucurtemp64v3.pet 
Filesize  19.77 KB 
Downloaded  162 Time(s) 
cpucurtemp32v3.pet
Description 
pet

 Download 
Filename  cpucurtemp32v3.pet 
Filesize  19.17 KB 
Downloaded  141 Time(s) 
sensors-detect-min.pet
Description  ONLY USE THIS if cpucurtemp .pet doesn't work for your pc
pet

 Download 
Filename  sensors-detect-min.pet 
Filesize  43.77 KB 
Downloaded  146 Time(s) 
sensors32.pet
Description 
pet

 Download 
Filename  sensors32.pet 
Filesize  34.41 KB 
Downloaded  206 Time(s) 
sensors64u.pet
Description  for Ubuntu derivatives
pet

 Download 
Filename  sensors64u.pet 
Filesize  33.24 KB 
Downloaded  191 Time(s) 
sensors64s.pet
Description  for Slacko derivatives
pet

 Download 
Filename  sensors64s.pet 
Filesize  33.24 KB 
Downloaded  167 Time(s) 

Last edited by ozsouth on Thu 04 Apr 2019, 10:13; edited 22 times in total
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 12993
Location: S.C. USA

PostPosted: Mon 18 Mar 2019, 11:43    Post subject:  

Thanks for this!

Installed in Bionicpup64 8.0
Had to install both the cpucurtemp64.pet and the sensors64u.pet.

Quote:
in a terminal run sensors -Will tell you what module is being used - i.e. k8temp or it87 or w83627hf or smsc47b397 etc.

I am not seeing this info.
This is what I get when run sensors in terminal:
Code:
root# sensors
nouveau-pci-0100
Adapter: PCI adapter
fan1:        1123 RPM
temp1:        +41.0°C  (high = +95.0°C, hyst =  +3.0°C)
                       (crit = +105.0°C, hyst =  +5.0°C)
                       (emerg = +135.0°C, hyst =  +5.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +37.0°C  (high = +84.0°C, crit = +100.0°C)
Core 0:        +31.0°C  (high = +84.0°C, crit = +100.0°C)
Core 1:        +34.0°C  (high = +84.0°C, crit = +100.0°C)
Core 2:        +26.0°C  (high = +84.0°C, crit = +100.0°C)
Core 3:        +27.0°C  (high = +84.0°C, crit = +100.0°C)

root#

_________________
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
YaPI(any iso installer)
Back to top
View user's profile Send private message 
ozsouth

Joined: 01 Jan 2010
Posts: 600
Location: S.E Australia

PostPosted: Mon 18 Mar 2019, 18:47    Post subject:  

@bigpup - second para says that sensors test should only be run if the display doesn't work - i.e. you have an older PC which could use one of several modules. Glad you ran it, as I took a shortcut based on laptops I could access & yours has a different output again (man this is tricky!). Yours uses 'coretemp' (as do all intel) & would show 37 C based on your screeny, using the 'Package id' figure, instead of 'Core 0' which all PCs I tested use. Does that display value change?
Last edited by ozsouth on Thu 28 Mar 2019, 22:20; edited 2 times in total
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 12993
Location: S.C. USA

PostPosted: Wed 20 Mar 2019, 00:18    Post subject:  

I have an Intel processor.
i5 6400
Changed to the updated version of cpucurtemp64.
It now seems to follow what the core 0 is doing.

That is some strange download counts for those pet packages.
You would think, they would all be close to each other, for the number of downloads. Laughing
Could just be the forum download counter not doing a very good job!

_________________
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
YaPI(any iso installer)
Back to top
View user's profile Send private message 
peebee


Joined: 21 Sep 2008
Posts: 4094
Location: Worcestershire, UK

PostPosted: Mon 25 Mar 2019, 09:45    Post subject:  

Should these pets find their way to the official repositories so they can be included in woof-ce builds??

Are they common to all pups - and can they go into common32 and common64?

Could the sensors pets be made common by detecting which pup variant they were running on and adapting accordingly?

(pmcputemp is currently build specific........)

_________________
LxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64
Back to top
View user's profile Send private message Visit poster's website 
rufwoof


Joined: 24 Feb 2014
Posts: 3675

PostPosted: Mon 25 Mar 2019, 11:10    Post subject:  

My tray temp seems to align with
Code:
cat /sys/class/thermal/thermal_zone*/temp

_________________
( ͡° ͜ʖ ͡°) :wq
Fatdog multi-session usb

echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh
Back to top
View user's profile Send private message 
ozsouth

Joined: 01 Jan 2010
Posts: 600
Location: S.E Australia

PostPosted: Mon 25 Mar 2019, 19:04    Post subject: LIKELY UPDATE COMING  

LIKELY UPDATE COMING.
Back to top
View user's profile Send private message 
ozsouth

Joined: 01 Jan 2010
Posts: 600
Location: S.E Australia

PostPosted: Thu 28 Mar 2019, 18:48    Post subject: V2 released  

Version 2 released - SEE FIRST POST. (Thanks to pre-testers - is different from test v2).
Back to top
View user's profile Send private message 
Marv


Joined: 04 May 2005
Posts: 1216
Location: SW Wisconsin

PostPosted: Fri 29 Mar 2019, 18:50    Post subject:  

I am running version 2 in LxPupSc 19.01 +6 with the lxpup 5.04 64b kernel. The hardware is:
Code:
System:    Host: puppypc21956 Kernel: 5.0.4-lxpup64 x86_64 (64 bit) Desktop: LXDE (Openbox 3.6.1)
           Distro: LxPup-Sc 19.01
Machine:   Device: laptop System: FUJITSU product: LIFEBOOK S761 serial: R2500459
           Mobo: FUJITSU model: FJNB225 UEFI [Legacy]: FUJITSU // Phoenix v: Version 1.17 date: 03/14/2012
Battery    CMB1: charge: 56.0 Wh 100.0% condition: 56.0/56.0 Wh (100%)
CPU:       Dual core Intel Core i5-2520M (-HT-MCP-) speed/max: 1084/3200 MHz
Graphics:  Card: Intel 2nd Generation Core Processor Family Integrated Graphics Controller
           Display Server: X.org 1.20.4 drivers: intel (unloaded: modesetting,vesa) FAILED: fbdev
           tty size: 134x32 Advanced Data: N/A for root
Network:   Card: Qualcomm Atheros AR9287 Wireless Network Adapter (PCI-Express) driver: ath9k
Drives:    HDD Total Size: 120.0GB (35.6% used)
Weather:   Weather data failure: Fri Mar 29 17:35:00 CDT 2019
           Error: weather info downloaded but no data detected.
Info:      Processes: 160 Uptime: 2 days Memory: 401.4/3780.4MB Client: Shell (bash) inxi: 2.3.8
There is a noticeable difference between the CPU usage reported at idle between v1 and v2. I have rechecked several times and have tried to keep all the relevant parameters the same. The pup is running the intel_pstate powersave governor. I also will include the output of PupSysInfo below, again as near to idle as I can make things:
Code:
Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz
Socket Designation: Onboard
Manufacturer: Intel(R) Corporation
Voltage: 1.2 V
External Clock: 100 MHz
Min/Max Speed: 800/3200 MHz
Current Speed of Core 0:826 MHz, 1:962 MHz, 2:867 MHz, 3:809 MHz
Core Count: 2
Thread Count: 4
64-bit capable: yes
Version 1 seems to fall pretty close (but not exact) to the PupSysInfo values and also to what I have observed over a long period of time with pmcputemp. Offered in the spirit of testing.

Cheers,
version2.png
 Description   cpucurtemp version 2 output
 Filesize   18.11 KB
 Viewed   521 Time(s)

version2.png

version1.png
 Description   cpucurtemp version 1 output
 Filesize   34.43 KB
 Viewed   521 Time(s)

version1.png


_________________
Pups currently in kennel Very Happy Older LxPupSc and X-slacko-4.4 for my users; LxPupSc, LxPupSc64 and upupee for me. All good pups indeed, and all running savefiles for look'n'feel only. Browsers, etc. solely from SFS.
Back to top
View user's profile Send private message 
ozsouth

Joined: 01 Jan 2010
Posts: 600
Location: S.E Australia

PostPosted: Fri 29 Mar 2019, 22:19    Post subject:  

Thanks Marv - appreciate feedback. Would you mind posting output of sensors -u
Will tell me what v2 is picking up. It should be more accurate, as v1 only picked up the first core - often not the highest.
Back to top
View user's profile Send private message 
ozsouth

Joined: 01 Jan 2010
Posts: 600
Location: S.E Australia

PostPosted: Thu 04 Apr 2019, 10:14    Post subject:  

Version 3 (hopefully final) is released - see first post
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [11 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0530s ][ Queries: 13 (0.0074s) ][ GZIP on ]