Skip to content

Instantly share code, notes, and snippets.

@0xbb
Last active April 6, 2024 08:26
Show Gist options
  • Star 22 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save 0xbb/ae298e2798e1c06d0753 to your computer and use it in GitHub Desktop.
Save 0xbb/ae298e2798e1c06d0753 to your computer and use it in GitHub Desktop.
Turn off Macbook startup sound - Linux
#!/bin/bash
printf "\x07\x00\x00\x00\x00" > /sys/firmware/efi/efivars/SystemAudioVolume-7c436110-ab2a-4bbb-a880-fe41995c9f82
@leifliddy
Copy link

I have a MacBook9,1 and a MacBookPro14,1 -- and on both of these models I needed to set the hex value to 80
Setting it to 00 did not work. I'm surprised no one has posted anything on this topic before.....

 printf "\x07\x00\x00\x00\x80" > SystemAudioVolume-7c436110-ab2a-4bbb-a880-fe41995c9f82
 # probably wasn't needed, but changed the value of SystemAudioVolumeDB to match SystemAudioVolume
 printf "\x07\x00\x00\x00\x80" > SystemAudioVolumeDB-7c436110-ab2a-4bbb-a880-fe41995c9f82

@ammar-faifi
Copy link

ammar-faifi commented Jan 30, 2024

it only worked when i use yours @leifliddy 🫡,thanks

on MacBookPro13,1
i didn't need to overwrite the SystemAudioVolumeDB-* one

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