Ubuntu 14.04 – Fixing Left Mouse Button Acting Like Right

14.04lenovomouse

After some recent updates (beginning of last week or so) two problem appeared. I try to find solution or determine if i should rapport it as a bug. I'am by no means Linux expert, so any help with determining what we have here will be appreciated:

System

Lenovo T420
Ubuntu 14.04.1 LTS

Problem

  • Sometimes (I cannot find any pattern) left mouse button starts acting like right is supposed to, and right mouse button don't work at all.
  • Sometimes (again, I cannot find any pattern) cursor is moving slowly without my input mostly to the upper-right corner of the screen, but not always.
  • Both problems appeared when i was using generic USB mouse, but persists even when I am using only touch-pad or Logitech M185 Wireless mouse.

Workaround

Switching to another terminal (ALT+CTRL+FX) and going back to regular session (ALT+CTRL+F7) seems to fix problem for a seemingly random amount of time.

Best Answer

Solution

Edit: Updated, as I incorrectly assumed that psmouse kernel module provides support for legacy mouses. In fact, this is touchpad support. Currently, i'am testing if update to 14.10 fixes problem with this module to get touchpad to work also ( i didn't noticed that it was not working earlier)

It appears that kernel module psmouse providing touchpad support was interfering with mouse for unidentified reason.

Unload module to restore normal mouse behavior:

gniewomir@gniewomir-ThinkPad-T420:~$ sudo modprobe -r psmouse

Prevent module from loading:

gniewomir@gniewomir-ThinkPad-T420:~$ sudo vim /etc/modprobe.d/blacklist.conf

Add line:

blacklist psmouse

Then:

gniewomir@gniewomir-ThinkPad-T420:~$ sudo update-initramfs -u

Reboot and we are done.

Related Question