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

May 26, 2020 8:11 AM in response to s327374

Agree. The h/w builds are exceptional. For my family members, I usually have to get new ones only because they get so old that you can't get OS updates for them anymore and new apps won't run on the old OS. But that's typically 7-8 years, and they're still going strong. All the more reason this ongoing issue in new laptops is maddening. If it's still in the official .5 release I'm going to open a new case and just to stay on top of it. The squeaky wheel! Anyone who is under warranty or has AppleCare might want to do the same.

May 26, 2020 8:45 AM in response to johannes14

Yes, it happens with and without a VPN. I have (so far) noticed that I don't have the problem when keeping my Mac in clamshell mode with bluetooth keyboard, mouse and external monitors attached. So far, whether I use Wifi or my Thunderbolt Display's ethernet, I have no delay waking from sleep. Only when I'm opening the clamshell and trying to use the built-in keyboard and Trackpad.

May 29, 2020 7:42 AM in response to PapaandMamaBear

ok - this is not happening now that I am back at work. However, it is happening often when I am at home. What setting on my modem and wifi is it?


This is definitely happening to me only at home. And only recently in the last 4 weeks.


I have two networks at home - both China unicom. One is a xiaomi and the other is a TP-Link thing... Happy to get rid of one of them if it means that this disappears.


Are other people using a specific brand of router? are they Chinese ones?

Jun 8, 2020 6:55 AM in response to kkchamath17

MacBook retina 13” 2015. The same problem. Still no solution. After sleep mode keyboard and touchpad dead. Only power key is Ok. Service suggested new touchpad along with the tape. Not sure about that. Someone suggested pressing power key on and closing the lid for a while when the system was rebooting - and it worked but just couple times but finally even it won’t help. Has Apple officially addressed the isue or they just don’t care!?!?!

Jun 30, 2020 6:22 PM in response to servo186

I have this issue as well.


Sometimes it takes longer, sometimes displays a window stating that "no Bluetooth keyboards were found" (something along these lines).


Touchbar works, touchpad feedback works, but keyboard doesn't (nor touchpad clicks).

Macbook Pro 2019 13", macOS Catalina 10.15.5.


Common software with others are Zoom, Microsoft suite (incl. Teams) and VMware Fusion.


I think it makes sense that it's Wi-Fi related because the issue became pronounced when I had connectivity issues (my router wasn't setup). Note, though: I have a TP-Link router.


Hopefully a fix is coming soon. Just sharing my info in case it helps with anyone.

Jun 30, 2020 8:31 PM in response to PapaandMamaBear

I just spent time talking to support. Had it fixed temporarily... now back to square 1. Apple support guy asked me to change location in Network settings from 'Automatic' to creating a new location/place. Yep... worked once, while he was on the line. Now back to the delays after sleep again now then ... so ... yeah... sad this is a thing. I don't feel changing my provider is an option, nor routing through a hotspot. ****

Jul 3, 2020 1:10 PM in response to brenden dv

Macbook Pro, 10.15.5 Catalina.


After Sleep my keyboard stays dark, and won't react. Same with Trackpad. Sometimes it catches up, but lately I have a window popping up saying "lost Bluetooth connection to keyboard" and the built in keyboard and trackpad stay nonresponsive.


I noticed the issue the first time last week, when my bluetooth keyboard won't react instantly after sleep. But when turning it on or off it will reconnect and all is normal again. I haven't paid attention to the built in keyboard then, if it lit up or not...


Now that my bluetooth keyboard is at work, this issue is sticky. And it happens multiple times a day.


It is a heavy issue as I cannot reboot my Work until hardreset. The macbook is brand new. This is very upsetting.


The only thing I changed lately was installing Affinity Design Studio (running in background) and have VLC player open. Maybe some compability issues? I haven't noticed this issue before those installs.... Might be worth investigating.



Jul 12, 2020 1:29 AM in response to s327374

I realise my words probably sounded harsh, and I did not mean them that way at all. I’m grateful for anyone trying to solve this. Merely trying to note that the problem also happens with a MacBook Air. It’s not exclusive to Pros.


Let me also clarify three things.


First, I also tried a change to IPv6 settings, and that didn’t help for me, in any noticeable way.


Second, I did have success, as described back a few posts, with preventing the problem by plugging in an external device when the problem occurred. But that only happened to me once.


Third, my new router isn’t actually — I’m using an always on hotspot from a cheap android phone as a router, and that works better than my sim enabled Dlink. Go figure. I’ve never, not once, had the issue using the hotspot.

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.