Try disabling the mtp-probe udev, that has been causing others usb
devices to act up.

The mtp-probe rule is badly written, it has an explicit list of
devices that are mtp-devices, but even if something is not in that
list it still tries to probe certain devices and those devices do not
support whatever is being used in the problem the device acts up
and/or goes offline.  And when it comes back online it gets probed
again...

in /etc/udev/rules.d this is the change I made:
[root@roger2016-laptop rules.d]# diff 69-libmtp.rules /root/69-libmtp.rules
2537c2537
< ENV{ID_MTP_DEVICE}!="1", ENV{MTP_NO_PROBE}!="1",
ENV{COLOR_MEASUREMENT_DEVICE}!="1", ENV{libsane_matched}!="yes",
ATTR{bDeviceClass}=="00|02|06|ef|ff", PROGRAM="/usr/lib/udev/mtp-probe
/sys$env{DEVPATH} $attr{busnum} $attr{devnum}", RESULT=="1",
SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"
---
> ENV{ID_MTP_DEVICE}!="1", ENV{MTP_NO_PROBE}=="1|0", 
> ENV{COLOR_MEASUREMENT_DEVICE}!="1", ENV{libsane_matched}!="yes", 
> ATTR{bDeviceClass}=="00|02|06|ef|ff", PROGRAM="/usr/lib/udev/mtp-probe 
> /sys$env{DEVPATH} $attr{busnum} $attr{devnum}", RESULT=="1", 
> SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"

Save the change, if an update updates this file then the change will
need to be redone.

My mouse ws a bDeviceClass of 00 so it was being probed and the
problem was causing random disconnnects.

Others on the last have had other devices broken.

And the log file does say mtp-probe is being ran against it, likely
sending it some commands that given device does not support so locks
up.

On Mon, Oct 12, 2020 at 1:44 PM ITwrx <i...@itwrx.org> wrote:
>
> On 10/12/20 1:40 PM, Samuel Sieb wrote:
> > That's not the kernel causing the disconnect.  This is a message from
> > the kernel saying that the device disconnected and then reconnected.
>
> Right. Like when the cable is going bad, or the device itself is
> failing. This exact thing happened to me (many disconnects in the log)
> with a printer and it was just the USB cable.
> _______________________________________________
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
> Fedora Code of Conduct: 
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: 
> https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to