The laptop in question is an HP laptop with AMD Ryzen 5500U. The fan is no longer working and I cannot take it for repairing before a week or two. So I still want the laptop to work without the fan until I send it for repair. How should I setup the system so that it keeps the temps within safe limits using only passive cooling? The laptop runs Kubuntu 21.10 and the fan rarely ramped up back when it worked.
A good starting point is disabling turbo and limiting CPU frequency, but how can I set it up to throttle heavily if it reaches high temps to prevent safety shutdown?