Amd gpu + nvidia gpu

I have MiniPC with AMD APU (7940HS with Radeon 780M) and external Nvidia GPU RTX4060

By default i use Nvidia GPU

Today i try to disable Nvidia GPU and use integrated 780M. When system loads X11 doesn’t start.

log say that

(EE)no screens found(EE)

video-linux already installed.

journalctl -b -p err say that nvidia graphics not found, sddm can’t start without display.

i tried to make kernel without nvidia modules with mkinitcpio but without success.

The correct setup for this situation is to use the amd iGPU by default.
The correct mhwd profile in this scenario is video-hybrid-amd-nvidia-prime.
With which (and assuming no other weird options were set, such as in BIOS) the amd iGPU would be used by defaulr and the nvidia would be called with prime-run, ex:

prime-run glxinfo | grep 'renderer string'

Display connected to eGPU, not to iGPU. When i plug off eGPU i connect display to iGPU.
iGPU and eGPU used as completely separate devices.

It is not simple and user friendly way, but for now i uninstalled video-nvidia to work on amd gpu. so before use nvidia gpu i need to install video-nvidia back.

May be there are some way to add second boot record to boot without nvidia kernel modules? This record must stay after system upgrade.