MacBook Pro fans spinning at high speed when CPU idle
A few days ago the fans of my MacBook Pro with the M1 CPU (MacBookPro18,1) started spinning loudly. Left one is running at 4300 rpm and right one at 4700 while the CPU is 97% idle and the temperature is at around 40 C. I don't see any reason for the fans to be spinning so fast. What could be causing this when the temperature is low?
I've tried upgrading to the latest version of the OS that's currently available (Sonoma 14.5), but the problem persists.
I've tried starting in safe mode, but the problem persists. It even occurs in the boot selection screen. The fans only stop spinning when the computer is off.
I'm trying to think what may have triggered this, and the only thing I can think of is that may be related to evaluating the game porting toolkit: Game Porting Toolkit 2 - Games - Apple Developer
The Macs Fan Control app shows that both fans are on auto, so it appears the default auto mode is not acting the way it should:
Setting the fan speed according to sensor values seems to fix the problem, but that only works while the app is running. They continue spinning after it's closed. Does anybody have any recommendations to fix this problem?
MacBook Pro 15″