Hi, I guess I've got a really unusual scenario where I need to switch between NVIDIA-only and Intel-only modes. Why?
- I've got a laptop, Legion 5, and I would really like to get more battery out of it.
- I tested offloading prime but it's just not it. I primarily use GNOME and it has an Information section in its settings (There is either shown Graphics: Intel + NVIDIA or one of these). More on that later
- I use an external monitor when the laptop is plugged in, kind of a docked state. And here I would like to have everything rendered by NVIDIA. (HDMI is wired to the NVIDIA GPU)
- Both displays are 144Hz (1080p + 1440p). The Intel iGPU doesn't keep up with rendering both smoothly in 144Hz. That's why I want GNOME desktop (or just GNOME session, not sure) to be rendered by NVIDIA.
- Ubuntu did it like this: option in top bar: NVIDIA, Intel or On-demand. I don't think I'm interested in on-demand. Click on one of these, log out, log in, card is changed, simple. I couldn't get this working on arch, maybe I'm doing something wrong or just there isn't much interest in switching the whole desktop's primary GPU.
- Changing the GPU in the BIOS is always not a smooth experience. And the extremely locked-down Legion 5's BIOS only has NVIDIA-only mode or Hybrid mode so in the battery scenario the NVIDIA card still uses power no matter what. Ubuntu turned the NVIDIA card when in Intel-only mode (I think it was acpi-call)
So: Intel for portable battery usage and NVIDIA only for more demanding tasks with AC and HDMI.
For some reason when inserting offload commands into /etc/environment GNOME refuses to start
I tried a few of archwiki's methods for PRIME and they either didn't work or I had no idea how to set these things up
I would like to achieve Ubuntu's way of switching the cards, is it possible?
Thanks in advance
