You are not logged in.

#1 2012-10-05 11:33:40

siamer
Member
Registered: 2012-04-29
Posts: 132

usb mouse disconnecting

Hi.
From good few weeks I  have problem with my usb mouse (ASUS mouse). When I'm using mouse is working fine but when living my pc for 2-3 minutes without touching it than my usb mouse is dissconnected (freezing) [in that time touchpad is working fine] and to use it again have to unplug and plug again...
this is dmesg after that happend:

[   24.642357] EXT4-fs (sda3): re-mounted. Opts: commit=0
[  531.281477] usb 2-1: USB disconnect, device number 2
[  535.339998] hub 2-0:1.0: unable to enumerate USB device on port 1
[  537.826677] usb 2-1: new low-speed USB device number 4 using ohci_hcd
[  538.031561] input: Logitech Logitech USB Optical Mouse as /devices/pci0000:00/0000:00:04.0/usb2/2-1/2-1:1.0/input/input13
[  538.031953] hid-generic 0003:046D:C019.0002: input,hidraw0: USB HID v1.11 Mouse [Logitech Logitech USB Optical Mouse] on usb-0000:00:04.0-1/input0
[ 3299.083566] usb 2-1: USB disconnect, device number 4
[ 3302.486383] usb 2-1: new low-speed USB device number 5 using ohci_hcd
[ 3302.691789] input: Logitech Logitech USB Optical Mouse as /devices/pci0000:00/0000:00:04.0/usb2/2-1/2-1:1.0/input/input14
[ 3302.692452] hid-generic 0003:046D:C019.0003: input,hidraw0: USB HID v1.11 Mouse [Logitech Logitech USB Optical Mouse] on usb-0000:00:04.0-1/input0
[ 3308.898521] usb 2-1: USB disconnect, device number 5
[ 3310.016564] hub 2-0:1.0: unable to enumerate USB device on port 1
[ 3316.039723] usb 2-2: new low-speed USB device number 7 using ohci_hcd
[ 3316.244968] input: Logitech Logitech USB Optical Mouse as /devices/pci0000:00/0000:00:04.0/usb2/2-2/2-2:1.0/input/input15
[ 3316.245524] hid-generic 0003:046D:C019.0004: input,hidraw0: USB HID v1.11 Mouse [Logitech Logitech USB Optical Mouse] on usb-0000:00:04.0-2/input0

how to fix it ?

Offline

#2 2012-10-06 20:38:13

siamer
Member
Registered: 2012-04-29
Posts: 132

Re: usb mouse disconnecting

really no one can help me with that usb mouse ?

Offline

#3 2012-10-06 20:48:11

illusionist
Member
From: localhost
Registered: 2012-04-03
Posts: 498

Re: usb mouse disconnecting

which DE are you using ?
afaik it is your DE's power setting which is closing usb ports after some time of no activity.
Have you tried another mouse or maybe it is your usb port . Try another port .


  Never argue with stupid people,They will drag you down to their level and then beat you with experience.--Mark Twain
@github

Offline

#4 2012-10-08 17:32:57

siamer
Member
Registered: 2012-04-29
Posts: 132

Re: usb mouse disconnecting

usb port is ok, yes second mouse is the same...
I'm using GNOME 3 maybe that's the problem... will take a look on that...

thanks!

Offline

#5 2012-10-08 20:14:21

rulex
Member
From: Finland
Registered: 2009-05-20
Posts: 55

Re: usb mouse disconnecting

hello there.

https://bbs.archlinux.org/viewtopic.php?id=149530

we should put our heads together smile

Last edited by rulex (2012-10-08 20:15:32)

Offline

#6 2012-10-08 21:13:46

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: usb mouse disconnecting

siamer wrote:

From good few weeks

Coincide with a kernel upgrade?

Offline

#7 2012-10-13 17:32:44

Ocye
Member
Registered: 2011-12-07
Posts: 29

Re: usb mouse disconnecting

Same issue here (Logitech G9, KDE,  3.5.6-1-ARCH)

13.10.2012 19:21:32	localhost	kernel	[    0.000000] Linux version 3.5.6-1-ARCH (tobias@T-POWA-LX) (gcc version 4.7.1 20120721 (prerelease) (GCC) ) #1 SMP PREEMPT Sun Oct 7 19:30:49 CEST 2012
...
13.10.2012 19:28:12	localhost	kernel	[  405.799706] usb 8-2: >input irq status -75 received
13.10.2012 19:28:12	localhost	kernel	[  405.905355] usb 8-2: >USB disconnect, device number 30
13.10.2012 19:28:13	localhost	kernel	[  406.138557] usb 8-2: >new full-speed USB device number 31 using uhci_hcd
13.10.2012 19:28:13	localhost	kernel	[  406.322807] input: Logitech G9 Laser Mouse as /devices/pci0000:00/0000:00:1d.2/usb8/8-2/8-2:1.0/input/input29
13.10.2012 19:28:13	localhost	kernel	[  406.323220] hid-generic 0003:046D:C048.0012: >input,hidraw0: USB HID v1.11 Mouse [Logitech G9 Laser Mouse] on usb-0000:00:1d.2-2/input0
13.10.2012 19:28:13	localhost	kernel	[  406.332703] input: Logitech G9 Laser Mouse as /devices/pci0000:00/0000:00:1d.2/usb8/8-2/8-2:1.1/input/input30
13.10.2012 19:28:13	localhost	kernel	[  406.333010] hid-generic 0003:046D:C048.0013: >input,hiddev0,hidraw1: USB HID v1.11 Keyboard [Logitech G9 Laser Mouse] on usb-0000:00:1d.2-2/input1
13.10.2012 19:29:26	localhost	kernel	[  479.623616] usb 8-2: >input irq status -75 received
13.10.2012 19:29:26	localhost	kernel	[  479.646172] usb 8-2: >USB disconnect, device number 31
13.10.2012 19:29:26	localhost	kernel	[  479.902744] usb 8-2: >new full-speed USB device number 32 using uhci_hcd
13.10.2012 19:29:27	localhost	kernel	[  480.089728] input: Logitech G9 Laser Mouse as /devices/pci0000:00/0000:00:1d.2/usb8/8-2/8-2:1.0/input/input31
13.10.2012 19:29:27	localhost	kernel	[  480.089888] hid-generic 0003:046D:C048.0014: >input,hidraw0: USB HID v1.11 Mouse [Logitech G9 Laser Mouse] on usb-0000:00:1d.2-2/input0
13.10.2012 19:29:27	localhost	kernel	[  480.098681] input: Logitech G9 Laser Mouse as /devices/pci0000:00/0000:00:1d.2/usb8/8-2/8-2:1.1/input/input32
13.10.2012 19:29:27	localhost	kernel	[  480.098846] hid-generic 0003:046D:C048.0015: >input,hiddev0,hidraw1: USB HID v1.11 Keyboard [Logitech G9 Laser Mouse] on usb-0000:00:1d.2-2/input1

Device #32 within 8 min...

Last edited by Ocye (2012-10-13 17:33:06)

Offline

#8 2012-10-13 17:53:09

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: usb mouse disconnecting

Input devices should NOT have usb-autosuspend enabled. Below i post a working example from my system:

...
Bus 001 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms =  2000 -- Linux Foundation 2.0 root hub (hub)
Bus 001 Device 003 ID 04b4:0033 control = on,   autosuspend_delay_ms =  2000 -- Cypress Semiconductor Corp. Mouse (usbhid)
Bus 001 Device 004 ID 147e:2016 control = auto, autosuspend_delay_ms =  2000 -- Upek Biometric Touchchip/Touchstrip Fingerprint Sensor (no driver)
Bus 001 Device 005 ID 04f2:b217 control = auto, autosuspend_delay_ms =  2000 -- Chicony Electronics Co., Ltd Lenovo Integrated Camera (0.3MP) (uvcvideo)
Bus 002 Device 003 ID 046d:c31c control = on,   autosuspend_delay_ms =  2000 -- Logitech, Inc. Keyboard K120 for Business (usbhid)

Control is set to 'on' for the mouse and keyboard and to auto for the rest. Gnome does not recognize the input devices correctly and set control to 'auto'.
This is a bug in gnome in my opinion.

Last edited by teateawhy (2012-10-13 17:54:40)

Offline

#9 2012-10-14 22:40:28

siamer
Member
Registered: 2012-04-29
Posts: 132

Re: usb mouse disconnecting

Hi.

So how can we change control to 'on' ? don't have any ideas how to do that tongue and how to check how my control is set ? lsub not showing it... neutral

@rulex no idea how to do that. but when you will find solution please send me ma message wink

Thanks

[edit]
I think new kernel update fixed that problem! will let you know soon if I'm right...

Last edited by siamer (2012-10-14 22:41:39)

Offline

#10 2012-10-14 23:06:30

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: usb mouse disconnecting

siamer, autosuspend can be controlled here:

/sys/bus/usb/devices/usbX/power/control

Where X is a number that identifies each usb bus.

Offline

#11 2012-10-15 00:10:13

boast
Member
Registered: 2010-09-28
Posts: 219

Re: usb mouse disconnecting

the powertop app also lets you control it


Asus M4A785TD-V ;; Phenom II X4 @ 3.9GHz ;; Ripjaws 12GB DDR3-1600 ;; 128GB Samsung 830 ;; MSI GTX460 v2 w/ blob ;; Arch Linux + KDE 4.x

Offline

#12 2012-10-15 10:20:33

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: usb mouse disconnecting

siamer wrote:

So how can we change control to 'on' ?

Either use a script to write the values or a tool that does it for you.
For convinience i use tlp, a tool that can detect input devices and set the values properly.
You can also set a blacklist of usb devices in the configuration file, in case you have input devices that are not detected.
This tool also does a lot of other configuration, so i recommend using a script if you only want to change one or two values, to keep it simple.

Offline

#13 2012-10-15 11:03:08

rulex
Member
From: Finland
Registered: 2009-05-20
Posts: 55

Re: usb mouse disconnecting

teateawhy wrote:
siamer wrote:

So how can we change control to 'on' ?

Either use a script to write the values or a tool that does it for you.
For convinience i use tlp, a tool that can detect input devices and set the values properly.
You can also set a blacklist of usb devices in the configuration file, in case you have input devices that are not detected.
This tool also does a lot of other configuration, so i recommend using a script if you only want to change one or two values, to keep it simple.


So it should be on, yes? I have it on. Also I dont use gnome so its not related to that. I got KDE 3.6.2-1-ck

And I dont understand how it could be that suspend thing because over night when nothing really happens on my computer it never disconnects.
But when I fire up a HD movie on one screen and quake live on another one it can disconnect many times/minute.

Offline

#14 2012-10-18 18:17:00

siamer
Member
Registered: 2012-04-29
Posts: 132

Re: usb mouse disconnecting

I belive my problem is solved by upgrading kernel... from around week my mouse is ok...
my kernel is:

[siamer@ASUS ~]$ uname -a
Linux ASUS 3.6.2-1-ARCH #1 SMP PREEMPT Fri Oct 12 23:58:58 CEST 2012 x86_64 GNU/Linux

good luck!

Offline

#15 2012-10-18 20:12:50

rulex
Member
From: Finland
Registered: 2009-05-20
Posts: 55

Re: usb mouse disconnecting

I've been hoping that an update will fix it for me but no.

Today I changed my Logitech G400 thats having these problems to my fedora laptop and tried with my old Logitech G5 to see what happens.
No disconencts with Logitech G5 on my arch machine. And no disconnects on the laptop either with the G400. what the..?

I do not understand this how can it be that only that combination have these problems :s

Offline

#16 2012-10-18 21:28:02

siamer
Member
Registered: 2012-04-29
Posts: 132

Re: usb mouse disconnecting

what kind of kernel do you have ? bfs ? maybe that's the problem... maybe try install same kernel as I have...

hope you will find solution soon...

Regards,
siamer

Offline

#17 2012-10-18 22:16:30

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: usb mouse disconnecting

An example:  /etc/udev/rules.d/91-local.rules  (note that 91 is higher than the 42 in the filename of /usr/lib/udev/rules.d/42-usb-hid-pm.rules, so gets executed *after*)

ACTION=="add", SUBSYSTEM=="usb", ATTR{product}=="Razer Abyssus", ATTR{power/control}="on"

This switches the "control" parameter from "auto" (i.e. auto-suspend is allowed) to "on" (auto-suspend is not allowed).

First, make the new rule take effect:

udevadm control --reload

Here's a handy script to check:

for d in /sys/bus/usb/devices/[0-9]* ; do if [[ -e $d/product ]] ; then echo -e "`basename $d`\t`cat $d/power/control`\t`cat $d/speed`\t`cat $d/product`" ; fi ; done

Should see: on 12 for the mouse line.

Background reading:  /usr/src/linux/drivers/base/power/sysfs.c

Edit: Switched the column order, for neater formatting. Added more info.

Last edited by brebs (2013-10-26 14:05:11)

Offline

#18 2012-10-18 22:46:05

rulex
Member
From: Finland
Registered: 2009-05-20
Posts: 55

Re: usb mouse disconnecting

@siamer
I have 3.6.2-1-ck. I booted up 3.6.2-1-ARCH and tried but with the same disconnects. It might be a coincidence but it disconnected more frequently the short time I was on the -ARCH kernel.

@brebs
my mouse has autosuspend On


I noticed another thing in kernel.log. Out of my current 389 usb disconnects 24 of them have "hub 2-1.5.1:1.0: port 2 disabled by hub (EMI?), re-enabling..." on the row above the "USB disconnect, device number XX".

Might be related somehow even though I've tried without the usbhub aswell but with the same disconnects?



Edit:   Soooo.. I just changed from openbox-kde-session to openbox-session and spent 2 hours playing quakelive without a disconnect. Looking good. ( not for kde )

Last edited by rulex (2012-10-19 01:13:23)

Offline

#19 2012-10-19 01:50:25

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: usb mouse disconnecting

You mean control on, presumably.

Offline

#20 2012-10-19 13:01:11

rulex
Member
From: Finland
Registered: 2009-05-20
Posts: 55

Re: usb mouse disconnecting

brebs wrote:

You mean control on, presumably.

Correct.

Seems like switching away from KDE fixed it for me. No problems today so far.

Offline

#21 2012-10-21 15:06:27

siamer
Member
Registered: 2012-04-29
Posts: 132

Re: usb mouse disconnecting

maybe try download some livebooting archlinux version with kde for example bridge linux (it's 100% archlinux) here you can find it http://sourceforge.net/projects/bridgelinux/files/ so you can check if kde is problem or your configuration... ? maybe that will clear situation a little bit ?

my mouse is still good so far...

good luck wink

Offline

#22 2012-10-21 16:26:23

rulex
Member
From: Finland
Registered: 2009-05-20
Posts: 55

Re: usb mouse disconnecting

No apparently it was not KDE but switching away from it made my mouse disconnect only one time in these two days instead of a few times per hour with kde.

So something related to it? I have no idea smile


Edit: Oh my godz. Apparantly it WAS the cable! really freakin' sensitive stuff I must say. Only disconnecting on my workstation computer, somehow its in the right position to fail.

Last edited by rulex (2012-10-25 16:13:35)

Offline

#23 2012-10-30 16:55:36

Ocye
Member
Registered: 2011-12-07
Posts: 29

Re: usb mouse disconnecting

I was waiting for kernel updates but none solves the problem. My cable is okay, autosuspend is on, and keyboard as well as externel hdd never disconnect.

syslog wrote:

30.10.2012 17:47:28    usb 8-2    input irq status -75 received
30.10.2012 17:47:28    hub 8-0    .0: port 2 disabled by hub (EMI?), re-enabling...
30.10.2012 17:47:28    usb 8-2    USB disconnect, device number 111
30.10.2012 17:47:29    usb 8-2    new full-speed USB device number 112 using uhci_hcd

for d in /sys/bus/usb/devices/[0-9]*.... wrote:

2-2     on      480     External HDD   
8-1     auto    12      G15 Keyboard Hub
8-1.1   on      1.5     G15 Gaming Keyboard
8-1.4   on      12      G15 GamePanel LCD
8-2     on      12      G9 Laser Mouse

Offline

#24 2012-11-04 13:07:08

rulex
Member
From: Finland
Registered: 2009-05-20
Posts: 55

Re: usb mouse disconnecting

Just gonna say I sat for like 20 minutes watching TV holding the mouse and the cable trying all kinds of angles before I found the place where the lights go out... really sensitive.

Offline

#25 2013-02-16 21:24:25

Torignit
Member
Registered: 2012-06-19
Posts: 14

Re: usb mouse disconnecting

Same problem; using a 3.7.7-1-ARCH x86_64 running a bare bones Openbox (nvidia card + nouveau) I get a succession of

kernel: usb 5-1: USB disconnect, device number 51
kernel: usb 5-1: new low-speed USB device number 52 using uhci_hcd
kernel: input: PIXART USB OPTICAL MOUSE as /devices/pci0000:00/0000:00:1a.0/usb5/5-1/5-1:1.0/input/input63
kernel: hid-generic 0003:093A:2510.0034: input,hidraw0: USB HID v1.11 Mouse [PIXART USB OPTICAL MOUSE] on usb-0000:00:1a.0-1/input0

which eventually end right along with mouse activity, requiring replugging to get journalctl -f spamming and the mouse working again.


rulex wrote:

Edit:   Soooo.. I just changed from openbox-kde-session to openbox-session and spent 2 hours playing quakelive without a disconnect. Looking good. ( not for kde )

I read this and changed from openbox to openbox-session to no discernible effect.


brebs wrote:

An example:  /etc/udev/rules.d/91-local.rules [...]

ACTION=="add", SUBSYSTEM=="usb", ATTR{product}=="Razer Abyssus", ATTR{power/control}="on"

Copied this and replaced 'Razer Abyssus' with my mouse info, rebooted, checked with

brebs wrote:
for d in /sys/bus/usb/devices/[0-9]* ; do if [[ -e $d/product ]] ; then echo -e "`basename $d`\t`cat $d/power/control`\t`cat $d/speed`\t`cat $d/product`" ; fi ; done

to get affirmative, but it didn't help my problem any either.


brebs wrote:

Background reading:  /usr/src/linux/drivers/base/power/sysfs.c
This is with kernel 3.4.14

This file isn't on my filesystem-- if you meant to imply it's supposed to come with Arch's [base] or [base-devel], but this looks like the appropriate thing.


rulex wrote:

Edit: Oh my godz. Apparantly it WAS the cable! really freakin' sensitive stuff I must say. Only disconnecting on my workstation computer, somehow its in the right position to fail.

This seems odd to me, as my rate of disconnect/reconnect/fail doesn't change just because I'm moving the cord around.

Searching these forums provided this as the best thread, and searching the internet provided many differing solutions and non-solutions that don't really apply to Arch, or imply that this is something automatic and unavoidable with a few different kinds of optical mice.

Inspiration or confirmation would be welcome.

Offline

Board footer

Powered by FluxBB