I'm having serious issues with Lenovo P51 notebook performance on battery in Windows 10. I'm not sure when this happened. Maybe it was caused by some driver update, maybe Windows update, maybe BIOS update, or maybe Lenovo Power Manager / Lenovo Vantage application update.
CPU is i7-7820HQ (3.9GHz turbo on single core)
Here is HWMonitor screenshot taken on AC on loaded CPU, normal behavior. CPU package power is 30-40W. Work is done in 5 seconds.
And another one on battery, same load conditions, abnormal behavior. CPU frequency is low (around 800MHz, sometimes it jumps higher for a moment). CPU package power is around 10W, sometimes jumps to ~20W. Work is done in 30+ seconds.
It acts very weird. After Windows startup I see 3.5GHz frequency in Task Manager. When I start some heavy java application (IntelliJ) that needs maybe 5 seconds to load on AC - CPU frequency suddenly drops to 800MHz and loading takes forever. After application is loaded - frequency goes back to 3.5GHz. It looks like it was up-side down. It is slowing down when I need performance and speeds up when it is idle.
My Windows power plan is set to maximum performance. I'm sure that in "old control panel" (powercfg.cpl), in advanced plan settings CPU power management is set to 100%.
There are no hardware problems with cooling. On AC adapter I can fully load this notebook with video encoding for 30 minutes (with both Intel CPU and Nvidia GPU loaded), average CPU power is something like 30-35W with peaks up to ~40W.
Battery condition is good (can hold 81Wh of 90Wh factory capacity).
What is going on?