It is incomplete but it works just like that after a successful boot. And no, i have no other hooks. But, if you clean nvram, the pc will bootloop due to rebuilding the gpu-... related files and activating the dGPU and not being able to boot to it. I edited my post with more info if you would like to re read it.
[doublepost=1501771268][/doublepost]Theorycrafting more into it, and assuming there is a logical structure into it, setting the gpu-power-prefs to (=) %07%00%00%00 instead of %01%00%00%00 would result into the dGPU being the primary boot gpu. But the main problem persists; MacOs overwrite that file on every reboot when not being specificly instructed to what to do.
The correct is (ArchLinux):
1 - Integrated video - Intel - %01%00%00%00
printf "\x07\x00\x00\x00\x01\x00\x00\x00" > /sys/.../gpu-power-prefs...
2 - Discrete video - AMD - %00%00%00%00
printf "\x07\x00\x00\x00\x00\x00\x00\x00" > /sys/.../gpu-power-prefs...
sudo nvram gpu-power-prefs=%01%00%00%00 - Does not create a gpu-power-prefs file on the EFI partition.
The correct format is: sudo nvram GUID:variable=value
sudo nvram fa4ce28d-b62f-4c99-9cc3-6815686e30f9:gpu-power-prefs=%01%00%00%00
With only sudo nvram gpu-power-prefs=%01%00%00%00 , Is the video card locked on the Intel video card? With gfxcardstatus, did you switch to Discrete Only and get locked on the Intel board?
Last edited: