View previous topic :: View next topic |
Author |
Message |
blugendoo n00b
Joined: 11 Apr 2016 Posts: 23
|
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3685
|
Posted: Fri Apr 15, 2016 5:58 pm Post subject: |
|
|
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 |
|
|
blugendoo n00b
Joined: 11 Apr 2016 Posts: 23
|
Posted: Fri Apr 15, 2016 11:03 pm Post subject: |
|
|
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.
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.
The same hardware with Linux Mint 17.3 doesn't have this behavior. So it isn't an hardware issue.
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. |
|
Back to top |
|
|
blugendoo n00b
Joined: 11 Apr 2016 Posts: 23
|
Posted: Sat Apr 16, 2016 9:33 am Post subject: |
|
|
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 |
|
|
Chiitoo Administrator
Joined: 28 Feb 2010 Posts: 2733 Location: Here and Away Again
|
Posted: Wed Apr 27, 2016 11:28 am Post subject: |
|
|
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 |
|
|
tlix n00b
Joined: 15 Jul 2015 Posts: 8
|
Posted: Wed May 04, 2016 4:49 am Post subject: |
|
|
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 |
|
|
|
|
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
|
|