[HOW TO] Intentionally insert delays into grub. Playing melodies with grub
Hardly necessary knowledge
After rebooting, etc., the monitor may need time to initialize. The time it takes for the screen to display is not enough for humans to distinguish. Internally, it works normally. This is the specification of the monitor.
Possible problems, etc.
- The grub selection menu is not displayed, so beginner users cannot do anything and the default is started.
Procedure Edit grub and regenerate grub.cfg
edit /etc/default/grub
- code /etc/default/grub
- micro /etc/default/grub
- kate /etc/default/grub
- sudo nano /etc/default/grub
sudo grub-mkconfig -o /boot/grub/grub.cfg
Specific editing work
/etc/default/grub Add the following to the last line. Example. The first line is fine too.
GRUB_INIT_TUNE="1750 523 1 392 1 523 1 659 1 784 1 1047 1 784 1 415 1 523 1 622 1 831 1 622 1 831 1 1046 1 1244 1 1661 1 1244 1 466 1 587 1 698 1 932 1 1175 1 1397 1 1865 1 1397 1"
If the tune is too long, it will delay the grub menu from appearing.
This is a feature that can be used or not, but I use GRUB_INIT_TUNE intentionally. Here is an example of Super Mario Brothers.
If your PC environment does not have a BEEP SPEAKER, no sound will be produced. However, keep in mind that you can use it as a delay.
An unnecessary addition: Sample 2
GRUB_INIT_TUNE="480 440 1" #1/8 sec 440Hz