Play PAC-MAN tune as GRUB_INIT_TUNE

Here is where you can post tips and tricks to share with other users of MX. Do not ask for help in this Forum.
Message
Author
User avatar
M0rn1n6St4r
Posts: 24
Joined: Sat Dec 21, 2019 1:42 pm

Play PAC-MAN tune as GRUB_INIT_TUNE

#1 Post by M0rn1n6St4r »

Remember that all changes to /etc/default/grub must be committed (after saving) by running:

Code: Select all

sudo update-grub
Steps...
1. Open a terminal and run:

Code: Select all

sudo nano /etc/default/grub
2. Enter your sudo password and press <Enter>.

3. Locate the following line(s):

Code: Select all

# Uncomment to get a beep at grub start
GRUB_INIT_TUNE
or

Code: Select all

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE
4. If you find "GRUB_INIT_TUNE", comment it out with "#". If you find "#GRUB_INIT_TUNE" (or nothing), go to step 5.

5. Add the following single lines below "#GRUB_INIT_TUNE" (or below "# Uncomment to get a beep at grub start"):

Code: Select all

# PAC-MAN Tune...
GRUB_INIT_TUNE="2000 494 3 0 2 988 3 740 3 0 2 588 3 988 3 740 3 0 2 588 3 0 2 123 3 523 3 0 2 1047 3 784 3 0 2 659 3 1047 3 784 3 0 2 659 3 0 2 131 3 494 3 0 2 988 3 740 3 0 2 588 3 988 3 740 3 0 2 588 3 0 2 123 2 588 2 659 2 698 2 698 2 740 2 784 2 784 2 831 2 880 2 988 2"
NOTE: The first integer, "2000", is the tempo. Increasing that integer will increase the tempo; i.e. plays faster. Decreasing that integer will decrease the tempo; i.e. plays slower.

6. Press <Ctrl+o>, then <Enter> to save (/etc/default/grub). Press <Ctrl+x> to exit nano.

7. Commit the changes to grub.cfg by running:

Code: Select all

sudo update-grub
NOTE: "/etc/default/grub" and "grub.cfg" are not the same file; i.e. "grub.cfg" is located in subfolder(s) of "/boot" and should not be edited directly.

8. (if required) Enter your sudo password and press <Enter>.

9. Wait for the update-grub to complete.

10. Exit terminal.

To test, you will need to restart your PC.

BONUS:

Code: Select all

# Close Encounters Tune...
GRUB_INIT_TUNE="720 900 2 1000 2 800 2 400 2 600 3"
NOTE: Remember to comment out all but one "GRUB_INIT_TUNE" lines. I do not know the behavior including multiple active lines.
Image

User avatar
M0rn1n6St4r
Posts: 24
Joined: Sat Dec 21, 2019 1:42 pm

Re: Play PAC-MAN tune as GRUB_INIT_TUNE

#2 Post by M0rn1n6St4r »

To test just the tune, I found an excellent online tool:
GRUB_INIT_TUNE tester v0.7.2 (html.head.title == "Grub tune tester v0.7.2"; why be consistent? smh)

Also, I just posted the following:
Play STAR TREK (original), STAR WARS (The Force), and GAME OF THRONES tune as GRUB_INIT_TUNE
Image

Post Reply

Return to “Tips & Tricks by users (not for help)”