Tablet mode and auto-rotation on 2-in-1 devices

My laptop’s auto-rotation and tablet mode were never perfectly supported. However with a recent BIOS update by HP i lost auto-rotation too on Windows.

What are the current upstream projects that work on tablet mode recognition and auto-rotation?

In case you are interested my laptop is an HP ENVY-x360 15-eu0000 (267R8AV)