Skip to content

Instantly share code, notes, and snippets.

@zearp
Forked from 0xbb/macbook-mute.sh
Created February 24, 2023 09:03
Show Gist options
  • Save zearp/d61a7e1ee47fc2c0f2f979affbcd0988 to your computer and use it in GitHub Desktop.
Save zearp/d61a7e1ee47fc2c0f2f979affbcd0988 to your computer and use it in GitHub Desktop.
Turn off Macbook startup sound - Linux
#!/bin/bash
#
chattr -i /sys/firmware/efi/efivars/SystemAudioVolume-7c436110-ab2a-4bbb-a880-fe41995c9f82
printf "\x07\x00\x00\x00\x00" > /sys/firmware/efi/efivars/SystemAudioVolume-7c436110-ab2a-4bbb-a880-fe41995c9f82
chattr +i /sys/firmware/efi/efivars/SystemAudioVolume-7c436110-ab2a-4bbb-a880-fe41995c9f82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment