Logitech M515 does not work after upgrade to 12.04

After upgrading to 12.04, my Logitech M515 does not work here is some output from the terminal:

lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0411:002a BUFFALO INC. (formerly MelCo., Inc.) 
Bus 001 Device 004: ID 055d:3021 Samsung Electro-Mechanics Co. 
Bus 002 Device 002: ID 413c:2005 Dell Computer Corp. RT7D50 Keyboard
Bus 004 Device 002: ID 0582:0074 Roland Corp. EDIROL UA-25
Bus 005 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver

dmesg | grep Logitech

[   30.470528] logitech-djreceiver 0003:046D:C52B.0004: hiddev0,hidraw1: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:1d.3-2/input2

The cursor does not move. Also the mouse was working in 11.10 and is working in Windows NT 5.1.2600.


Solution 1:

Here's the clean workaround for this problem. A part of the solution has already been given.

Explanation: instead of having to type in modprobe -r hid_logitech_dj && modprobe hid_logitech_dj each time you startup linux we will make a very simple startup script that implements these two commands. To make sure it starts up at boot we put it in the init.d folder.

To make sure everybody can follow it I will tell step by step what to do.

  1. Make a file named:

    logitech-unifying.sh
    
  2. Open that file (by clicking on it) and add these lines:

    #!/bin/bash
    
    modprobe -r hid_logitech_dj
    
    modprobe hid_logitech_dj
    
  3. Open the terminal and make sure you navigate to the folder where 'logitech-unifying.sh' is located. Then type this command:

    sudo mv -i logitech-unifying.sh /etc/init.d
    
  4. Enter your password

  5. Close the terminal

  6. Reboot

When you startup linux, your logitech unifying device should be working.

Solution 2:

the problems you are seeing with the unifying receiver is likely due to a bug documented here:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1039143

and/or here (depending on if these are dups or not.. they seem to be, but have different reported hardware configurations.. so.. ymmv)

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1028806

Solution 3:

I had the same problem with B605 Logitech mouse after upgrading to 12.04. I had to re-plug the usb receiver to start mouse working. What I did was two commands:

modprobe -r hid_logitech_dj
modprobel hid_logitech_dj

Now mouse is working after boot.

Regards,
Mariusz