My USB UPS works incorrectly. it appears and disappears in system

Asked by Philipp

Description: Ubuntu 20.04.1 LTS
Release: 20.04

[ 2951.843390] usb 1-1.2: new low-speed USB device number 78 using ehci-pci
[ 2951.960420] usb 1-1.2: New USB device found, idVendor=0d9f, idProduct=0004, bcdDevice= 0.02
[ 2951.960427] usb 1-1.2: New USB device strings: Mfr=3, Product=1, SerialNumber=2
[ 2951.960430] usb 1-1.2: Product: HID UPS Battery
[ 2951.960433] usb 1-1.2: Manufacturer: POWERCOM Co.,LTD
[ 2951.960436] usb 1-1.2: SerialNumber: 004-0D9F-000
[ 2952.006860] hid-generic 0003:0D9F:0004.01C7: hiddev0,hidraw2: USB HID v1.00 Device [POWERCOM Co.,LTD HID UPS Battery] on usb-0000:00:1a.0-1.2/input0
[ 2955.716788] usb 1-1.2: USB disconnect, device number 78
[ 2958.499506] usb 1-1.2: new low-speed USB device number 79 using ehci-pci
[ 2958.616917] usb 1-1.2: New USB device found, idVendor=0d9f, idProduct=0004, bcdDevice= 0.02
[ 2958.616924] usb 1-1.2: New USB device strings: Mfr=3, Product=1, SerialNumber=2
[ 2958.616927] usb 1-1.2: Product: HID UPS Battery
[ 2958.616930] usb 1-1.2: Manufacturer: POWERCOM Co.,LTD
[ 2958.616933] usb 1-1.2: SerialNumber: 004-0D9F-000
[ 2958.666897] hid-generic 0003:0D9F:0004.01C8: hiddev0,hidraw2: USB HID v1.00 Device [POWERCOM Co.,LTD HID UPS Battery] on usb-0000:00:1a.0-1.2/input0
[ 2962.372449] usb 1-1.2: USB disconnect, device number 79
.
.
.
.
repeats continuously

On older ubuntu this UPS works fine

This problem is repeated on a purely installed ubuntu 20.04 desktop or server on another computer

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: libusb-1.0-0 2:1.0.23-2build1
ProcVersionSignature: Ubuntu 5.4.0-56.62-generic 5.4.73
Uname: Linux 5.4.0-56-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.13
Architecture: amd64
CasperMD5CheckResult: skip
Date: Wed Dec 23 12:53:48 2020
InstallationDate: Installed on 2013-11-27 (2583 days ago)
InstallationMedia: Ubuntu-Server 12.04.1 LTS "Precise Pangolin" - Release amd64 (20120817.3)
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=ru_RU.UTF-8
 SHELL=/bin/bash
SourcePackage: libusb-1.0
UpgradeStatus: Upgraded to focal on 2020-11-19 (33 days ago)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu libusb-1.0 Edit question
Assignee:
No assignee Edit question
Solved by:
Philipp
Solved:
Last query:
Last reply:
Revision history for this message
Philipp (philipp1981) said :
#1
Revision history for this message
Philipp (philipp1981) said :
#2

I create /etc/udev/rules.d/98-upower-hid.rules

SUBSYSTEM=="usb", ATTRS{idVendor}=="0d9f", ENV{UPOWER_VENDOR}="Powercom"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0d9f", ATTRS{idProduct}=="0004", ENV{UPOWER_BATTERY_TYPE}="INF-1500"