Mouse not working when starting Ubuntu

view story

http://askubuntu.com – I started ubuntu and my mouse isn't working. Even in log in screen. If I shake my mouse all the time while booting then my mouse will work. I think the mouse peripheral hasn't been detected and that's why mouse isn't working. So is there any way to fix this problem OR Can I refresh peripherals by using a command in Terminal ? (HowTos)