Skip to content

Instantly share code, notes, and snippets.

@NTB45
NTB45 / Boot_to_different_os_in_rEFInd.md
Last active May 11, 2023 14:55
Reboot to different OS in rEFInd

Filler

So, after looking at Darkhogg's "Reboot to {OS}" scripts for rEFInd Next Boot selection scripts I realised that that method doesn't work for me.

I could not find the PreviousBoot file at /sys/firmware/efi/efivars.

So, I started looking around the rEFInd efi directory and voila Its in the /boot/efi/EFI/refind/vars directory.

How to do it

So instead of modifying the contents of the file

@fernospam
fernospam / Amazfit Bip-U.md
Last active June 11, 2024 10:32
How to create watch faces for Amazfit Bip U (also GTR and GTS)

Creación de Esferas para Amazfit Bip U (también GTR y GTS)

A continuación se relata lo mínimo necesario que hay que saber para crear esferas para varios relojes Amazfit. La explicación esta especialmente indicada para el modelo Bip-U, del cual apenas hay nada en internet, pero la mayoría de pasos son aplicables a otros modelos como GTS y GTR en sus distintas variedades, pues se utilizan las mismas herramientas.

Acceso a la app de creación de la esfera

Las esferas de varios modelos de Amazfit utilizan la app para este propósito que se encuentra en la web de Huami (los relojes Xiaomi, Amazfit y Zepp los fabrica Huami).

Primero hay que darse de alta en Huami como developer (descripción en https://amazfitwatchfaces.com/forum/viewtopic.php?t=2090)

@Darkhogg
Darkhogg / !RebootToOs.md
Last active May 29, 2024 02:34
"Reboot to {OS}" scripts for rEFInd Next Boot selection

Reboot to {OS}

This a collection of notes and files used in my quest to create "Reboot to Windows" and "Reboot to Linux" scripts (and desktop shortcuts) for Linux and Windows respectively that automatically reboot my system and instruct rEFInd to auto-select the appropriate OS entry.

General Information

The key for achieving this is to modify the EFI Variable PreviousBoot with GUID 36d08fa7-cf0b-42f5-8f14-68df73ed3740, which rEFInd uses to store the last entry selected in the menu and, if using the + default entry, will be used to select the default OS. By doing this, we trick rEFInd into booting the OS we choose without having to be physically there to press the keyboard.