Skip to content

Instantly share code, notes, and snippets.

@okakaino
Created June 5, 2022 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save okakaino/33f06a29baf753dd284d50d3c8814ed5 to your computer and use it in GitHub Desktop.
Save okakaino/33f06a29baf753dd284d50d3c8814ed5 to your computer and use it in GitHub Desktop.
cd /
umount /sys/firmware/efi/efivars/
mount -t efivarfs rw /sys/firmware/efi/efivars/
cd /sys/firmware/efi/efivars/
rm gpu-power-prefs-…
sudo su
printf "\x07\x00\x00\x00\x01\x00\x00\x00" > gpu-power-prefs-fa4ce28d-b62f-4c99-9cc3-6815686e30f9
chattr +i "gpu-power-prefs-fa4ce28d-b62f-4c99-9cc3-6815686e30f9"
cd /
umount /sys/firmware/efi/efivars/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment