Play STAR TREK (original), STAR WARS (The Force), and GAME OF THRONES 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 STAR TREK (original), STAR WARS (The Force), and GAME OF THRONES tune as GRUB_INIT_TUNE

#1 Post by M0rn1n6St4r »


Please use the quoted instructions (below) to amend "/etc/default/grub" with any (or all) of the following:
NOTE: All instructions are the same, except for step 5; replace (or append) the PAC-MAN Tune. 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)

Code: Select all

# Star Trek Tune...
GRUB_INIT_TUNE="2500 349 8 622 12 587 4 523 3 466 2 440 3 415 24 0 4 370 4 349 8 698 12 622 4 587 3 523 2 466 3 440 24 0 4 415 4 392 12 440 4 466 4 523 4 587 3 622 2 587 3 698 11 587 2 698 3 831 12 784 4 698 8 392 16 523 8 466 24"

Code: Select all

# Star Wars Force Tune...
GRUB_INIT_TUNE="1000 294 4 392 8 440 6 466 1 523 1 466 8 294 6 294 2 392 6 440 2 466 2 294 2 466 1 392 2 587 1 523 12"

Code: Select all

# Game of Thrones Tune...
GRUB_INIT_TUNE="1200 392 9 262 9 311 2 349 1 392 6 262 6 311 2 349 1 294 18 0 9 349 9 233 9 311 2 294 1 349 6 233 9 311 2 294 1 262 17"

M0rn1n6St4r wrote: Sun Aug 28, 2022 12:55 am 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.
Last edited by M0rn1n6St4r on Mon Aug 29, 2022 10:45 pm, edited 1 time in total.
Image

User avatar
Adrian
Developer
Posts: 9217
Joined: Wed Jul 12, 2006 1:42 am

Re: Play STAR TREK (original), STAR WARS (The Force), and GAME OF THRONES tune as GRUB_INIT_TUNE

#2 Post by Adrian »

I was 100% sure this was a spam post.

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

Re: Play STAR TREK (original), STAR WARS (The Force), and GAME OF THRONES tune as GRUB_INIT_TUNE

#3 Post by M0rn1n6St4r »

Adrian wrote: Mon Aug 29, 2022 10:37 pm I was 100% sure this was a spam post.
And now? :-)

Not sure if you are referring to the link or the tunes. Just know... I included the link to the tool reluctantly.

I reviewed the page source for the tool --- nothing appears to get submitted to a server. The functionality is (entirely) in a JavaScript file:

Code: Select all

<script src="./js/main.min.js"></script>
I'd like to tip the creator, Felipe Peñailillo Castañeda, but I refuse to use PayPal for anything.

PayPal screwed me, to the tune of $600+, back in 2006. I noticed a fraudulent charge for ~$24, reported the fraud, and cancelled my card. Then I had them wire transfer the remaining balance (~$1,000) to my checking account. They continued to allow charges to accrue, along with overdraft penalties and interest, for another 6 months. I only found out when they notified me that they actually (finally) cancelled my account --- with a debt collection notice. smh
Image

Post Reply

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