Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mouse not working - sometimes
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
pgu
Guru
Guru


Joined: 30 Jul 2009
Posts: 496
Location: Oslo, Norway

PostPosted: Tue Sep 11, 2012 8:33 pm    Post subject: Mouse not working - sometimes Reply with quote

Sometimes my external USB mouse will not respond after a boot. Other times it does work after a boot. This is on a laptop with a touchpad.

It's always listed in lsusb:

Code:
Bus 003 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver



But when it failes during boot I get:

Code:
usb 3-3: new full-speed USB device number 2 using xhci_hcd
logitech-djreceiver 0003:046D:C52B.0003: hiddev0,hidraw0: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:14.0-3/input2
logitech-djreceiver 0003:046D:C52B.0003: logi_dj_probe:logi_dj_recv_query_paired_devices error:-32
input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio1/input/input6
logitech-djreceiver: probe of 0003:046D:C52B.0003 failed with error -32



If I re-plug the mouse I get:

Code:
usb 3-3: USB disconnect, device number 2
usb 3-3: new full-speed USB device number 3 using xhci_hcd
logitech-djreceiver 0003:046D:C52B.0006: hiddev0,hidraw0: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:14.0-3/input2
input: Logitech Unifying Device. Wireless PID:1028 as /devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3:1.2/0003:046D:C52B.0006/input/input7
logitech-djdevice 0003:046D:C52B.0007: input,hidraw1: USB HID v1.11 Mouse [Logitech Unifying Device. Wireless PID:1028] on usb-0000:00:14.0-3:1


and the mouse will start working again.

But how do I make sure it will always work after a boot?

Could it be that I have too many drivers enabled (as the person with the keyboard problem)?

Code:
 grep -i usb /usr/src/linux/.config | grep ^CONF
CONFIG_SND_USB=y
CONFIG_SND_USB_AUDIO=y
CONFIG_USB_HID=y
CONFIG_USB_HIDDEV=y
CONFIG_USB_SUPPORT=y
CONFIG_USB_COMMON=y
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB_ARCH_HAS_EHCI=y
CONFIG_USB_ARCH_HAS_XHCI=y
CONFIG_USB=y
CONFIG_USB_XHCI_HCD=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_OHCI_HCD=y
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_UHCI_HCD=y
CONFIG_USB_STORAGE=y
CONFIG_USB_SERIAL=y
CONFIG_USB_SERIAL_FTDI_SIO=y
grep CONFIG_HIDRAW /usr/src/linux/.config
CONFIG_HIDRAW=y
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Tue Sep 11, 2012 9:25 pm    Post subject: Reply with quote

pgu.

Under Special HID drivers

-*- Logitech devices │ │
│ │ <M> Logitech Unifying receivers full support │ │
│ │
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
pgu
Guru
Guru


Joined: 30 Jul 2009
Posts: 496
Location: Oslo, Norway

PostPosted: Wed Sep 12, 2012 6:35 pm    Post subject: Reply with quote

Unfortunately it's already included:

Code:
# grep LOGITECH .config
CONFIG_HID_LOGITECH=y
CONFIG_HID_LOGITECH_DJ=y
# CONFIG_LOGITECH_FF is not set
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Wed Sep 12, 2012 7:29 pm    Post subject: Reply with quote

pgu.

That intermittent experience is very odd. I have the same device on this laptop and another on a desktop and both work perfectly. Both are a mouse/keyboard combo.
Code:
[    6.983030] logitech-djreceiver 0003:046D:C52B.0003: hiddev0,hidraw0: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:1a.0-1.2/input2

The only difference I can see is
Code:
usb 2-1: new high-speed USB device number 2 using ehci_hcd
where yours is
Code:
usb 3-3: new full-speed USB device number 2 using xhci_hcd

Here are the settings for the laptop :
Code:
bill@laptop /usr/src/linux $ grep -i usb /usr/src/linux/.config | grep ^CONF
CONFIG_SND_USB=y
CONFIG_USB_HID=m
CONFIG_USB_HIDDEV=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB_ARCH_HAS_EHCI=y
CONFIG_USB_ARCH_HAS_XHCI=y
CONFIG_USB_SUPPORT=y
CONFIG_USB_COMMON=y
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB=y
CONFIG_USB_DEBUG=y
CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
CONFIG_USB_DEVICEFS=y
CONFIG_USB_SUSPEND=y
CONFIG_USB_MON=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_OHCI_HCD=y
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_UHCI_HCD=y
CONFIG_USB_PRINTER=y
CONFIG_USB_STORAGE=y
CONFIG_USB_LIBUSUAL=y
CONFIG_USB_LED=m

You might want to pursue the usb 3-3 aspect.
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
friesia
Apprentice
Apprentice


Joined: 23 Mar 2007
Posts: 190

PostPosted: Thu Nov 15, 2012 5:14 pm    Post subject: Reply with quote

I also get this -32 error sometimes.
If I activate the mouse (move it) before the kernel boots, there's no problem.
Back to top
View user's profile Send private message
m0021
n00b
n00b


Joined: 08 Jan 2010
Posts: 55
Location: Sonneberg, Germany

PostPosted: Fri Dec 07, 2012 3:01 pm    Post subject: Reply with quote

i also experienced that problem for half a year. i think this is a kernel bug. as far as i understand, the problem only appears if i plug the unifying reciever into a usb3 port. if i use a usb2 hub on the same usb3 port it works. unfortunately my laptop only has usb3 ports, so i need to use a usb2 hub for !one! device to get working. the other solution is to unload and load the hid_logitech_dj module until it recognizes the mouse correctly. here is a script i found in a ubuntu forum:

Code:
#!/bin/bash
while :; do dmesg|grep logitech-djreceiver|tail -1|grep -q -c "failed with error -32" || exit;
echo -n `date`" Driver Reload" ;
rmmod hid_logitech_dj ;
modprobe hid_logitech_dj ;
dmesg|grep logitech-djreceiver|tail -1 ; sleep 1; done
Back to top
View user's profile Send private message
pgu
Guru
Guru


Joined: 30 Jul 2009
Posts: 496
Location: Oslo, Norway

PostPosted: Sun Jan 19, 2014 1:34 pm    Post subject: Reply with quote

I just install on a new PC


Code:
Linux i3 3.10.25-gentoo #2 SMP Sun Jan 19 14:13:10 CET 2014 x86_64 Intel(R) Core(TM) i3-3217U CPU @ 1.80GHz GenuineIntel GNU/Linux


But run into the same problem. But here I can't get the mouse to work at all:

Code:
[  243.805972] usb 2-1.7: USB disconnect, device number 5
[  253.738561] usb 2-1.7: new full-speed USB device number 6 using ehci-pci
[  253.842094] logitech-djreceiver 0003:046D:C52B.000C: hiddev0,hidraw6: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:1d.0-1.7/input2
[  253.842252] logitech-djreceiver 0003:046D:C52B.000C: logi_dj_probe:hdev->ll_driver->open returned error:-16
[  253.842573] logitech-djreceiver: probe of 0003:046D:C52B.000C failed with error -16
Back to top
View user's profile Send private message
MarcosAM
n00b
n00b


Joined: 07 Jun 2014
Posts: 3

PostPosted: Sat Jun 07, 2014 3:08 pm    Post subject: Some years later... Reply with quote

Hy guys!

I have the same issue in many Linux distros, and i found this solution:

If you have installed "laptop-mode", edit the file:

Code:
/etc/laptop-mode/conf.d/usb-autosuspend.conf


and change the line above to:

Code:
AUTOSUSPEND_USBTYPE_BLACKLIST="usbhid usb-storage"


unplug and plug again the USB mouse (and/or storage device).

To me, works like a charm! :D

Sources
:arrow: http://forums.opensuse.org/showthread.php/478102-OpenSuse-12-2-USB-Mouse-Problem
:arrow: http://askubuntu.com/questions/141832/usb-mouse-sleeping-after-5-seconds-when-on-battery
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum