This question already has an answer here:
I have a python script that restarts the mouse driver
import os os.system("sudo modprobe -r psmouse") os.system("sudo modprobe psmouse")
since my mouse doesn't always show up on start. What is a way I can run it on start up without being prompted for a password?