Macbook Pro Keyboard and Trackpad not working after battery change

batterykeyboardmacbook protrackpad

I've changed my battery after this question:
Does battery condition have anything to do with macbook pro performance?

The performance has significantly increased, however I have a new problem.

My Macbook's Keyboard and Trackpad are not working at all.

Only the power button works. I've connected an external mouse and Apple keyboard via USB slots. They work just fine, the problem is it's not a laptop anymore.

This happened after I changed the battery and replaced it with an iFixIt battery while going over their tutorial. I did use Listerine instead of adhesive removal, because apparently shipping them is illegal in my country. Some comments said that's a good alternative, I'm not sure if this caused the issue or not.

After the keyboard and trackpad became unresponsive, I've read that the Touchpad Trackpad Ribbon Flex Cable is very sensitive and it easily gets damaged. I've ordered a new one and installed it, didn't help.

Right now I'm looking for more solutions on how to fix my device.

Mid 2015 MBP Retina

Best Answer

If before replacing battery, your Mac's keyboard & trackpad were working fine, then generally after replacing old battery, Mac MUST work fine, provided you've placed+inserted new battery correctly+completely, and you've made sure (old) keyboard & trackpad connectors are properly connected.

KB = Keyboard . TP = Trackpad (aka: Touchpad).
Mac = Macintosh = MacBook Pro/Air/etc.

Replacing hardware parts (especially the TP), again, seems to be the remaining last option for your case.

Just do this extra step: Once you attach the ribbon flex cable connector (of KB, TP or battery, etc) onto Mac board's socket, then fully INSERT & slide it in completely into the socket, then use the lock mechanism in the socket, and put a tape on it, (tape piece should cover the socket and bit more area around it, and some portion of the flex-cable as well.)

The reason I'm suggesting that, as I'm suspecting, this connection is not stable in your case, and some pins are disconnecting when you're re-assembling back, as your comment indicates that you later also obtained new keyboard & trackpad, (so problem is not inside the keyboard or trackpad itself).

Low-Quality and/or older-generation Lithium battery packs in Mac can degrade very quickly when HEAT or high-temperature is applied or around the Mac.
When battery swell-up it pushes/expands upward, few components that suffer from this, one of them is Trackpad (aka: Touchpad), etc.
Trackpad's touch sensor may have developed cracks or some circuit has disconnected partially, so replacing atleast Trackpad may be necessary.
Heat expands different type of materials at different rate, so electrical disconnect, etc can occur from this.

Your sentence is not clear enough what exactly you've ordered-for, is it just the "ribbon flex" cable-conector, Or new keaboard & trackpad ? i would guess that you've ordered new keyboard & new trackpad (which includes new ribbon-flex connector).
New ones should work, & you may need to reset SMC and reset NVRAM/PRAM, see below details.
If new ones (new battery, new keayboard, new trackpad) are correct item for your exact Mac model# and still not working, then my remaining deduction would be, that, your Mac board itself has disconnected/faulty circuits near the area where battery pack is.


KB = Keyboard . TP = Trackpad (aka: Touchpad).
Mac = Macintosh = MacBook Pro/Air/etc.

You may be already aware-of and already applied the solutions mentioned in this answer, but I'm including it anyway, so that other users with a similar problem can understand what options are there, and how to do it systematically.

When the keyboard and trackpad stops working, are unresponsive or partially not-working, then in problem(s) like this, Mac owners have to use USB based mouse and keyboard.

After attaching external, wired/hardware based USB Mouse, Mac owner MUST do these:

  1. Click the Apple () icon in top menu bar → select System Preferences from your menu bar.
  2. Open Accessibility → select the "Pointer Control" in left-side column → select "Mouse and Trackpad" Tab → find this option line "Ignore built-in trackpad when mouse or wireless trackpad are present" and select it.
  3. inside Accessibility, select the "Keyboard" in left-side column → select "Accessibility Keyboard" Tab → find this option line "Enable Accessibility Keyboard" and select it. Then it lets you type and interact with macOS without using a hardware keyboard.
  4. if you have a hardware based Keyboard with USB connector, then skip this number 4 step, Or else, if you only have a USB-Mouse, then follow these steps: go back to the System Preferences → click "Keyboard" icon → select "Keyboard" Tab → then select the "Show keyboard and emoji viewers in menu bar" option. In top Apple menu bar you will see a keyboard icon or you will see your country/location ?? Flag icon, click on it, choose the "Show Keyboard Viewer" option. A small window will appear which will display keyboard's key-buttons. To use this software keyboard, click on key-buttons with your ?USB-mouse.
  5. turn-off Bluetooth in Mac.

KB = Keyboard . TP = Trackpad (aka: Touchpad).
( Few unicode symbols from IEC : Power - ⏻ - | ⏽ . Toggle Power - ⏼ - ⏼ . Power On - ⏽ - ⏽ . Power Off - ⭘ - ⭘ . Sleep Mode - ⏾ - ⏾ )

TROUBLESHOOT:
After you've done System Preferences configuration shown above, then take below troubleshoot steps (before getting/ordering hardware parts)

  • Update System Firmware: load all updates from Apple, & also all Security updates from Apple.
    Unplug USB-mouse & KB, and check if internal KB & TP are working or not.
    If internal KB & TP are working then NO need to follow any other steps, but if NOT-working then plug back in your USB-mouse & KB.
    • if previous (firmware update) step did not work, then Reset SMC: detail instruction is here, and a brief summary is shown below:
      • if your Mac model's battery is removable, then: Turn off Mac; Unplug power adapter; Open bottom/backside (P5 pentalobe) screws that are keeping the lower-case attached with internal frame & board, remove (all) battery pack(s); then press & hold-down  Power button for 10 seconds. Mac will be discharged completely, & SMC will reset. Re-attach the battery pack(s), connect power supply adapter & plug.
      • if your Mac model's battery is NOT-removable (that is, it is inside the laptop, & so opening-up lower-case is necessary to remove battery packs, then do not unscrew & do not remove lower-case), keep power supply connected to Mac, then first press these THREE buttons altogether (left-side) ^ Control + (left-side)  Option + (right-side)  Shift for 7 to 10 seconds, then also press & hold the FOURTH button, the  Power button, and keep press & hold these FOUR buttons altogether for 7 to 10 seconds more, then you will see that Mac has began shutdown process, and in this stage it will also automatically reset SMC.
        • if your Mac computer's specific model has Apple T2 Security Chip then above instruction is valid for that type of Macs.
          if your specific Mac model has no T2 chip, then press & hold all of those FOUR button altogether from beginning, & just use left-side  Shift button, instead of right-side.
      • Unplug power cord/plug, for around 15-seconds.
        Unplug external USB mouse & KB, & wait for around 5-seconds.
        Turn ON Mac with  Power button.
        Check, if internal KB & TP are working or not: if internal KB & TP are working then NO-need to follow next steps,
        but if internal KB & TP are still not working, then plug back in your external USB-mouse & KB.
  • if above/previous steps did not work, then Reset (Parameter RAM) PRAM: detail instruction is here, and a brief summary is shown below:
    • shutdown Mac completely, use  Power button. Sometime shutdown process needs time, so wait around 60-seconds for shutdown. And after 15-seconds of shutdown, press  Power button (to start the Mac), & immediately after pressing  Power button, press & hold down these FOUR buttons altogether:  Command +  Option + P + R, and keep on holding all of those buttons for 20 seconds. Based on your Mac model# during those 20-seconds you will either hear the STARTUP sound for 2nd-time, Or you will see the Apple LOGO  (or a GRAY-SCREEN) appearing & going-away, twice. When you will hear STARTUP sound SECOND-TIME Or when you will see Apple LOGO () DISAPPEARING SECOND-TIME, then release all those FOUR buttons. Then you should see, Mac is restarting/rebooting, and starting with normal boot process, (if this does not happen by itself in your specific Mac model# , then press  Power button once).
    • Unplug external USB-mouse & KB,
      Check, if internal KB & TP are working or not, (if internal KB & TP working then NO-need to follow next steps), but if internal KB & TP are still not working then plug in your external USB mouse & KB back.

.plist = Property-List . cmd = Command .
KB = Keyboard . TP = Trackpad (aka: Touchpad).

FEW MORE TROUBLESHOOT OPTIONS:

  • Safe-Mode : in safe mode, macOS disables all 3rd-party extensions & software, some (Apple)-system extensions (which are not required in safe-mode), etc, etc.
    Began to shutdown Mac and wait for around 60-seconds to complete shutdown. Then, wait around 15-seconds, and turn ON Mac with  Power button, and immediately after that Press & hold onto the  Shift button, until you reach login credential (username & password) entering screen, then release  Shift button.
    (if you've disabled login into Mac to reach Mac Desktop mode quickly, then hold onto  Shift button for around 90-seconds after you see Mac desktop, then release  Shift button.)
    In "Safe-Mode" you'll see the words ”Safe Boot” in top-right corner of screen.
    Check if internal KB & TP are working or not, if working then (try to) find out which 3rd-party software's extension is causing this conflict that in normal-mode KB & TP stop working. (Follow the "REMOVE .plist FILES" step in below).
    If internal KB & TP still did not work/response in "Safe mode", then this step indicated, problem is NOT related with any 3rd-party extensions or any (3rd-party) startup software,
    So plug back in USB-mouse & KB, and Shutdown or "Restart" Mac, and goto next step.
  • MOVE .plist FILES FROM ~/Library/Preferences/ (aka: "User Library/Preferences" folder) INTO ~/Desktop/Backup/MyLibraryPreferences/ FOLDER:
    • first source folder you have to go in is ~/Library/Preferences/, so follow these steps : open "Finder" (file browser) → click/select your Mac storage drive → find & go inside "Users" folder → then go inside the folder that has your UserName, f.e. in my case its "atErik" → press  Command +  Shift + buttons (Command+Shift+dot) altogether for once, it will goto "Unhide Files and Folders" mode (aka: Unhide/Unhidden Files and Directories mode, aka: show hidden files & folders mode) temporarily. Find & go inside the "Library" folder, then find & go inside the "Preferences" folder.
      Here, the beginning ~ (tilde) symbol means: inside your HOME directory/folder. The ~ is a shortened form of, for-example: /Users/atErik/ folder, Or /Users/<UserName>/ folder (aka: "HOME" folder/directory).
      So ~/Library/Preferences/ in its expanded form, indicates to /Users/atErik/Library/Preferences/ folder (or /Users/<UserName>/Library/Preferences/ folder).
    • Move below .plist files into a "Backup" folder on your Mac Desktop:
      Select all of these below property-list files (they have .plist filename-extension) and also select other .plist files related to any (KTM) keyboard, trackpad, touchpad or mouse, then select "Copy" option for all selected files by using  Command + C ( or use "Copy" option in Finder's "Edit" menu. )
      Then in "Finder" goto your "Desktop", create a folder "Backup" (if it does not exists), then inside the "Backup" create another sub-folder "MyLibraryPreferences".
      Now you MUST MOVE those selected .plist files into ~/Desktop/Backup/MyLibraryPreferences/ folder, by using  Command +  Option + V buttons ( Or goto "Edit" menu in "Finder" file-browser, & press & hold  Option button in software/hardware KB, you will see that "Paste"-mode will change, & "Move"-mode will appear & available, so select "Move" option. )
      You may have to enter a privileged admin type of user's username & password, to complete the "Move" process.
    • SELECT .plist FILES:
      com.apple.driver.AppleBluetoothMultitouch.trackpad.plist1 (Magic Trackpad)
      com.apple.driver.AppleBluetoothMultitouch.mouse.plist (Magic mouse)
      com.apple.driver.AppleBluetoothMultitouch.trackpad.plist
      com.apple.AppleMultitouchTrackpad.plist
      com.apple.preference.trackpad.plist
      com.apple.driver.AppleHIDMouse.plist (wired USB mouse)
      com.apple.AppleMultitouchMouse.plist
      (to select multiple files, you have to press  Command button before clicking on next/another .plist file)
      (Mac will auto-create above files with default settings, after a restart/start)
      • 3RD-PARTY : 1st-party is you (your own developed software/scripts, etc). 2nd-party is Apple developed software running on Apple developed macOS. And 3rd-party is who is not you/1st-party & is not Apple/2nd-party, so it is OTHER software developer.
        3rd-party software often uses their parent company (or developer) name or their own company (or one of the developer's) name or uses the software name for their software files & directories/folders.
        So to detect 3rd-party software files, you will need to know 3rd-party software's company name or developer name also.
        3rd-party can+may use these set of folders, which can+may reside inside here ("/Library/") or here("~/Library/") or both : ".../Application Support/", ".../Caches/", ".../Containers/", ".../Frameworks/", ".../Logs/", ".../Preferences/", ".../Saved/", ".../Application State/", ".../WebKit/", etc.
      • Disable (temporarily) all 3rd-party AUTO STARTUP items, & Login-time auto-start items, services, applications, etc:
        We will disable those (by using CLI+GUI, etc) temporarily after making backup (so that they can be retrieved/restored easily later).
        Open the "Terminal" (press Fn + F4 > click on "Other" icon > click on "Terminal") : To view hidden files & folders in "Finder", in Terminal run this
        cmd: sudo defaults write com.apple.finder AppleShowAllFiles -bool true
        To apply the above new settings, we have to stop all running "Finder" instances/sessions, (macOS will auto start a new instance of "Finder" after we stop all), do that with cmd: killall Finder
        NOTE: Do Not Use The Word "cmd:" Itself, When You Copy Or Paste A Command From Here, I Used "cmd:" Here To Make It Clear That Words Used After "cmd:" (inside grey box) are ("Terminal") commands.
        run cmd: launchctl list to view various STARTUP items. Keep a backup list what items are set as STARTUP item, with
        cmd: dt="/bin/date +'%Y-%m-%d_%H-%M-%S'" ; dv=`$dt` ; launchctl list > ~/launchctl-list_${dv}.txt ; unset dt; more ~/launchctl-list_${dv}.txt && unset dv;
        These (AUTO-STARTUP) type of software items/componenets are placed inside these folders usually : "/Library/StartUpItems/" (items in it are launched by system when Mac system starts-up), "/Library/LaunchDaemons/" (launched by system "root"-user when system starts-up, with bit more detail or specific options), "/Library/LaunchAgents/" (items in it are launched by user-account when user logins, so these are LOGIN-time AUTO-START items), macOS also starts various system & other software items from "/System/Library/LaunchDaemons/" folder (items are launched by "root"-user at system startup) & "/System/Library/LaunchAgentsitems/" folder (items are launched by user-account when user logins), but these two "/System/..." folders are usually for CORE system components & must not-be changed/touched by any general users, unless you're capable to work in that level. 3rd-party software must-not be inside "/System/...". And 3rd-party LOGIN AUTO-START items are also inside "~/Library/LaunchAgents/" or "/Users/<UserName>/Library/LaunchAgents/" folders (items in it are launched by user-account when user logins).
        Move (all 3rd-party & risky 2nd-party) items from LaunchDaemons & LaunchAgents, etc into a backup folder after disabling them, (and also save attribute & property list of all files in those folders), with this shell script/program here: https://GitHub.com/atErik/Disable-MacOS-3rd-Party-Startup
        after moving above items, make another backup list of STARTUP items, with
        cmd: dt="/bin/date +'%Y-%m-%d_%H-%M-%S'" ; dv=`$dt` ; launchctl list > ~/launchctl-list_${dv}.txt ; unset dt; more ~/launchctl-list_${dv}.txt && unset dv;
        Below PLIST files also contain STARTUP items (and not-disabled even in Safe-Mode, so these can be RISKY/abused) and these MUST-NOT be used by any 3rd-Party, unless it has SHOWN you this (below "/private/var/db/launchd.db/...") data & informed you & obtained your fully-aware full & explicit consent to use it:
         /private/var/db/launchd.db/com.apple.launchd.peruser.501/overrides.plist
         /private/var/db/launchd.db/com.apple.launchd/overrides.plist
        Run this cmd to view list of these PLIST files: sudo ls -Gal /private/var/db/launchd.db/
        User can view items in them with these
         cmd: nano /private/var/db/launchd.db/com.apple.launchd.peruser.501/overrides.plist
         cmd: sudo nano /private/var/db/launchd.db/com.apple.launchd/overrides.plist
        Run this: launchctl list & findout which "Label" does NOT begin with "com.apple...", so those are 3rd-party STARTUP items, and use below commands to disable them.
        Disable 3rd-party and RISKY 2nd-Party items in above two PLIST files, with such EXAMPLE commands:
         disable "rexecd": sudo defaults write /private/var/db/launchd.db/com.apple.launchd/overrides.plist 'com.apple.rexecd' -dict Disabled -bool true ;
        now with "nano" open the plist, and apply similar "Disabled" pattern of XML-codes, on other entries that are 3rd-party or risky 2nd-party items.
        Some (harmful) developer's App/pkg installer sets-up various non-standard (and constitutional amendment violating) ways (one of such shown in above) to start various (fishy, aka: Anti-Privacy, etc) items (by violating the Privacy-Rights, human-rights, etc to SPY & data-collect, etc), So one way to quickly & temporarily disable these fishy/immoral/unethical activities is, MOVE them in a different folder : with "Finder", go inside "Applications", select all apps that are 3rd-party apps (installed by you), (to multi-select, use  Command button each time before you select/click on an app), then in "Finder" select "Copy" option in "Edit" (or press  Command + C altogether for once), then on your Mac "Desktop" create a new folder "Backup", then create a sub-folder "Apps" inside the "Backup". Go inside that "Apps" & press  Command +  Option + V buttons altogether once (or goto "Edit" menu in "Finder", press  Option & then select "Move" option), you may have to enter a privileged admin type of user's username & password to complete the MOVE process. (Don't forget to restart Mac once, after below steps).
      • Remove/Delete 3rd-party auto startup items, login-items, services, applications, etc software items, (if you prefer to use GUI for it, & if you don't want to make backup) : Goto System Preferences → click on "Users & Groups" icon → select your username (or nickname) on left side column/pane → select "Login Items" Tab → you'll see list of startup items, select an item & press the “–” sign below to remove it → Done. Later by using the “+” you can add some (not-all) items back.
  • MOVE .plist FILES FROM /Library/Preferences/ (aka: "Mac Library/Preferences") INTO ~/Desktop/Backup/MacLibraryPreferences/ FOLDER:
    In "Finder" → click/select your Mac storage drive → press  Command +  Shift + buttons (Command+Shift+dot) altogether for once to show hidden files & folders, → find & go inside "Library" folder, → then find & go inside "Preferences" folder, → and check-for & find & select .plist files (that are shown & listed in above), → also find & select any other (KTM) keyboard & trackpad & touchpad & mouse related .plist files, → then select "Copy" option for all selected files by using  Command + C (or use "Copy" option in Finder's "Edit" menu).
    Goto your "Desktop" folder, find & go inside "Backup" folder, create a sub-folder "MacLibraryPreferences" inside the "Backup".
    Now you MUST MOVE those selected .plist files into ~/Desktop/Backup/MacLibraryPreferences/ folder, by using  Command +  Option + V buttons ( Or goto "Edit" menu in "Finder" file-browser, & press & hold  Option button in software/hardware KB, you will see that "Paste"-mode will change, & "Move"-mode will appear & available, so select "Move" option. )
    You have to enter a privileged admin type of user's username & password, to complete the "Move" process.
  • Shutdown or "Restart" your Mac, and unplug USB-mouse & KB (immediately after clicking on "Restart"/shutdown). Wait around 15-seconds.
    Boot/Start your Mac, and check if internal KB & TP are working or not, if yes then NO-need to follow next steps,
    if internal KB & TP are still not-working after SAFE-MODE & PLIST-REMOVAL, then follow (shown in above) SMC-reset & PRAM-reset steps AGAIN,
    and again check if internal KB & TP are working or not, if yes then NO-need to follow next steps,
    if internal KB & TP are still not-working, then plug back in (external) USB-mouse & KB, & Restart Mac.
  • HARDWARE INFO: run below shown commands inside Terminal. NOTE: output is obtained from an old MacBook-Pro, so your Mac output will be different based on your MacBook model#:
    • cmd:  ioreg | grep Keyboard
      normally, when internal keyboard works, then you should see (6-Lines of) similar output shown below, with above command:
      | | | | | +-o Apple Internal Keyboard / Trackpad@1d183000 <class IOUSBHostDevice, id 0x100012c9c, registered, matched, active, busy 0 (7371 ms), retain 33>
      | | | | | +-o Apple Internal Keyboard@0 <class IOUSBHostInterface, id 0x100012ca7, registered, matched, active, busy 0 (7357 ms), retain 11>
      | | | | | | +-o AppleUSBTCKeyboard@1d183000,0 <class AppleUSBTCKeyboard, id 0x100012cb1, registered, matched, active, busy 0 (7349 ms), retain 8>
      | | | | | | +-o AppleEmbeddedKeyboard <class AppleEmbeddedKeyboard, id 0x100012d0d, registered, matched, active, busy 0 (0 ms), retain 8>
      | | | +-o Apple Internal Keyboard / Trackpad@1d183000 <class AppleUSBDevice, id 0x100012c9e, registered, matched, active, busy 0 (1 ms), retain 15>
      | | | | +-o Apple Internal Keyboard@0 <class AppleUSBInterface, id 0x100012caa, registered, matched, active, busy 0 (0 ms), retain 5>
    • cmd:  ioreg | grep Trackpad
      normally, when internal trackpad works, then you should see (2-Lines of) similar output shown below, with above command:
      | | | | | +-o Apple Internal Keyboard / Trackpad@1d183000 <class IOUSBHostDevice, id 0x100012c9c, registered, matched, active, busy 0 (7371 ms), retain 33>
      | | | +-o Apple Internal Keyboard / Trackpad@1d183000 <class AppleUSBDevice, id 0x100012c9e, registered, matched, active, busy 0 (1 ms), retain 15>
    • cmd:  ioreg | grep Touchpad
      normally, when internal trackpad (aka: Touchpad) works, then you should also see (4-Lines of) similar output shown below, when above command is run:
      | | | | | +-o Touchpad@1 <class IOUSBHostInterface, id 0x100012ca8, registered, matched, active, busy 0 (551 ms), retain 11>
      | | | | | +-o Touchpad@2 <class IOUSBHostInterface, id 0x100012ca9, registered, matched, active, busy 0 (10 ms), retain 11>
      | | | | +-o Touchpad@1 <class AppleUSBInterface, id 0x100012cad, registered, matched, active, busy 0 (0 ms), retain 5>
      | | | | +-o Touchpad@2 <class AppleUSBInterface, id 0x100012caf, registered, matched, active, busy 0 (0 ms), retain 5>
    • if similar lines (like above) are not-present in your output, then obviously the hardware has failed or is disconnected.
      If similar lines are present, (and internal KB & TP are still not-working properly), then thats indicating: some software/settings, etc are causing conflict, Or there is a partial hardware malfunction.
    • NOTE/REQUEST TO OP @esqarrouth (if you want to, then) please EDIT your post and put a word "EDIT:" at bottom-side of your top/1st post message, and then show output of above three "ioreg" commands, so that others can see the output & analyze.
      Please use one ` backtick symbol (aka: back-quote, aka: grave-accent) in beginning of each "output" code-line (Backtick button  ̀̃ is in top-left corner of keyboard, under the esc). Any text or code inside 2-Backticks creates an "inline"-mode code-line which can wrap at-edge without crossing-over & all text or code is also viewable without sliding left/right. And at-end of each code-line please also use one-more ` backtick-symbol and two "space" characters. Two-spaces at-end of a text/code line, creates a Line-Break(LB) <br />.
      so i.e. the `a ̪test ̪code-line` ̪ ̪ ( "space" character is shown as ̪ )
      will become: a test code-line

f.e. = for example . i.e. = in example . e.g. = example goes.
KB = Keyboard . TP = Trackpad (aka: Touchpad).

REPLACE HARDWARE:

if troubleshoot steps (mentioned in above) did not solve problem,
Replace hardware parts (at-least replace keyboard) by yourself. Its better to replace both KB & TP at same time.
When you have a chance, read-up on these, watch videos on YouTube, etc: it will become very easy to you once you watch few videos & read docs, then if you're confident to do it by yourself, order hardware parts.
So begin with the sites below:

After you've replaced (internal) keyboard/trackpad, unplug external USB-mouse & KB, and check+test if internal KB & TP are working or not, if working then NO-need to plug back in USB-mouse & KB, and go back to previously mentioned options in "Accessibility", and change/suite with your preference/choice.
But if internal KB & TP are not-working then plug back in (external) USB mouse & KB.

Related Question