To prevent overheating on my X1 ThinkPad under Fedora I set the CPU governor to the power safe mode. As an added benefit it makes the laptop almost silent even when using all the cores/threads to compile huge C++ code base that may the memory usage towards 32 GB. Surely it compiles slower, but the slowdown is less than 25%