mikeeq / mbp-fedora-kernel

65 stars 12 forks source link

Suspend / resume #14

Closed folke closed 3 years ago

folke commented 4 years ago

One of the only things that doesn't work properly on my MacbookPro15,2 (kernel 5.6.15-300.mbp.fc32.x86_64) is sleep mode.

When I open the lid to resume, the following happens:

Luckily the power button (fingerprint scanner) still works to properly shutdown.

Is sleep mode something that should work our of the box?

I'm more than happy to help debug this issue.

AnnikaCodes commented 4 years ago

I'm having the same issue on my MacBookPro15,2 - @mikeeq, if there's anything I can do to help with this issue please let me know.

folke commented 3 years ago

I was finally able to fix this. Edit the file sudo vim /lib/systemd/system-sleep/rmmod_tb.sh.

And add in hid_apple

#!/bin/sh
if [ "${1}" == "pre" ]; then
        modprobe -r apple_ib_tb
    modprobe -r hid_apple
elif [ "${1}" == "post" ]; then
    modprobe hid_apple
        modprobe apple_ib_tb
fi

Works great now and pretty fast too.

mikeeq commented 3 years ago

It's not a kernel issue.