Monitoring CPU and temperature
Solution 1
The software is called psensor.
- Linux: https://wpitchoune.net/psensor/
- Specific for Ubuntu: https://wpitchoune.net/psensor/ubuntu.html
There is an option to display the info on the toolbar, as well as in a stand-alone window.
Solution 2
This is a quick-and-dirty way I use to monitor my system core temperatures.
- install lm-sensors (if available in repository and can read CPU / GPU temps on respective hardware.
- install watch
watch
repeatedly executes the following command until exited. By default, it refreshes every 2 seconds, but this can be changed using "-n " switch.
In a console window or on cli, execute
-
watch sensors
shows temps, refreshes every 2 seconds -
watch -n 5 sensors
shows temps, refreshes every 5 seconds
My output shows:
Every 5.0s: sensors HOST-NAME: Wed Apr 15 08:13:57 2020
coretemp-isa-0000
Adapter: ISA adapter
Package id 0: +45.0°C (high = +105.0°C, crit = +105.0°C)
Core 0: +45.0°C (high = +105.0°C, crit = +105.0°C)
Core 1: +45.0°C (high = +105.0°C, crit = +105.0°C)
Core 2: +44.0°C (high = +105.0°C, crit = +105.0°C)
Core 3: +44.0°C (high = +105.0°C, crit = +105.0°C)
Solution 3
With psensor and real time measurement you need to be careful. I tried the program and I could hear by the fan of my laptop that the system-load created by psensor heated up the CPU non-negligibly. Somehow it prevented the CPU from idling. Now, with psensor de-installed the fan is less active. As the program only measures the temperatures and does not control the fan, at the same noise level the system should be cooler without psensor.
Related videos on Youtube
heinst
Updated on September 18, 2022Comments
-
heinst over 1 year
I was wondering what the proper protocol is for storing things such as URL endpoints, Client IDs and Client Secrets, in Xamarin. The information stored would need be reached by many classes across the solution. Right now, I am storing them as properties in a class within a portable class library. Not sure if this is right or if there is a better way.
-
Demitrian over 7 yearsDo you have any concerns in regards to the approach you're currently using? Is safety and reverse engineering a concern? If not, then your current solution should be viable.
-
heinst over 7 yearsKinda, the API I am using is open, so reverse engineering to get the keys and such wouldn't be a catastrophe. I am open to hear what else you had in mind though :)
-
SushiHangover over 7 yearsFor things like
URL endpoints
, I tend to lean towards using an xml/json file that I load at runtime (either from a bundled/cached file or https based resource). Debug builds can contain a set of development endpoints (i.e. locally hosted services), CI/test builds can a use test endpoints, alpha/beta could be different and production/app store can use the production end points..... this of course if highly app/infrastructure dependent. Any "private/secret" user info that is generated and consumed at runtime, store it in the in the OS provided trust manager, keystone, etc.. -
SushiHangover over 7 years
-
Demitrian over 7 yearsFor data that you need to protect, you could consider using the
Keychain
(iOS) orKeystore
(Android). For less secure data, you can consider usingNSUserDefaults
orSharedPreferences
. In any case, it would be sensible if you encrypted the data before storing it and decrypt it when required. -
xleon over 7 yearsIMHO securing or encrypting url endpoints is a waste of time. Even if they are https, the url can be obtained with any http proxy. ClientId usually refers to the type of client (mobile, web, etc). Why would you want to secure that?. The important thing to secure/obfuscate is the user token and/or refresh token (in case you use oAuth. If not, you should!), but that´s a different matter. I would store URL endpoints wherever you feel is right. I personally do it normally in a static constant that changes its value with conditional compiler symbols (DEBUG, RELEASE, STORE)
-
Admin over 6 yearsConky might be of interest, but it displays the information on the desktop, not on the top tool bar. Guide for installing on Ubuntu 16.04: linuxandubuntu.com/home/…
-
Admin over 6 yearsI'd like the mentioned infos in the top tool bar so that i could monitor my programs running on the terminal with just one of them opened and not 3, with Conky i'll have only 2 displays which would be better of 3 but still i'd prefer not having them at all, if i don't find anything for the purpose i'll give it a try @VassilisPapanikolaou
-
-
Zeno Raiser over 6 yearsAre there any real time measurement tools which also control the fan?
-
KarlG over 6 yearsI know there is speedfan, but it runs on windows. I have never tested it with wine.