USB disconnect

Hi there,

my system is a openSUSE 13.2 (64-bit) at the newest patch level. I get the
Message:

kernel: usb 2-1.2: USB disconnect, device number 19
kernel: usb 2-1.2: new low-speed USB device number 20 using ehci-pci
kernel: usb 2-1.2: New USB device found …

in the journal. The device numbers are increasing.

The Mesg. came often, but not regulary. (No need to say that the connection
is not touched from something or somebody :wink:

I found a lot of similar posts but no solution. What part of of linux checks
the USB connection and throws the message? Where I can get more information?

TiA

Bernd

Is this occurring with any particular device attached? USB 2.0 or USB 3.0 devices/controller chipsets?

These commands can be helpful here.

lsusb -v
usb-devices
/usr/sbin/hwinfo --usb

BTW, best to share the output exactly as presented in a terminal, and when posting enclose the relevant output in

...[/CO..] tags. Refer to the '#' button in the forum editor.

deano ferrari wrote on Donnerstag, 2. Juli 2015 09:36 in
opensuse.org.help.hardware :

>
> toblerone;2717709 Wrote:
>> Hi there,
>>
>> my system is a openSUSE 13.2 (64-bit) at the newest patch level. I get
>> the
>> Message:
>>
>> kernel: usb 2-1.2: USB disconnect, device number 19
>> kernel: usb 2-1.2: new low-speed USB device number 20 using ehci-pci
>> kernel: usb 2-1.2: New USB device found …
>>
>> in the journal. The device numbers are increasing.
>>
>> The Mesg. came often, but not regulary. (No need to say that the
>> connection
>> is not touched from something or somebody :wink:
>>
>> I found a lot of similar posts but no solution. What part of of linux
>> checks
>> the USB connection and throws the message? Where I can get more
>> information?
>>
>> TiA
>>
>> Bernd
> Is this occurring with any particular device attached? USB 2.0 or USB
> 3.0 devices/controller chipsets?

As you see this is an UPS. It has USB 2.0 connection. If I read this right
it consume max 100 mA.

Code:

lsusb -v

Bus 002 Device 025: ID 0d9f:0004 Powercom Co., Ltd
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0d9f Powercom Co., Ltd
idProduct 0x0004
bcdDevice 0.01
iManufacturer 3 POWERCOM Co.,LTD
iProduct 1 HID UPS Battery
iSerial 2 004-1D8E-000
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 34
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 0 None
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.00
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 966
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 100
Device Status: 0x0001
Self Powered

Code:

usb-devices

T: Bus=02 Lev=02 Prnt=02 Port=01 Cnt=01 Dev#= 26 Spd=1.5 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0d9f ProdID=0004 Rev=00.01
S: Manufacturer=POWERCOM Co.,LTD
S: Product=HID UPS Battery
S: SerialNumber=004-1D8E-000
C: #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid

Code:

/usr/sbin/hwinfo --usb

12: USB 00.0: 0000 Unclassified device
[Created at usb.122]
Unique ID: tGrL.Ff1xm1HKzm8
Parent ID: FKGF.4Nx_qoDfSd7
SysFS ID: /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0
SysFS BusID: 2-1.2:1.0
Hardware Class: unknown
Model: “Powercom HID UPS Battery”
Hotplug: USB
Vendor: usb 0x0d9f “Powercom Co., Ltd”
Device: usb 0x0004 “HID UPS Battery”
Revision: “0.01”
Serial ID: “004-1D8E-000”
Driver: “usbhid”
Driver Modules: “usbhid”
Speed: 1.5 Mbps
Module Alias: “usb:v0D9Fp0004d0001dc00dsc00dp00ic03isc00ip00in00”
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #19 (Hub)

The Mesg. came often, but not regulary.

How far apart are the disconnection events? I’m just wondering if USB autosuspend might be at play here. If this is the case, it can be disabled for a particular device with a custom udev rule eg /etc/rules.d/50-suspend.rules

ACTION=="add", SUBSYSTEM=="usb", TEST=="power/control", ATTR{idVendor}=="0d9f", ATTR{idProduct}=="0004", ATTR{power/control}="on"

https://wiki.archlinux.org/index.php/Power_management#USB_autosuspend