Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Grub Init Tune: Mario Bros. Mushroom Powerup

Grub Init Tune - Mario Bros. Mushroom Powerup

This Grub Init Tune will make your computer sound like a Super Mushroom every time you turn it on! This only works for the Grub bootloader - this generally means you need to have Linux (or other Grub-based OS) installed.

Here's the code, which goes in your /etc/default/grub file:

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 1195 1 1397 1 1865 1 1397 1"

Installation Instructions

Instructions adapted from https://web.archive.org/web/20150115050225/http://www.iavit.org/~john/debian/grub.html:

  1. Edit the file /etc/default/grub. At the end there are lines like the following:
    # Uncomment to get a beep at grub start
    # GRUB_INIT_TUNE="480 440 1"

  2. Replace the # GRUB_INIT_TUNE="480 440 1" line with the new GRUB_INIT_TUNE line at the top of this document (make sure to remove the "#" from the beginning of the line, as well). Save the file and exit your text editor. Open a terminal window and issue the following command: sudo update-grub

  3. Reboot. You should hear the init tune when the grub menu appears.

@Arzte
Copy link

Arzte commented Aug 31, 2015

Nice

@aquarat
Copy link

aquarat commented Oct 5, 2015

Awesome :) .

@elmat0
Copy link

elmat0 commented Dec 11, 2015

This is great!

@jschneider
Copy link

jschneider commented Feb 22, 2017

I love it ;-)

@tokamak-git
Copy link

tokamak-git commented Jul 13, 2017

Simply awesome.

@fatso83
Copy link

fatso83 commented Aug 27, 2017

is there any way to control the sound level? it goes off on max (super loud!) every time.

@smonff
Copy link

smonff commented May 20, 2020

Ideal when you have to discreetly boot your computer

@lucbettaieb
Copy link

lucbettaieb commented Oct 13, 2020

This is perfect.

@dusnm
Copy link

dusnm commented Feb 4, 2021

is there any way to control the sound level? it goes off on max (super loud!) every time.

Unfortunately no. Grub uses the PC speaker, and that's always set to maximum volume.

@MaxLaumeister
Copy link
Author

MaxLaumeister commented Feb 4, 2021

is there any way to control the sound level? it goes off on max (super loud!) every time.

Unfortunately no. Grub uses the PC speaker, and that's always set to maximum volume.

If you have a desktop computer, you can turn the volume down by physically popping open your system case, finding the PC speaker attached to the motherboard, and applying one or more layers of scotch tape to the speaker. More scotch tape = lower volume. You're welcome!

@lucbettaieb
Copy link

lucbettaieb commented Feb 5, 2021

is there any way to control the sound level? it goes off on max (super loud!) every time.

Unfortunately no. Grub uses the PC speaker, and that's always set to maximum volume.

If you have a desktop computer, you can turn the volume down by physically popping open your system case, finding the PC speaker attached to the motherboard, and applying one or more layers of scotch tape to the speaker. More scotch tape = lower volume. You're welcome!

I guess you could also put a potentiometer in series with the speaker...?

@smokey5787
Copy link

smokey5787 commented Jan 16, 2022

This is cool

@spitemim
Copy link

spitemim commented Jul 31, 2022

the link you posted now goes to a chinese porn site. consider replacing with https://web.archive.org/web/20150115050225/http://www.iavit.org/~john/debian/grub.html ;)

@MaxLaumeister
Copy link
Author

MaxLaumeister commented Jul 31, 2022

the link you posted now goes to a chinese porn site. consider replacing with https://web.archive.org/web/20150115050225/http://www.iavit.org/~john/debian/grub.html ;)

Very much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment