menuentry "Start with proprietary + open source drivers" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
    linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux bootsplash.bootfile=/bootsplash-themes/biglinux/bootsplash video=efifb:nobgrt driver=nonfree nouveau.modeset=0 i915.modeset=1 radeon.modeset=1 nowatchdog systemd.show_status=1 intremap=off quiet
    initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
}
menuentry "Start with open source drivers" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
    linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux bootsplash.bootfile=/bootsplash-themes/biglinux/bootsplash video=efifb:nobgrt driver=free nowatchdog systemd.show_status=1 intremap=off quiet
    initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
}

menuentry "" {
    set gfxpayload=keep
}

submenu 'Compatibility modes with proprietary + open source drivers' $menuentry_id_option 'gnulinux-advanced-7ae0c6e3-f7c7-44e4-96e1-edeee79bc62b' {

    title=""
    for kopt in @ARCH@ $kopts  @DEFAULT_ARGS@ @BOOT_ARGS@; do
        if [ -n "$title" ] ; then
            title="$title $kopt";
        else
            title="$kopt";
        fi;
    done
    
    


    menuentry "without modeset" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux bootsplash.bootfile=/bootsplash-themes/biglinux/bootsplash video=efifb:nobgrt driver=nonfree nouveau.modeset=0 i915.modeset=0 radeon.modeset=0 nowatchdog systemd.show_status=1 quiet
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }
    
    menuentry "nvme_core.default_ps_max_latency_us=0" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux bootsplash.bootfile=/bootsplash-themes/biglinux/bootsplash video=efifb:nobgrt driver=nonfree nowatchdog systemd.show_status=1 nvme_core.default_ps_max_latency_us=0 quiet
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }

    menuentry "nopat noapic noapci nolapic irqpoll iommu=soft hpet=disable" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux bootsplash.bootfile=/bootsplash-themes/biglinux/bootsplash video=efifb:nobgrt driver=nonfree nopat noapic noapci nolapic irqpoll iommu=soft hpet=disable nowatchdog systemd.show_status=1 quiet
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }
    menuentry "video=SVIDEO-1:d hpet=disable" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux bootsplash.bootfile=/bootsplash-themes/biglinux/bootsplash video=efifb:nobgrt driver=nonfree video=SVIDEO-1:d hpet=disable nowatchdog systemd.show_status=1 quiet
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }
    menuentry "video=SVIDEO-1:d" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux bootsplash.bootfile=/bootsplash-themes/biglinux/bootsplash video=efifb:nobgrt driver=nonfree video=SVIDEO-1:d nowatchdog systemd.show_status=1 quiet
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }
    menuentry "hpet=disable" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux bootsplash.bootfile=/bootsplash-themes/biglinux/bootsplash video=efifb:nobgrt driver=nonfree hpet=disable nowatchdog systemd.show_status=1 quiet
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }
    menuentry "i915.semaphores=1" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux bootsplash.bootfile=/bootsplash-themes/biglinux/bootsplash video=efifb:nobgrt driver=nonfree i915.semaphores=1 nowatchdog systemd.show_status=1 quiet
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }
    menuentry "nopat" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux bootsplash.bootfile=/bootsplash-themes/biglinux/bootsplash video=efifb:nobgrt driver=nonfree nopat nowatchdog systemd.show_status=1 quiet
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }
    menuentry "without splash" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux driver=nonfree
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }
    menuentry "pnpbios=off" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux bootsplash.bootfile=/bootsplash-themes/biglinux/bootsplash video=efifb:nobgrt driver=nonfree pnpbios=off nowatchdog systemd.show_status=1 quiet
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }
    menuentry "pnpbios=off noapic nolapic" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux bootsplash.bootfile=/bootsplash-themes/biglinux/bootsplash video=efifb:nobgrt driver=nonfree pnpbios=off noapic nolapic nowatchdog systemd.show_status=1 quiet
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }
    menuentry "acpi_osi=Linux" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux bootsplash.bootfile=/bootsplash-themes/biglinux/bootsplash video=efifb:nobgrt driver=nonfree acpi_osi=Linux nowatchdog systemd.show_status=1 quiet
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }
    menuentry "acpi_osi=!Windows 2012" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux bootsplash.bootfile=/bootsplash-themes/biglinux/bootsplash video=efifb:nobgrt driver=nonfree  acpi_osi="!Windows 2012" nowatchdog systemd.show_status=1 quiet
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }
    menuentry "acpi=off" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux bootsplash.bootfile=/bootsplash-themes/biglinux/bootsplash video=efifb:nobgrt driver=nonfree noacpi acpi=off nowatchdog systemd.show_status=1 quiet
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }
    menuentry "iommu=soft" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux bootsplash.bootfile=/bootsplash-themes/biglinux/bootsplash video=efifb:nobgrt driver=nonfree iommu=soft nowatchdog systemd.show_status=1 quiet
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }
    menuentry "nomodeset" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux bootsplash.bootfile=/bootsplash-themes/biglinux/bootsplash video=efifb:nobgrt driver=nonfree nomodeset nowatchdog systemd.show_status=1 quiet
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }
    menuentry "nopat noapic noapci nolapic nosplash irqpoll" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux driver=nonfree nopat noapic noapci nolapic irqpoll nowatchdog systemd.show_status=1 quiet
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }


}


submenu 'Compatibility modes with open source drivers' $menuentry_id_option 'gnulinux-advanced-7ae0c6e3-f7c7-44e4-96e1-edeee79bc62b' {

    title=""
    for kopt in @ARCH@ $kopts  @DEFAULT_ARGS@ @BOOT_ARGS@; do
        if [ -n "$title" ] ; then
            title="$title $kopt";
        else
            title="$kopt";
        fi;
    done

    menuentry "without modeset" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux bootsplash.bootfile=/bootsplash-themes/biglinux/bootsplash video=efifb:nobgrt driver=free nouveau.modeset=0 i915.modeset=0 radeon.modeset=0 nowatchdog systemd.show_status=1 quiet
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }

    menuentry "nvme_core.default_ps_max_latency_us=0" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux bootsplash.bootfile=/bootsplash-themes/biglinux/bootsplash video=efifb:nobgrt driver=free nowatchdog systemd.show_status=1 nvme_core.default_ps_max_latency_us=0 quiet
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }

    menuentry "nopat noapic noapci nolapic irqpoll iommu=soft hpet=disable" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux bootsplash.bootfile=/bootsplash-themes/biglinux/bootsplash video=efifb:nobgrt driver=free nopat noapic noapci nolapic irqpoll iommu=soft hpet=disable nowatchdog systemd.show_status=1 quiet
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }
    menuentry "video=SVIDEO-1:d hpet=disable" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux bootsplash.bootfile=/bootsplash-themes/biglinux/bootsplash video=efifb:nobgrt driver=free video=SVIDEO-1:d hpet=disable nowatchdog systemd.show_status=1 quiet
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }
    menuentry "video=SVIDEO-1:d" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux bootsplash.bootfile=/bootsplash-themes/biglinux/bootsplash video=efifb:nobgrt driver=free video=SVIDEO-1:d nowatchdog systemd.show_status=1 quiet
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }
    menuentry "hpet=disable" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux bootsplash.bootfile=/bootsplash-themes/biglinux/bootsplash video=efifb:nobgrt driver=free hpet=disable nowatchdog systemd.show_status=1 quiet
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }
    menuentry "i915.semaphores=1" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux bootsplash.bootfile=/bootsplash-themes/biglinux/bootsplash video=efifb:nobgrt driver=free i915.semaphores=1 nowatchdog systemd.show_status=1 quiet
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }
    menuentry "nopat" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux bootsplash.bootfile=/bootsplash-themes/biglinux/bootsplash video=efifb:nobgrt driver=free nopat nowatchdog systemd.show_status=1 quiet
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }
    menuentry "without splash" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux driver=free
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }
    menuentry "pnpbios=off" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux bootsplash.bootfile=/bootsplash-themes/biglinux/bootsplash video=efifb:nobgrt driver=free pnpbios=off nowatchdog systemd.show_status=1 quiet
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }
    menuentry "pnpbios=off noapic nolapic" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux bootsplash.bootfile=/bootsplash-themes/biglinux/bootsplash video=efifb:nobgrt driver=free pnpbios=off noapic nolapic nowatchdog systemd.show_status=1 quiet
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }
    menuentry "acpi_osi=Linux" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux bootsplash.bootfile=/bootsplash-themes/biglinux/bootsplash video=efifb:nobgrt driver=free acpi_osi=Linux nowatchdog systemd.show_status=1 quiet
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }
    menuentry "acpi_osi=!Windows 2012" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux bootsplash.bootfile=/bootsplash-themes/biglinux/bootsplash video=efifb:nobgrt driver=free  acpi_osi="!Windows 2012" nowatchdog systemd.show_status=1 quiet
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }
    menuentry "acpi=off" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux bootsplash.bootfile=/bootsplash-themes/biglinux/bootsplash video=efifb:nobgrt driver=free noacpi acpi=off nowatchdog systemd.show_status=1 quiet
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }
    menuentry "iommu=soft" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux bootsplash.bootfile=/bootsplash-themes/biglinux/bootsplash video=efifb:nobgrt driver=free iommu=soft nowatchdog systemd.show_status=1 quiet
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }
    menuentry "nomodeset" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux bootsplash.bootfile=/bootsplash-themes/biglinux/bootsplash video=efifb:nobgrt driver=free nomodeset nowatchdog systemd.show_status=1 quiet
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }
    menuentry "nopat noapic noapci nolapic nosplash irqpoll" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
        linux /boot/vmlinuz-x86_64 misobasedir=manjaro misolabel=biglinux driver=free nopat noapic noapci nolapic irqpoll nowatchdog systemd.show_status=1 quiet
        initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
    }


}

