Mouse driver reset causes logout
Posted: Wed Oct 24, 2012 10:12 am
Hello all,
I've encountered a strange problem where running a script meant to reset a misbehaving mouse driver caused Mint to log out. I'm running Maya MATE on my laptop. The problem does not appear to be reproducible -- the script worked just fine before causing a logout this morning, and hasn't done it again since then. However, if there's something I can change to keep this from happening again I would like to.
I wrote the script ("/usr/bin/fixmouse") based on some suggestions online to fix my laptop mouse when it becomes unresponsive or jumpy:
I've been calling it by typing "sudo fixmouse".
Am I doing something stupid or risky? I guess I don't really understand very well what rmmod and modprobe are doing, so I might be missing something obvious.
Any thoughts about how to keep it from happening again would be appreciated! Thanks!
I've encountered a strange problem where running a script meant to reset a misbehaving mouse driver caused Mint to log out. I'm running Maya MATE on my laptop. The problem does not appear to be reproducible -- the script worked just fine before causing a logout this morning, and hasn't done it again since then. However, if there's something I can change to keep this from happening again I would like to.
I wrote the script ("/usr/bin/fixmouse") based on some suggestions online to fix my laptop mouse when it becomes unresponsive or jumpy:
Code: Select all
#!/bin/bash
#resets mouse if it gets stuck
rmmod psmouse
modprobe psmouse
echo done.
Am I doing something stupid or risky? I guess I don't really understand very well what rmmod and modprobe are doing, so I might be missing something obvious.
Any thoughts about how to keep it from happening again would be appreciated! Thanks!