akhilprem97 wrote:
Macbook Pro disables keyboard and trackpad for 30s after logging in, I also tried unchecking the wireless keyboard and trackpad options in the advanced bluetooth setting. How can I solve this problem?
Try resetting NVRAM/PRAM http://support.apple.com/kb/ht1379
I suspect when you say "Advanced" you are referring to >System Preferences>Bluetooth.
Your other option is from the BT icon in the upper right menu bar, hold the Shift Option keys and click it open>Debug>
Here you have several options. Start at the top and continue to work through the list, test along the way until your problem is resolved.
You all ready know how to get to Preferences if you need to re-register your externals.

Using a Bluetooth mouse, keyboard, or trackpad with your Mac
.