Enable
/cygdrive/h/My Drive/IT/Blogger/Enable-Disable-Apple-Chime
enable.sh
#!/usr/bin/bash
# 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\x80\x7f" > /sys/firmware/efi/efivars/SystemAudioVolume-7c436110-ab2a-4bbb-a880-fe41995c9f82
OR
sudo printf "\x07\x00\x00\x00\x0b" > /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!"
Disable
/cygdrive/h/My Drive/IT/Blogger/Enable-Disable-Apple-Chime
disable.sh
#!/usr/bin/bash
# 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!"
Comments
Post a Comment