You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Can you disable the trackpad on an MBP from the command line?

Is this possible? The MBP is a 15" Core 2 Duo, so 4 years old or so. It was stepped on by a firefighter after a 25' chunk of a pine tree blew through the roof of our house. The display glass is broke but the display is still pretty good. I was going to give it to a friend, but it seems to me that the trackpad is sort of stuck in click mode. If I have an external mouse plugged in, I can right click but not left click. The basic functionality of the keyboard works as I can enter the password to unlock the unit, so broadly speaking, the computer seems OK overall.


Any suggestions? The friend is not in critical need of it, so if I can't resolve this, it's no big deal.

Posted on Aug 15, 2013 12:38 PM

Reply
6 replies

Aug 15, 2013 1:04 PM in response to Cloudster

Sorry about your house...hope nobody was hurt.


You can disable the trackpad via the command line:


sudo kextunload -b com.apple.driver.AppleUSBMultitouch; sudo touch /system/library/extensions ; exit


Enter your password when prompted. The driver has no dependencies so should be able to unload the driver without problems. Rebuild your kernel cache, then reboot. I haven't tried this personally, however.


As for the mouse, try to check system preferences > mouse > primary mouse button

Aug 15, 2013 2:34 PM in response to Cloudster

We didn't file a claim with insurance on this computer because it was purchased in a weird fashion. My wife is an astronomer, and at the end of the year (whenever it was) her boss told her that they actually had some leftover money and asked if she wanted a new computer. Half of her salary is paid from a different program, not directly from the observatory, so I suggested talking to her other boss and maybe having the two bosses go in halfsies on the new computer, which they did. This was probably 4 years ago.


About 2 years ago she bought a new MBP and this MBP was semi-retired. It was still used occasionally, she had some projects where two laptops used together was really useful. When the tree came through the roof, it was directly over her head. She got hit by the ceiling, but our metal roof decelerated the tree enough that I am not a widower today. This happened almost a year ago. The MBP that was in her lap was relatively undamaged, it somehow got a piece of insulation dust under a key. We got it checked out and it's been fine.


I was sitting next to her. Lightning struck a tree a good 10-15 yards behind our house and it exploded. The bigger chunk hit our propane tank and bounced, the one that went through our roof was 25' long and 75 lbs a foot. We were VERY fortunate to get only some inhalation damage and some minor bumps and abrasions. The sad thing was that we had a new dog, we'd only had him for a month a that point, and prior to that he was not afraid of thunderstorms. Needless to say he's no longer fearless.



Anyway, back to my problem. I'd like to take it to an Apple store for evaluation, but the closest is a two hour drive which we just don't make casually. When I entered @NBAR's code, this is the result:


Last login: Thu Aug 15 15:20:34 on ttys001

Macintosh-5:~ Russet$ sudo kextunload -b com.apple.driver.AppleUSBMultitouch; sudo touch /system/library/extensions ; exit

Password:

(kernel) Can't unload kext com.apple.driver.AppleUSBMultitouch; classes have instances:

(kernel) Kext com.apple.driver.AppleUSBMultitouch class AppleUSBMultitouchDriver has 3 instances.

Failed to unload com.apple.driver.AppleUSBMultitouch - (libkern/kext) kext is in use or retained (cannot unload).

logout



[Process completed]



Running his second code produced this list:

Last login: Fri Aug 9 08:10:29 on ttys000

Macintosh-5:~ Russet$ kextstat -kl | awk '{print $6}'

com.apple.iokit.IOACPIFamily

com.apple.iokit.IOPCIFamily

com.apple.driver.AppleACPIPlatform

com.apple.driver.AppleIntelCPUPowerManagement

com.apple.iokit.IOStorageFamily

com.apple.driver.DiskImages

com.apple.nke.applicationfirewall

com.apple.security.TMSafetyNet

com.apple.kext.AppleMatch

com.apple.security.quarantine

com.apple.security.sandbox

com.apple.driver.AppleIntelCPUPowerManagementClient

com.apple.driver.AppleAPIC

com.apple.iokit.IOSMBusFamily

com.apple.driver.AppleACPIEC

com.apple.driver.AppleSMBIOS

com.apple.iokit.IOHIDFamily

com.apple.driver.AppleACPIButtons

com.apple.driver.AppleHPET

com.apple.driver.AppleRTC

com.apple.driver.AppleEFIRuntime

com.apple.driver.AppleEFINVRAM

com.apple.driver.NVSMU

com.apple.iokit.IOUSBFamily

com.apple.driver.AppleUSBOHCI

com.apple.driver.AppleSmartBatteryManager

com.apple.driver.AppleUSBEHCI

com.apple.iokit.IONetworkingFamily

com.apple.nvenet

com.apple.iokit.IOAHCIFamily

com.apple.driver.AppleAHCIPort

com.apple.iokit.IOUSBUserClient

com.apple.driver.AppleUSBHub

com.apple.iokit.IO80211Family

com.apple.driver.AirPortBrcm43224

com.apple.iokit.IOFireWireFamily

com.apple.driver.AppleFWOHCI

com.apple.AppleFSCompression.AppleFSCompressionTypeZlib

com.apple.BootCache

com.apple.iokit.IOAHCIBlockStorage

com.apple.driver.XsanFilter

com.apple.iokit.IOSCSIArchitectureModelFamily

com.apple.iokit.IOAHCISerialATAPI

com.apple.driver.AppleUSBComposite

com.apple.driver.AppleUSBMergeNub

com.apple.iokit.IOCDStorageFamily

com.apple.iokit.IODVDStorageFamily

com.apple.iokit.IOBDStorageFamily

com.apple.iokit.IOSCSIMultimediaCommandsDevice

com.apple.iokit.SCSITaskUserClient

com.apple.iokit.IOUSBHIDDriver

com.apple.driver.AppleIRController

com.apple.iokit.IOBluetoothFamily

com.apple.driver.AppleUSBBluetoothHCIController

com.apple.driver.BroadcomUSBBluetoothHCIController

com.apple.driver.AppleUSBTCKeyboard

com.apple.driver.AppleUSBMultitouch

com.apple.driver.AppleUSBTCButtons

com.apple.iokit.IOGraphicsFamily

com.apple.iokit.IONDRVSupport

com.apple.NVDAResman

com.apple.nvidia.nv50hal

com.apple.GeForce

com.apple.filesystems.autofs

com.apple.filesystems.ntfs

com.parallels.kext.ConnectUSB

com.apple.driver.AppleMCCSControl

com.apple.driver.AppleUpstreamUserClient

com.apple.driver.AppleLPC

com.apple.driver.AppleSMBusPCI

com.apple.driver.IOPlatformPluginFamily

com.apple.driver.AppleSMC

com.apple.driver.ACPI_SMC_PlatformPlugin

com.apple.iokit.AppleProfileFamily

com.apple.driver.AppleIntelPenrynProfile

com.apple.iokit.IOHDAFamily

com.apple.driver.AppleHDAController

com.apple.driver.AppleBacklightExpert

com.apple.driver.AppleGraphicsControl

com.apple.kext.OSvKernDSPLib

com.apple.iokit.IOAudioFamily

com.apple.driver.AudioIPCDriver

com.apple.Dont_Steal_Mac_OS_X

com.apple.iokit.IOSerialFamily

com.apple.iokit.IOBluetoothSerialManager

com.apple.iokit.IOSurface

com.apple.iokit.IOFireWireIP

com.apple.driver.AppleProfileCallstackAction

com.apple.driver.AppleProfileKEventAction

com.apple.driver.AppleProfileRegisterStateAction

com.apple.driver.AppleProfileThreadInfoAction

com.apple.driver.AppleProfileTimestampAction

com.apple.kext.AppleSMCLMU

com.apple.driver.AppleSMBusController

com.apple.driver.AudioAUUC

com.apple.driver.SMCMotionSensor

com.apple.driver.AppleProfileReadCounterAction

com.apple.driver.AppleMikeyDriver

com.apple.driver.DspFuncLib

com.apple.driver.AppleHDA

com.apple.driver.AppleMikeyHIDDriver

com.apple.driver.AGPM

com.apple.driver.IOBluetoothBNEPDriver

com.apple.driver.AppleHWSensor

Macintosh-5:~ Russet$



I should have mentioned that this particular box is running 10.6.8. The only way that I can get it to left-click properly is what I'm doing right now, using Screen Sharing from my iMac.

Aug 15, 2013 3:13 PM in response to Cloudster

Well, the kext isn't unloading because it is in use (duh, whoops), not due to the classes. There is a simpler solution, much safer as well, though not from the command line.


System preferences > Accessibility > Mouse & Trackpad > Check "Ignore built in trackpad when when mouse or wireless trackpad is present."


Also make sure "enable access for assisstive devices" is checked


Subsequently, you could unload the kext from the terminal, but there wouldn't be apractical reason to do so.

Can you disable the trackpad on an MBP from the command line?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.