Skip to content

Instantly share code, notes, and snippets.

@0xbb 0xbb/macbook-mute.sh
Last active May 29, 2019

Embed
What would you like to do?
Turn off Macbook startup sound - Linux
#!/bin/bash
printf "\x07\x00\x00\x00\x00" > /sys/firmware/efi/efivars/SystemAudioVolume-7c436110-ab2a-4bbb-a880-fe41995c9f82
@Bios-Marcel

This comment has been minimized.

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?

@jradmacher

This comment has been minimized.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.