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
Question marked as Top-ranking reply

May 26, 2020 8:56 PM in response to servo186

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


Dec 18, 2020 6:56 AM in response to servo186

I had the same problem with my macs, always have to wait around twenty seconds to type my password, the keyboard is completely unresponsive. I have done all the usual things, SMC, PRAM, shut the wifi, fresh reinstall ... always the same thing.

I just found the culprit : Google Chrome ( not exactly , the problem is with the update system of chrome : KEYSTONE ).


I have completely remove all the chrome/google thing and now all my macs with different version of macOS are perfectly reactive after sleep and after hibernation.


here is the process taken from the site chrome is bad :



Go to your /Applications folder and drag Chrome to the Trash.

In the Finder click the Go menu (at the top of the screen), then click "Go to Folder...".

Type in /Library and hit enter.

    • Check the following folders: LaunchAgentsLaunchDaemonsApplication SupportCachesPreferences.
    • Delete all the Google folders, and anything else that starts with com.google... and com.google.keystone...

Go to "Go to Folder..." again.

Type in ~/Library and hit enter. (Note the "~")

    • Check the following folders: LaunchAgentsApplication SupportCachesPreferences.
    • Delete all the Google folders, and anything else that starts with com.google... and com.google.keystone...

Empty the Trash, and restart your computer.



[Link Edited by Moderator]


Feb 25, 2020 2:18 AM in response to Ergo17

I have discovered that when the problem appears, if you suspend the laptop via the touchbar (I have the "sleep" icon added to it), the computer sleeps... then wakes up immediately, the keyboard and touchpad work again, and macOS receives all the keypresses you may have tried when the keyboard wasn't working.


This has worked the last time it happened to me. I will see if it works consistently, in which case it would be a temporary workaround.


Apple, you should SERIOUSLY address this. Happens to me every other day.

Jul 3, 2020 11:21 AM in response to servo186

I had the same problem. The way I solved this problem was to unpair my external BT Magic Mouse 2. What the Mac was doing on wake was looking for a BT keypad and mouse. Even though I don't have a BT Keyboard connected or paired. I had tried everything suggested about resetting and restarting. However, this one thing worked and I feel somehow that the Mac is function better overall.

Nov 20, 2020 12:37 AM in response to servo186

I Have been having the same issue on Catalina. I am currently updating to the latest Catalina update,


The same thig has been happened to me. I opened the lid and the keyboard and trackpad weren't responding but I was able to login with touch ID. I waited a few minutes and no change...


then I realized I had some Bluetooth peripherals connected (An Old Mighty Mouse) and I disconnected it.

Right away! I was able to use the trackpad and keyboard.


Just thought this thread should know if anyone is having the same problem still.

Fair warning, I haven't read this thread thoroughly and am not sure if the same info has been shared.

Oct 15, 2019 8:35 AM in response to servo186

Hi servo186,


Thank you for contacting Apple Support Communities. Based on what you stated, it seems like the issue beings when you wake the MacBook from sleep. I would recommend you use this article to help troubleshoot the issue.


"If your Mac doesn't wake when you expect

Your Mac might pause a few seconds before it wakes up. If it doesn't seem to wake at all, check for these possibilities:

  • Your screen brightness might be turned down.
  • If you're using an external display, your display might be turned off. 
  • Your Mac might be in safe sleep. To wake from safe sleep, press the power button.
  • Check for a sleep indicator light, if applicable, and make sure that your Mac isn't turned off.


If the previous steps don't work

These additional steps may help identify or resolve the issue: 

  • Reset the SMC.
  • Reset NVRAM.
  • Disconnect external devices other than your Apple keyboard, mouse, and display. If that resolves the issue, gradually reconnect your devices, testing each time, until you find the device that is interfering with sleep. Then check the documentation that came with the device, or contact the device manufacturer.
  • Start up in Safe Mode to see if the issue is related to non-Apple startup items, login items, or kernel extensions. 
  • Try to isolate the issue by using another user account

If you still see the issue, contact Apple Support."


If your Mac doesn't sleep or wake when expected


Please don't hesitate to let us know if the steps resolved your issue or if you need additional assistance.


Cheers.

Jan 17, 2020 6:38 PM in response to servo186

I've been experiencing the same issue on my 2019 MBP 13" for a few months now. I've done repair install, fresh new install, PRAM and SMC reset. None of them resolved this annoying issue. The only workaround is closing the lid and let the laptop go back to sleep for a good minute, open the lid back up again to have working keyboard and trackpad.


I've been suspecting this intermittent behavior might have something to do with VMware Fusion. Then.. today, I've came across this post on VMware community. https://communities.vmware.com/thread/622447


Do any of you guys run VMware Fusion? I hope either Apple or VMware acknowledges this problem.

May 26, 2020 6:13 AM in response to RenatoRojas347

my mbp Touch Bar 2019 model is facing the same issue after updating to macOS catalina 10.15.4. I found that this issue appears only when wifi is on and when I turn wifi off it wakes up without any issue i.e., Touch Bar/keyboard works fine. I contacted apple support customer care but they didn't solved my issue and seem unaware about this frustrating issue their customers face. Totally, unacceptable from this reputed company and such an expensive product. Even I told them that catalina is causing this issue as many customers are facing this and mentioning on apple communities discussion forum. Apple doesn't simply bother. in my opinion its a software bug, hardware seems ok. Hope apple is reading this and fix this asap.

Jul 14, 2020 2:46 AM in response to ngowerjo

It seems to be a bit random in my case - sometimes the Mac OS error messages did come up, sometimes not. But even with the error message, as long as I plug in a USB-C stuff (in my case, I simply connected my Mac with a USB-C to USB connector to an external mouse), then the message will go away, and everything (keyboard, trackpad) start working right away. Btw I also have a Virgin router...

Sep 5, 2020 4:22 PM in response to amartya3546

Alright so, I made some changes to my laptop and from past two days I haven't had any issue of the keyboard/trackpad not responding problem and I believe it might fix your problems as well.


So, the problem I was facing was because I had two WiFi network with the same SSID (wifi name) and this was causing a problem. What does this mean?


Say my original router has properties 'A' and Wifi name 'MyWifi' with password as 'MyPass'. Now I have another router which has properties 'B' and wifi name 'MyWifi' and password as 'MyPass'.

As you can see I have two different routers but they have the same name and password. I did this deliberately so that I can have a seamless connection when I switch routers from one place to another and it reduced the burden of remembering two wifi names and passwords; and for me, here lied the problem.


For some reason, I believe that it's related to keychain saving wifi information or some other mechanism saving the wifi state and info when we put the laptop into sleep. When we wake it up, it has a hard time recognising which network it is because it finds two entries of the same name in the system and hence the freeze.

This also explains why the freeze are very random. For some people it just happens for a few seconds and while for some, you need to restart the computer. It also explains why some people are having this issue with old MacBooks from 2012 to the latest MacBooks also.


So what's the solution?

Nothing. Next time when you encounter this issue, just change the connected router name and password and reconnect it and hopefully it should be fine. Just make sure you change the name cause that's important.

I did some extra steps which might be helpful for some folks.

Go to Settings->Network.

Click on WiFi and delete the interface with the minus button on the bottom left

Click on the plus icon right next to it and the select interface as wifi and name wifi

Click Apply

Restart


Pls do let me know if it is helpful as I haven't encountered this issue once after renaming the network name.

The explanation and reasoning given above is just my hunch and it might or might not work for you.


This worked for MacBook Pro 15' mid 2018 i7 16GB 1TB 560x running Catalina 10.15.6

Oct 24, 2020 11:16 AM in response to servo186

I found a possible solution to it. I have a MacBook Pro 2020 13inch. I experienced this almost every time I raised the lid from sleep after at least 1 minute. I am using MacOS 10.15.6. I tried to reset the SMC and PRAM, and that didn’t work. Try this: go into system preferences>Network>Advanced. Under the Wi-Fi tab, in the preferred networks list, uncheck the Wi-Fi Networks you use most. Press OK and then APPLY. Then go to the wifi icon in the menu bar and select the network that you want to use (it should have been one of the ones you deselected). Click on it and enter the password. After you have reconnected to it, go back into Network Preferences and in the preferred networks list, drag that network to the top of the list, as well as the other networks you will use most often. After that, see if there are any networks with duplicate names or ones you know you won’t use anymore. Deselect the checkbox on them for “Auto-Join”. Click OK and APPLY. Restart your computer, and test it out to see if that fixed it. Hope that helps.

Nov 16, 2020 2:28 PM in response to johannes14

I did the in-place update to Big Sur from Software Update. I did not do a clean install. Still working with no freeze issues. I might point out that other things are snappier too that were related to Wi-Fi upon wake. Parallels and a couple other apps used to take a long time when starting to look up their online registration info prior to fully starting. Now all those apps just start right away. Also, even on the best Wi-Fi speed, my 2020 MBP 13" would take like 0.1s - 0.2s for the mouse to start responding. There was always some kind of lag when waking. But now with Big Sur, the mouse is immediately responsive upon wake. So I think there were several Wi-Fi-from-sleep issues causing lagging keyboard/trackpad, and it seems Big Sur has fixed them all for me.

Jan 18, 2020 1:16 AM in response to R3BOOOT

Well I have narrow it down to the wireless card/connection. I do use VMWare Fusion but I did had the issue with the VMWare turned off (application not running at all). It appears to me that if I am connected to one of my wireless AP (I have several) and put the MacBook to sleep, if I am not in a place where it can pick up that AP signal when it wakes up, it will freeze the keyboard/touchpad. The issue occurs less these days (like once every two weeks or something) but it still occurs. Another example is having the machine connected at home, put it to sleep, go to work or other place and after wake up, keyboard/touchpad frozen.


However, it appears to happen a lot more if I put the machine to sleep with a VM running.


Sometimes I can just press ESC several times and get the keyboard/touchpad to work. Other times I need to close the lid or ask Siri to put the machine to sleep for 2 minutes or something to fix it.

Jan 18, 2020 2:00 AM in response to Azkrath

I don’t use VMWare. I have also narrowed the problem to WIFI. The same as Azkrath wrote. To check if this is your problem too, put your laptop to sleep for at least 1 minute with WIFI turned on and off and compare results.


I have submitted this bug to Apple few weeks ago through feedback assistant. Without any answer so far. I would suggest that you submit it as well. Maybe they will fix it if the would have more reports.

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.