Hello,
I have a laptop with a 5800u and a 3050ti. I have found trying to get optimus to work is generally more pain than its worth, especially considering battery life (it just never seems to sleep properly). Therefor, I would like to only use my AMD apu in linux and if i really need to use the nvidia card i’ll just boot into windows.
I am able to disable the card by running:
echo 1 > /sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/remove
Which works fine, total package power goes from 24w to < 10w at idle. But it just re-enables every time I boot. I know I can add a udev rule to do this automatically but I was wondering 1) why does it keep re-enabling? and 2) is there a way to permanently disable whatever is re-enabling the nvidia gpu? Or is it just part of the kernel(?) and all I can do is create the udev rule?