Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Turn off Macbook startup sound - Linux
printf "\x07\x00\x00\x00\x00" > /sys/firmware/efi/efivars/SystemAudioVolume-7c436110-ab2a-4bbb-a880-fe41995c9f82
Copy link

Bios-Marcel commented Jan 9, 2019

Hey, this doesn't work, since not even root has the permission to change these :/

Could you lend your help here?

Copy link

jradmacher commented Mar 31, 2019

If someone else finds this Gist: You need to remove the immutable flag before writing.
chattr -i /sys/firmware/efi/efivars/SystemAudioVolume-7c436110-ab2a-4bbb-a880-fe41995c9f82

Copy link

OdinElfson commented Jun 8, 2020

I've been looking all over the web, all day, for a solution to this--> jradmacher you're a genius. Thank you thank you!

Copy link

ngeorger commented Sep 14, 2021

Genius, thank you!

Copy link

sharpsounds commented Jun 15, 2022

try just doing su before doing printf
its a pretty sensitive directory so it could be that your distro is being a bit extra cautious?

Copy link

daudix-UFO commented Sep 10, 2022

If anyone needs :)


# Mute MacBook Chime

## Make "chime" value mutable

sudo chattr -i /sys/firmware/efi/efivars/SystemAudioVolume-7c436110-ab2a-4bbb-a880-fe41995c9f82

## Change "chime" value to "muted"

sudo printf "\x07\x00\x00\x00\x00" > /sys/firmware/efi/efivars/SystemAudioVolume-7c436110-ab2a-4bbb-a880-fe41995c9f82

## Make "chime" value immutable again

sudo chattr +i /sys/firmware/efi/efivars/SystemAudioVolume-7c436110-ab2a-4bbb-a880-fe41995c9f82

printf "\n🎉️🔇️ Now you don't have startup chime anymore!"

Copy link

daudix-UFO commented Sep 10, 2022

Also, anyone knows is there a way to enable it back? (just want to know)

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