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

Jul 12, 2020 1:48 AM in response to PapaandMamaBear

Hi. Actually you are right here. Just had the problem on my MacBook Air too! Slightly different insofar as the air doesn’t actually go as far as showing time the message that there is no physical keyboard connected, but a significant freeze nonetheless. Whether this is a router problem or a hardware / os problem, the fact remains that it didn’t happen on an older MacBook running Sierra. Think this needs a fix from apple.

Jul 14, 2020 2:17 AM in response to s327374

Glad your issue is sorted. I wonder if my issue is different but related. Rather than having _just_ a frozen keyboard and trackpad which resolves after 15 seconds, I actually get Mac OS error messages coming up saying no keyboard is connected. I have to do a force reboot to be able to continue using my laptop. My router is also supplied by Virgin so I’m not about to start replacing it. No other computer in the house has this issue (at least none of the ones running Catalina!) so this is definitely a computer issue not a router one.

Jul 28, 2020 1:11 PM in response to servo186

I have been having the same issue. Usually it takes 5-10 seconds to recognize the keyboard and trackpad, but sometimes more. Just now it took so long that a notification window even came up saying that I didn't have a keyboard connected! I don't buy the "reinstall MacOS" resolution whatsoever, because my MacBook Pro is literally brand new. It's a 2020 13" with 10th gen Intel, and I've had it for less than a week. So, if it's an OS issue, it came with the issue from the factory.


This is a legitimate issue that needs resolved. Maybe it's only a minor inconvenience, but I shouldn't have to sit and wait for my keyboard and trackpad to be recognized by my expensive brand new laptop.

Aug 20, 2020 9:04 AM in response to bediddleby

i know you what to mean, but also is embarrasing that in any place that need do something in my mbp, i took and open lid and wait if the kb and tp will work... the people around me looking and thinking..."what is he waiting for?" and i put a pocker face, counting seconds and hiting caps lock key until i see led turn on.... this is is software poblem , than nobody at apple wants to fix... those developers are using mac and dont have the problem? maybe they use windows :p

Aug 27, 2020 10:08 PM in response to servo186

I have the same issue, even after many system updates from Apple. None of the updates fix it. Reinstall the system from ground up may make many problems disappear, but I've done it once to fix a bug of Catalina. I wouldn't like to reinstall again. With so many settings and app already tuned for my best, It's too troublesome to do it all over again. Maybe that's the reason Mac OS is being more and more sloppy, migrating to another computer platform is also very troublesome...

I bet I can endure it a little longer...

Sep 6, 2020 5:40 AM in response to pratik71


pratik71

THANK YOU for taking out time to reply , Means a LOT .... Now i do not have two DIFFERENT WIFI networks with SAME Names and SAME PASSWORD...

which i Have is Two DUAL BAND Networks (ONE 2.4 GHZ and Other 5 GHZ ) FROM THE SAME ROUTER but they are of DIFFERENT NAMES AND DIFFERENT PASSWORDS ......

I will try disabling one Network and figure out if that helps ....


THANK YOU ONCE AGAIN ...

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.