System freezes when using DRI_PRIME=1 with the dedicated GPU

Make sure Secure Boot is turned off in the BIOS.