Mouse clicks suddenly stopped working in Ubuntu
Got this one too. The odd thing is, it doesn't take clicks from my mouse, but it fully recognizes my touchpad.
Anyway, opening a terminal (e.g., with Ctrl+Alt+T) and typing:
metacity --replace &
will make it work if you're using compiz. If you want compiz back, type:
compiz --replace &
and the mouse will work again.
It's easier getting to the terminal if you have Gnome-Do
or if you assign a hotkey to it (like the super/windows key or tilde (~).
WARNING: Don't stop metacity
/compiz
commands once started or you'll be in worse situation than you were before.
For what it's worth, I went into the package manager and searched for, 'mouse'. After that, I clicked on all the already installed applications (there aren't that many) and reinstalled all of 'em. Then I searched for 'keyboard' and did the same thing. Not much change there, either. Finally, I searched for 'input' and found a file called, 'inputattach'. Reinstalled it and my mouse problems are solved. Works like it did on the day I installed 10.04. It's so nice to have a mouse that behaves itself and works like it should, again.
I'm a relatively new Ubuntu user, but instead of asking a lot of questions and then waiting for someone to reply, I decided to try and do something about it on my own, and solved my mouse problems (computer mouse, that is...;)
What the file re-installation cleared up, was the need to click several times to open up a folder, having to hold the button down for sometimes as long as three or four seconds before the click would be activated, or having to right click to open a folder or open a file with a particular application.
Just wanted to share this with you since the 'input' of my mouse now seems to once again, be completely and fully 'attached' to my computer.
Some things to try:
- Switch to and from a virtual terminal Ctrl + Alt + F1,Alt + F7.
- Activate the screen-lock Ctrl + Alt + L to hopefully reset the X11 window manager.
- Restart the window manager with something like
( DISPLAY=0.0 marco --replace )
. You need to replacemarco
with whatever window manager you are running (compiz
,unity
,metacity
, ...). - Close any virtual machines, VNC clients, games, etc. that might have grabbed the mouse. For example:
killall vmplayer
might initiate a virtual-machine suspend operation.