Skip to main content

IT - Linux: enable/disable Apple initial chime

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

Popular posts from this blog

TV Series - The Brokenwood Mysteries [NZ] (2014) - Season 10

 

Movie - Sin City: A Dame to Kill For (2014)

 

Movies - Deadpool & Wolverine (2024)