I have a weird issue: sometimes when my monitor is turned off, the fans are running loud, even when there shouldn't be much usage of the CPU on the system as far as I know.
But as soon as I move my mouse and start top
to try to diagnose this, the activity, whatever it is, stops; with the fans winding down.
So I want a script/program/method that I could start at some point in time, leave the computer unattended while this program is recording CPU activity of processes, then when I resume operating the computer I should be able to read the program's report from which I would quickly know what processes are making the fans work hard.
EDIT: one chromium
process is the one making the fans run loud while the screen is off. No idea why, though.