Skip to content

Instantly share code, notes, and snippets.

@smutek
Last active December 8, 2025 20:12
Show Gist options
  • Select an option

  • Save smutek/ac652fe6c463b4b03a0c3e86dc4855b0 to your computer and use it in GitHub Desktop.

Select an option

Save smutek/ac652fe6c463b4b03a0c3e86dc4855b0 to your computer and use it in GitHub Desktop.
Fix 15" 2015 Macbook Pro Slow Wake On Fedora 43

Info

After installing Fedora 43 on my 2015 15" Macbook Pro I noticed it was taking 15-20 seconds for the system to wake up when I would try to resume after closing and reopening the laptops lid.

I found this solution on the Linux Mint Forums, tried it on my Macbook running Fedora 43 and it worked like a charm. Wake up time went from 15-20 seconds down to about 5 seconds. All credit goes to the original poster in the linked thread.

Steps

  • Create a new file as follows: sudo vim /usr/lib/systemd/system-sleep/fix-macbook-wakeup
  • Paste the following into the new file, then save and close:
#!/bin/bash
case $1 in
pre)
echo 0 | sudo tee /sys/devices/system/cpu/cpu*/online
;;
post)
echo 1 | sudo tee /sys/devices/system/cpu/cpu*/online
;;
esac
  • Make the file executable: sudo chmod +x /usr/lib/systemd/system-sleep/fix-macbook-wakeup
  • Regenerate the config: sudo systemctl daemon-reload

That did it for me on Fedora 43. Hope it helps someone!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment