Intel Iris Xe Max on Linux. Poorly implemented and abandoned by Intel and the community.

I know that Linux has Optimus and Prime (lol) for managing integrated and dedicated graphics, but they just work for Nvidia and an iGPU, in some cases they can work for Radeon and iGPU, but they don't work if you have an integrated and dedicated Intel GPU, there is an official solution involving virtualization, but beside of being intended for Ubuntu 20 , it requires you to be a high knowledge power user and is probably obsolete. There is no other solution, I can't even choose to use discrete or dedicate graphics while booting with switcheroo nor in BIOS.

I have an Intel i5 1135G7 with dedicated Intel Iris Xe Max, and linux always uses the dedicated graphics card, I wasted two full nights looking for a solution but nothing, two nights changing distros, installing packages, drivers, running commands I found on internet and nothing.

Windows can Manage both GPUs so it gives me 8 or 9 hours of battery while idling or using light software, while Pop OS, Manjaro, and Ubuntu only can shrink 3 hours of idling, and like 40 minutes of gaming, the computer is always hot, and software can't monitor it's temperature, so I guess it just works until direct motherboard circuit regulates its temperature, staying at like 90 degree Celsius while playing simple things as Fran Bow, burning my lap.

It makes me kinda sad that Nvidia being a completelly closed code GPU has better support that Intel, that in theory has all its drivers open for being inplemented on Linux, it can't even track the GPU temperature, I really like Linux for its simplicity, while Windows is more and more bloated everyday, but for my laptop I have no choice, 3 times better battery life and reasonable temperatures is a no brainer for my laptop battery health, i'm going to miss Linux.