Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USB Mouse Disconnects Every Minute
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
blugendoo
n00b
n00b


Joined: 11 Apr 2016
Posts: 23

PostPosted: Fri Apr 15, 2016 2:12 pm    Post subject: Reply with quote

Sorry for necropost but I have the same problem, found this thread (no real answer) and I have some more info:

This is a very common problem, the search gives a huge number of various reports of the same kernel USB disconnect/reconnect events:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/243707
http://www.spinics.net/lists/linux-usb/msg88965.html
( This one is buying new mouse, same problem: )
http://comments.gmane.org/gmane.linux.lfs.support/34035
http://forums.fedoraforum.org/showthread.php?t=292825
( disable auto-suspend: )
http://forums.debian.net/viewtopic.php?f=7&t=104919
And...
https://bbs.archlinux.org/viewtopic.php?id=150114
2nd page: Simply installing the tlp utility and running the command sudo tlp usb resolved the problem.

Best answer and solution : - EDIT: well, this is what I thought at the moment
http://hamwaves.com/usb.autosuspend/en/
(shall we copy this here in case the page become unavailable?)


Last edited by blugendoo on Fri Apr 15, 2016 11:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3685

PostPosted: Fri Apr 15, 2016 5:58 pm    Post subject: Reply with quote

blugendoo wrote:
Best answer and solution :
http://hamwaves.com/usb.autosuspend/en/
(shall we copy this here in case the page become unavailable?)

I'll edit here as soon as I'm able to test this.

IMHO worth to be added to the wiki
Back to top
View user's profile Send private message
blugendoo
n00b
n00b


Joined: 11 Apr 2016
Posts: 23

PostPosted: Fri Apr 15, 2016 11:03 pm    Post subject: Reply with quote

charles17 wrote:
blugendoo wrote:
Best answer and solution :
http://hamwaves.com/usb.autosuspend/en/
(shall we copy this here in case the page become unavailable?)

I'll edit here as soon as I'm able to test this.

IMHO worth to be added to the wiki

Err... not too fast:
There might be a typo on that page: ATTRS vs ATTR for the first id. :roll:
So I tried: (EDITED)
Code:
vi /etc/udev/rules.d/usb-power.rules
#Microsoft Corp. Wheel Mouse Optical
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0x045e", ATTR{idProduct}=="0x0084", ATTR{power/control}="on"

But that wasn't better.
Actually I already had "on" for power/control on that mouse :| , I discovered that on the way. It still disconnect every minute. :cry:
The same hardware with Linux Mint 17.3 doesn't have this behavior. So it isn't an hardware issue. :o

Since my mouse (1-1.4.4) is on the integrated USB hub of my monitor, I also checked the upper bus levels (1-1.4 and 1-1) : power control = "auto". I managed to set "on" manually after boot but mouse still disconnect every minute.
And I couldn't set those hub power/control values with udev rules as he does on that page for the mouse.

I'll get back to this later (zzzzz) because I definitely can't have a system with a mouse freezing 1s every 60s and with increasing device number.
My next moves:
1- plug mouse directly on motherboard USB port (not the hub), for investigation
and
2- more comparison with Linux Mint successful setup.
Any suggestion welcome for that second point. :wink:
Back to top
View user's profile Send private message
blugendoo
n00b
n00b


Joined: 11 Apr 2016
Posts: 23

PostPosted: Sat Apr 16, 2016 9:33 am    Post subject: Reply with quote

Comparison with a Linux Mint where there isn't this issue:
I use
Code:
DEVNUMS=1-8.4
udevadm info --attribute-walk /sys/bus/usb/devices/$DEVNUMS
then I sort properties in each section and I compare output between Mint and Gentoo.

Note: Mint has kernel 3.19.0 + BIOS boot + initrc and Gentoo has kernel 4.5 + EFI boot + systemd (BIOS compat still activated on motherboard)

What I've found with udevadm isn't suspicious, is it?
Code:
Mint
/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8.4
parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-8'
    ATTRS{removable}=="unknown"
parent device '/devices/pci0000:00/0000:00:14.0/usb1'
parent device '/devices/pci0000:00/0000:00:14.0'
    ATTRS{local_cpus}=="00000000,00000000,00000000,00000000,00000000,00000000,00000000,0000000f"

Gentoo
/devices/pci0000:00/0000:00:14.0/usb3/3-8/3-8.4
parent device '/devices/pci0000:00/0000:00:14.0/usb3/3-8
    ATTRS{removable}=="removable"
parent device '/devices/pci0000:00/0000:00:14.0/usb3'
    ATTRS{interface_authorized_default}=="1"
parent device '/devices/pci0000:00/0000:00:14.0':
    ATTRS{local_cpus}=="f"


EDITED above (it was ehci in Gentoo, now xhci as in Mint)
Back to top
View user's profile Send private message
Chiitoo
Administrator
Administrator


Joined: 28 Feb 2010
Posts: 2738
Location: Here and Away Again

PostPosted: Wed Apr 27, 2016 11:28 am    Post subject: Reply with quote

Split from [Solved] USB devices keep disconnecting and reconnecting where the original author abandoned the issue more than few years ago, marking the topic solved that way.


I remember an udev autosuspend-bug affecting eudev as well, which made my keyboard do some... interesting things, and rendered my machine unable to shut down/reboot.

This might have been related to it: github.com/systemd — Autosuspend incorrecty enabled for USB keyboards

I know nothing about systemd, however, so I can't really help with that. ^^;
_________________
Kindest of regardses.
Back to top
View user's profile Send private message
tlix
n00b
n00b


Joined: 15 Jul 2015
Posts: 8

PostPosted: Wed May 04, 2016 4:49 am    Post subject: Reply with quote

though not have tested the udev rules, but it should work ( unplug you usb mouse and plug it again after modify the configuration)
for me, I use laptop-mode-tool, in the
Code:
/etc/laptop-mode/conf.d/runtime-pm.conf
, add your usb bus ID to the blacklist and start laptop-mode.service, it works.
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