@mcc obligatory: It's all Ubuntu's fault 🫣
In all seriousness, in my opinion most "easy" distros make too many wrong assumptions about your system, your configuration and your goals and habits. I have zero issues with sleep/wake/lid stuff and the ThinkPad Dock works more reliable with my Framework 13 on Linux than with the ThinkPad it came with on Windows 11 (it has the exact problem of just not waking up from sleep correctly...).
*But* I generally think Windows has that stuff figured out.
@mcc for some reason Windows *just works* in a higher percentage of use cases and works well enough to be usable. How many weird shims, edge cases, device specific quirks and little driver corner cases do they have in that OS? It's an incredible piece of software.
Most likely the certification of drivers is the main thing behind this success, but it can't be too hard to get certified stuff either given what some vendors deliver...