Keyboard and touchpad lost after sleep

Occasionally, not always, after the Catalina upgrade, whenever my macbook sleeps, I lose the keyboard and the touchpad.

I must use my fingerprint to log in and once I do, I have no touchpad nor keyboard. I need to reboot everytime this happens.

Posted on Oct 10, 2019 2:08 PM

Reply
Question marked as Top-ranking reply

Posted on May 26, 2020 8:56 PM

Ok, I can confirm that 10.15.5 released today does not fix this issue.

For all the troubled souls like myself in this forum and beyond, here is a temporary workaround I figured out yesterday to get this gremlin out of your sight, until Apple officially fixes this.

Since the bug only occurs when Wi-Fi is on, we can create a process that automatically turns off Wi-Fi upon sleeping and turns it back on from waking up.


  • Install Homebrew

Copy this line to Terminal and hit Enter.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"


  • Enter
brew install sleepwatcher

to install Sleepwatcher.


  • Enter the following code to create two files . sleep and .wakeup in the home directory ~/
touch ~/.sleep && chmod 700 ~/.sleep
touch ~/.wakeup && chmod 700 ~/.wakeup


  • Go to ~/ and edit .sleep and .wakeup with a code editor of your choice, I used Xcode. These would dictate how Sleepwatcher would perform.

For .sleep

#!/bin/bash
networksetup setairportpower en0 off


For .wakeup

#!/bin/bash
networksetup setairportpower en0 on


  • Finally, enter the following code in Terminal that would configure launchd to run Sleepwatcher at startup or login
cp /usr/local/Cellar/sleepwatcher/2.2.1/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/de.bernhard-baehr.sleepwatcher-20compatibility-localuser.plist



Now everything is set, go on and close the lid, wait awhile and reopen it, notice the Wi-Fi icon is off and quickly turns back on.


Although this is not the most elegant solution, it eases me from the paranoia that makes my blood frozen every time I suspect to see a yet again frozen computer. A moment of idea and inspiration just can't wait an extra 15 seconds.


I'm not an expert in these, if anyone would spot a mistake or suggest a better solution please post here, thank you.


I learned from these sources:

https://www.kodiakskorner.com/log/258

https://gist.github.com/ziadoz/7bddcf346adb89da1e990126c9f82429

https://github.com/wujunchuan/wujunchuan.github.io/issues/9


Similar questions

282 replies

Sep 4, 2020 10:42 AM in response to Yongsing

I can confirm that this is related to WiFi configuration.

I recently, 2 months back got my top case replaced because of a dead battery out of the box. After that I started experiencing this issue. Randomly it occurs where the keyboard and trackpad is not recognised.

I thought it was a faulty replacement from the service centre but then going through the comments here, it turns out to be very common issue. So I can affirm that its not an hardware issue at all.


I did a test where I just downgraded to Mojave and the issue still persisted. This also justifies some users having the same issue for different versions of MacOS as seen in previous posts. So I'm pretty sure this is a legacy bug which apple never responded to.


As to how I affirmed its a bug related to wifi, I too have shifted to my native due to current pandemic and I am using a dedicated SIM activated hotspot which acts like a router. It stays active all the time and my mpb is connected to it always. I suffered keyboard/trackpad freeze only with this network and never ever I had this issue with my original home router.

So apple has screwed up big time.


I will try to pin point the exact issue by comparing the configurations of these two networks. Hope a specific config can resolve our issue.


Buy a $2000+ laptop and debug problems yourself. Look how the turntables.

Feb 17, 2020 9:59 AM in response to servo186

Same issue here. I'm commenting so that, maybe someday, Apple will notice and put someone to work on this...


MBPro 2019 and latest Catalina. I also run VMWare Fusion but I don't know if every time it's happened VMWare was running. My touchbar still works after waking from sleep, but the keyboard doesn't work (and keeps non-illuminated) and the touchpad doesn't work either. The taptic feedback does, though (??)


Tried resetting PRAM to no avail.


Only solution for now is to hard power off and on again. Just terrible.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Keyboard and touchpad lost after sleep

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.