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.
- 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!