I have been trying to install Nvidia Driver on my Asus Tuf Dash F15 Laptop for a month now. The people at https://forums.developer.nvidia.com/t/problems-installing-driver-on-laptop-with-an-intel-igpu-and-nvidia-card-with-optimus-technology/185030 have instructed me to ask Ubuntu how to do disable secure boot permanently.
It seems that whenever I reboot my laptop, the SHIMX64 boot file replaces the grubx64.efi file I manually configure. They think this is not allowing my computer to boot after the nvidia driver is installed. Even though in the bios it says secure boot and fast boot are disabled.
efibootmgr -v
BootCurrent: 0002
Timeout: 1 seconds
BootOrder: 0002,0000
Boot0000* Windows Boot Manager VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...3................
Boot0002* ubuntu HD(1,GPT,8d14fed6-6fff-4e5b-8c4e-330283fb6ca0,0x800,0x100000)/File(\EFI\UBUNTU\SHIMX64.EFI)
Then if i efibootmgr -c -d /dev/nvme0n1 -p 1 -l \\EFI\\ubuntu\\grubx64.efi -L "UBUNTU"
I get
efibootmgr -v
BootCurrent: 0002
Timeout: 1 seconds
BootOrder: 0001,0002,0000
Boot0000* Windows Boot Manager VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...3................
Boot0001* UBUNTU HD(1,GPT,8d14fed6-6fff-4e5b-8c4e-330283fb6ca0,0x800,0x100000)/File(\EFI\ubuntu\grubx64.efi)
Boot0002* ubuntu HD(1,GPT,8d14fed6-6fff-4e5b-8c4e-330283fb6ca0,0x800,0x100000)/File(\EFI\UBUNTU\SHIMX64.EFI)
So i then efibootmgr -b 0002 -B
to get
efibootmgr -v
BootCurrent: 0002
Timeout: 1 seconds
BootOrder: 0001,0000
Boot0000* Windows Boot Manager VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...3................
Boot0001* UBUNTU HD(1,GPT,8d14fed6-6fff-4e5b-8c4e-330283fb6ca0,0x800,0x100000)/File(\EFI\ubuntu\grubx64.efi)
And this is all good and dandy until i reboot
and then we are back to
efibootmgr -v
BootCurrent: 0002
Timeout: 1 seconds
BootOrder: 0002,0000
Boot0000* Windows Boot Manager VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...3................
Boot0002* ubuntu HD(1,GPT,8d14fed6-6fff-4e5b-8c4e-330283fb6ca0,0x800,0x100000)/File(\EFI\UBUNTU\SHIMX64.EFI)
What do? Please help. Thank you.