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

Oct 17, 2020 6:22 PM in response to CommunityChris

In case of any short attention spans out there, I'll lead with my most important point. I hate to say it, but I think the only thing we can do is keep opening and updating cases with Apple to keep the pressure on. This discussion will not get their engineers' attention no matter how large and active it gets. EVERYONE with the problem: please use the feedback link posted earlier, and open support cases to log the issue. Now... to my update.


The recent upgrade (10.15.7) didn't fully take care of it for my MacBook Pro (16" 2019). The first weekend I monitored it, I was encouraged, but I've had it occur twice today when opening it from being in clamshell. The delay only lasts about 5-7 seconds, so not as annoying as some have reported it. Maybe it varies based on model performance. (I experienced a much worse delay on the Air I no longer have.) I've been testing the "VPN theory" - for lack of a better term - and have determined that, at least on my laptop, it's not related. I've left the VPN up and not had the problem, and I've experienced the problem (twice today) when the VPN was not connected. This has all been on my home WiFi, so that aspect hasn't been a variable. With everything I've experienced, and from what I've read here, I think the ultimate source of the problem is far more complicated than one thing or Apple would've had it fixed by now. A firmware updated was postulated earlier in this thread, but I've not seen one yet for my laptop. We'll see what happens when Big Sur comes out. I probably won't install it immediately. I'm a little gun shy now!

Nov 12, 2020 2:19 PM in response to Wjunkins13

Interesting you say that. I recently have had same problem of keyboard & trackpad not responding when awaking from sleep. MBP15"2019 macOS 10.14.4. No VPN. Just started recently. Shortly after installing supplemental update to 10.14.4. I looked at my wifi list, and it was totally backward. My primary network was LAST. I didn't do that. If the mac was spending time trying to find the other 15 or so networks listed before it finally got to my primary network, that would potentially explain the delay. I changed it back so my primary network is first again. We'll see if that resolves the issue. Thanks, good idea to look at that.

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.