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

Mar 25, 2020 4:35 AM in response to servo186

I have the same problem (MacBook Pro 13 2017 256gb).

I had it with High Sierra, then Mojave, no solution found.


After updating to Catalina, it was fine.

I had to reset SMC and NVRAM as the Mac does not detect an usb mouse. Problem not solved, but after that I have again my trackpad and keyboard freezing after a long sleep.


I had to replace the whole keyboard one month ago, I have problem with usb and now again this problem.


That’s not the quality I was expecting.

Apr 20, 2020 2:01 PM in response to servo186

have same issue on my mbp mid 2012 with catalina, this happens just when awake... somethimes need a minute to keyboard and touchpad works again, sometimes never work... need to turn off and turn on again... i'm using safe sleep because (another issue i had) is if put to sleep and it is ac connected, at any random moment at night it wake up and never sleep again due the energy config i had that when in ac, never sleeps.... really a big annoying problem that never had with my old window notebook....

May 21, 2020 8:47 AM in response to mallow_pl

Oh, in the feedback area. I was referring to this discussion. Hmm. I have no idea how that info would be accurate. They'd have to parse everyone's comments on the feedback form to match them all up because there's no option for "trackpad delay after sleeping" option on the drop-down. And I'm sure they aren't doing that. Not sure why they even post that. I've submitted it twice now, as I'm sure many others have, but I bet they'd never tell us how many reports there are. I did call in to Apple on my new MacBook for another issue, and brought it up with them. The agent was aware of it but couldn't provide anything further. That acknowledgement is good, in that it at least means Apple knows about it internally to the point of confirming the issue. It not being fixed in the recent beta updates is very disappointing, though.

Jul 13, 2020 9:16 PM in response to ngowerjo

ngowerjo and Papa & Mama Bear


Thank you greatly, both for pointing me in the direction and helping me solve this (at least solved for me). I have replaced the router and I can confirm that the 5-10 second delay for trackpad and keyboard has disappeared on both my laptops with new router.


I was using a Xiaomi Pro and a TP-link WDR6500 (Chinese version).


I have switched to an ASUS RT-AC86U - Merlin firmware with VPN applet installed. I did not fully test the setup, before switching firmwares, but in the small time I had before the firmware change, I noted there was a slight half a second delay, but that the Macbook Pro no longer had the unacceptable freeze situation.


It works out for me, as the new router seems to achieve five times the download speeds of the previous router, I now have far more control over my home network, and it was not too expensive (735 RMB).


However, this should never have been an issue and this glitch in Apple OS should have been more easily diagnosed (I spent literally days trying to solve this) and fixed within the software so that we the consumers need not fork out extra cashola for a router change!


Bad Apple? Yes.


I wish those of you out there with a similar trackpad freeze situation success before it drives you too crazy.


Stay safe and well - and Thanks


Aug 20, 2020 7:37 AM in response to johannes14

the problem was less often until new complementary update, need to force poweroff for a complete restart and kb and tp work....i'm fed up of this problem, fed up for stu#id answers like "reset smc/pvram" those are useless, mac os even obbey their own settings, mbp still awake randomly ac connected and not, pmset settings are useless too....time to go back windows? even linux sounds around. sorry my english and my frustation....

Sep 19, 2020 12:39 PM in response to servo186

The issue definitely appears to be related to the wifi as others have mentioned in this thread. I have isolated it to the wifi network for my 5G. The workaround for me is to connect on the 2G wifi network and I don't seem to experience the issue. However, if i switch to the 5g wifi network then i'll start to experience the problem when my laptop goes to sleep. In an earlier thread someone indicated it might be related to the network names being identical or similar for the different wifi bands.

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.