Hello, is there somehow a way to do something special, when I close my laptop other than shutdown or standby? For example set the energy saving profile from balanced to energy saving, and back when opening the lid again. Actually I want the laptop to behave the following:

When I close my laptop lid, it still should run, but the processor speed should be limited to it's lowest possible state, and might not be allowed to run higher.

I want this because I had problems before, where Windows does "something stupid", when the lid is closed, for example run some indexing stuff or other scans, which causes the laptop to overheat when the cpu is running 100% and it's lid is closed.

Is there a certain party program which can do this?