Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suspend / resume #14

Closed
folke opened this issue Jun 10, 2020 · 3 comments
Closed

Suspend / resume #14

folke opened this issue Jun 10, 2020 · 3 comments

Comments

@folke
Copy link

folke commented Jun 10, 2020

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:

  • screen works and so do the running programs
  • touchbar and keyboard backlight light up for a couple of seconds, then goes dark
  • keyboard and touchpad don't work

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
Copy link

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
Copy link
Author

folke commented Jul 6, 2021

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
Copy link
Owner

mikeeq commented Aug 26, 2021

It's not a kernel issue.

@mikeeq mikeeq closed this as completed Aug 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants