Well done - a function works well on a restricted set of hardware which the OS has been tested thoroughly against. How do you expect that same thing to be achieved with the hundreds of potential laptops out there which could run Linux?
Who cares? The tribulations of the creator are not the concern of the end user.
If i can expect a macbook to work properly running macos, but can't expect a laptop running Linux to work properly, that's all I need to know. I'm not going to be all "I guess it doesn't matter that my laptop doesn't sleep, they have hundreds of models to account for!" and just deal with it.