Internal Touchpad and Keyboard stop working after login
It seems that somehow the bits in the registry had gotten flipped. I tried two things: 1) I changed the configuration settings and 2) I removed all bluetooth daemons 

## 1
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad USBMouseStopsTrackpad 0
defaults write com.apple.AppleMultitouchTrackpad USBMouseStopsTrackpad 0

## 2
killall blued
launchctl unload /System/Library/LaunchDaemons/com.apple.bluetoothd.plist 
launchctl unload /System/Library/LaunchDaemons/com.apple.bluetoothaudiod.plist 
launchctl unload /System/Library/LaunchDaemons/com.apple.bluetoothReporter.plist 
kextcache -system-prelinked-kernel
sudo kextcache -system-prelinked-kernel


Based on the fact that the keyboard did not work even in safe mode, it seems that the first thing worked, since the keyboard and trackpad are working now after I restarted the computer.