Re: [Nut-upsuser] Eaton 5E 1100i USB UPS - failed to claim USB device error

2020-08-19 Thread Yogesh Bhanu
Hi,

An alternate suggestion instead of modifying grub config. You can try
the following

create a file "/etc/modprobe.d/ups-usbhid.conf"
append / add the line below
--8<--
options usbhid quirks=0x0463:0x:0x08
-->8--

hth


On Wed, Aug 19, 2020 at 10:40 AM Eyal Lebedinsky  wrote:
>
> On 2020-08-19 17:36, Louis van Dyk wrote:
> > Hi
> >
> > BACKGROUND INFO:
> > I have a new Eaton 5E 1100i USB UPS which their website claims is supported 
> > on Linux.  They don't provide software for it for Linux, only for Windows.
> > Referring links:
> > https://www.eaton.com/za/en-gb/catalog/backup-power-ups-surge-it-power-distribution/Eaton_5E_UPS.html
> > https://www.eaton.com/za/en-gb/skuPage.5E1100IUSB.specifications.html
> > It was manufactured in May 2020 according to the sticker on the box.
> >
> > I am running on Fedora 32 with all the latest patches.  I installed nut and 
> > nut-client from the Fedora repository, which provides version
> > nut-2.7.4-27.fc32.x86_64
> > nut-client-2.7.4-27.fc32.x86_64
> >
> > On https://networkupstools.org/stable-hcl.html I am told that it is 5* 
> > green "vendor provided protocol and hardware" using usbhis-ups as a driver.
> >
> > PROBLEM:
> > 1.  The UPS is listed in "lsusb" as
> > Bus 002 Device 101: ID 0463: MGE UPS Systems UPS
> > However, I notice that is disappears and reconnects every 19 seconds.  I've 
> > seen some posts noticing this too, and stating that it stops once it is 
> > successfully connected to the software.  I hope that is true and that I 
> > haven't been wasting effort on a faulty device.  I have tried with my 
> > printer's USB cable and seen the same thing.  I then tried it on my laptop 
> > (also on Fedora 32) with the same result.  To me this eliminates my PC and 
> > the cabling.
> >
> > 2.  The device is detected by "nut-scanner -U" as:
> >
> > root@fedora    ~]# nut-scanner -U
> >
> > Scanning USB bus.
> >
> > [nutdev1]
> >
> >   driver = "usbhid-ups"
> >
> >   port = "auto"
> >
> >   vendorid = "0463"
> >
> >   productid = ""
> >
> >   product = "5E"
> >
> >   bus = "002"
> >
> > I have put that exact info into /etc/ups/ups.conf - it's the only info not 
> > commented with a # in the file.  I changed the name to eaton5e though.
> >
> > When I then run:
> >
> > [root@fedora    ~]# /usr/sbin/usbhid-ups - -a 
> > eaton5e
> >
> > Network UPS Tools - Generic HID driver 0.41 (2.7.4)
> >
> > USB communication driver 0.33
> >
> > 0.00  debug level is '4'
> >
> > 0.002054  upsdrv_initups...
> >
> > 0.017685  Checking device (0463/) (002/120)
> >
> > 2.024057  - VendorID: 0463
> >
> > 2.024080  - ProductID: 
> >
> > 2.024083  - Manufacturer: unknown
> >
> > 2.024087  - Product: unknown
> >
> > 2.024090  - Serial Number: unknown
> >
> > 2.024093  - Bus: 002
> >
> > 2.024096  - Device release number: 0001
> >
> > 2.024099  Trying to match device
> >
> > 2.024122  Device matches
> >
> > 2.024134  failed to claim USB device: Device or resource busy
> >
> > 4.898305  detached kernel driver from USB device...
> >
> > 4.898344  nut_usb_set_altinterface: skipped usb_set_altinterface(udev, 
> > 0)
> >
> > 9.901010  Unable to get HID descriptor (Connection timed out)
> >
> > 9.901031  HID descriptor length (method 1) -1
> >
> > 9.901037  i=0, extra[i]=09, extra[i+1]=21
> >
> > 9.901044  HID descriptor, method 2: (9 bytes) => 09 21 10 01 21 01 22 
> > 25 02
> >
> > 9.901048  HID descriptor length (method 2) 549
> >
> > 9.901052  HID descriptor length 549
> >
> > 9.901370  Unable to get Report descriptor: Broken pipe
> >
> > 9.901403  Checking device (1B1C/0A17) (002/003)
> >
> > 9.901435  Failed to open device, skipping. (Permission denied)
> >
> > 9.901441  Checking device (8087/0024) (002/002)
> >
> > 9.901448  Failed to open device, skipping. (Permission denied)
> >
> > 9.901452  Checking device (1D6B/0002) (002/001)
> >
> > 9.901462  Failed to open device, skipping. (Permission denied)
> >
> > 9.901468  Checking device (1B80/B403) (001/005)
> >
> > 9.901477  Failed to open device, skipping. (Permission denied)
> >
> > 9.901483  Checking device (18F8/0F97) (001/004)
> >
> > 9.901491  Failed to open device, skipping. (Permission denied)
> >
> > 9.901497  Checking device (048D/1345) (001/003)
> >
> > 9.901506  Failed to open device, skipping. (Permission denied)
> >
> > 9.901511  Checking device (8087/0024) (001/002)
> >
> > 9.901520  Failed to open device, skipping. (Permission denied)
> >
> > 9.901526  Checking device (1D6B/0002) (001/001)
> >
> > 9.901534  Failed to open device, skipping. (Permission denied)
> >
> > 9.901540  Checking device (1D6B/0003) (004/001)
> >
> > 9.901549  Failed to open device, skipping. (Permission denied)
> >
> > 9.901555  Checking device (1D6B/0002) (003/001)
> >
> > 9.901563  

Re: [Nut-upsuser] Eaton 5E 1100i USB UPS - failed to claim USB device error

2020-08-19 Thread Charles Lepple
On Aug 19, 2020, at 6:00 AM, Louis van Dyk  wrote:
> 
> @DEVS:  Could you please re-add the code for using this UPS?  It's
> still being sold fast and furious in our region, and I'm sure more
> people are having the same problem.

Kernel quirks need to be added back by the kernel developers. 

___
Nut-upsuser mailing list
Nut-upsuser@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser

Re: [Nut-upsuser] Eaton 5E 1100i USB UPS - failed to claim USB device error

2020-08-19 Thread Eyal Lebedinsky

On 2020-08-19 17:36, Louis van Dyk wrote:

Hi

BACKGROUND INFO:
I have a new Eaton 5E 1100i USB UPS which their website claims is supported on 
Linux.  They don't provide software for it for Linux, only for Windows.
Referring links:
https://www.eaton.com/za/en-gb/catalog/backup-power-ups-surge-it-power-distribution/Eaton_5E_UPS.html
https://www.eaton.com/za/en-gb/skuPage.5E1100IUSB.specifications.html
It was manufactured in May 2020 according to the sticker on the box.

I am running on Fedora 32 with all the latest patches.  I installed nut and 
nut-client from the Fedora repository, which provides version
nut-2.7.4-27.fc32.x86_64
nut-client-2.7.4-27.fc32.x86_64

On https://networkupstools.org/stable-hcl.html I am told that it is 5* green "vendor 
provided protocol and hardware" using usbhis-ups as a driver.

PROBLEM:
1.  The UPS is listed in "lsusb" as
Bus 002 Device 101: ID 0463: MGE UPS Systems UPS
However, I notice that is disappears and reconnects every 19 seconds.  I've 
seen some posts noticing this too, and stating that it stops once it is 
successfully connected to the software.  I hope that is true and that I haven't 
been wasting effort on a faulty device.  I have tried with my printer's USB 
cable and seen the same thing.  I then tried it on my laptop (also on Fedora 
32) with the same result.  To me this eliminates my PC and the cabling.

2.  The device is detected by "nut-scanner -U" as:

root@fedora    ~]# nut-scanner -U

Scanning USB bus.

[nutdev1]

driver = "usbhid-ups"

port = "auto"

vendorid = "0463"

productid = ""

product = "5E"

bus = "002"

I have put that exact info into /etc/ups/ups.conf - it's the only info not 
commented with a # in the file.  I changed the name to eaton5e though.

When I then run:

[root@fedora    ~]# /usr/sbin/usbhid-ups - -a eaton5e

Network UPS Tools - Generic HID driver 0.41 (2.7.4)

USB communication driver 0.33

    0.00debug level is '4'

    0.002054upsdrv_initups...

    0.017685Checking device (0463/) (002/120)

    2.024057- VendorID: 0463

    2.024080- ProductID: 

    2.024083- Manufacturer: unknown

    2.024087- Product: unknown

    2.024090- Serial Number: unknown

    2.024093- Bus: 002

    2.024096- Device release number: 0001

    2.024099Trying to match device

    2.024122Device matches

    2.024134failed to claim USB device: Device or resource busy

    4.898305detached kernel driver from USB device...

    4.898344nut_usb_set_altinterface: skipped usb_set_altinterface(udev, 0)

    9.901010Unable to get HID descriptor (Connection timed out)

    9.901031HID descriptor length (method 1) -1

    9.901037i=0, extra[i]=09, extra[i+1]=21

    9.901044HID descriptor, method 2: (9 bytes) => 09 21 10 01 21 01 22 25 
02

    9.901048HID descriptor length (method 2) 549

    9.901052HID descriptor length 549

    9.901370Unable to get Report descriptor: Broken pipe

    9.901403Checking device (1B1C/0A17) (002/003)

    9.901435Failed to open device, skipping. (Permission denied)

    9.901441Checking device (8087/0024) (002/002)

    9.901448Failed to open device, skipping. (Permission denied)

    9.901452Checking device (1D6B/0002) (002/001)

    9.901462Failed to open device, skipping. (Permission denied)

    9.901468Checking device (1B80/B403) (001/005)

    9.901477Failed to open device, skipping. (Permission denied)

    9.901483Checking device (18F8/0F97) (001/004)

    9.901491Failed to open device, skipping. (Permission denied)

    9.901497Checking device (048D/1345) (001/003)

    9.901506Failed to open device, skipping. (Permission denied)

    9.901511Checking device (8087/0024) (001/002)

    9.901520Failed to open device, skipping. (Permission denied)

    9.901526Checking device (1D6B/0002) (001/001)

    9.901534Failed to open device, skipping. (Permission denied)

    9.901540Checking device (1D6B/0003) (004/001)

    9.901549Failed to open device, skipping. (Permission denied)

    9.901555Checking device (1D6B/0002) (003/001)

    9.901563Failed to open device, skipping. (Permission denied)

    9.901569No appropriate HID device found

    9.901575No matching HID UPS found


(If I run it with -u root it tries to read my headphones and other USB devices, 
but the UPS still has the same result.)

So my problem is:

    2.024099Trying to match device

    2.024122Device matches

    2.024134*failed to claim USB device: Device or resource busy*

    4.898305detached kernel driver from USB device...

    4.898344nut_usb_set_altinterface: skipped usb_set_altinterface(udev, 0)


Please could you assist me in getting the driver to load and successfully 
connect?

Many thanks,
Louis


Had this ups, turns out the special 

[Nut-upsuser] Eaton 5E 1100i USB UPS - failed to claim USB device error

2020-08-19 Thread Louis van Dyk
Hi
BACKGROUND INFO:I have a new Eaton 5E 1100i USB UPS which their website
claims is supported on Linux.  They don't provide software for it for
Linux, only for Windows.Referring links:
https://www.eaton.com/za/en-gb/catalog/backup-power-ups-surge-it-power-distribution/Eaton_5E_UPS.html
https://www.eaton.com/za/en-gb/skuPage.5E1100IUSB.specifications.html
It was manufactured in May 2020 according to the sticker on the box.
I am running on Fedora 32 with all the latest patches.  I installed nut
and nut-client from the Fedora repository, which provides version nut-
2.7.4-27.fc32.x86_64nut-client-2.7.4-27.fc32.x86_64
On https://networkupstools.org/stable-hcl.html I am told that it is 5*
green "vendor provided protocol and hardware" using usbhis-ups as a
driver.
PROBLEM:1.  The UPS is listed in "lsusb" as Bus 002 Device 101: ID
0463: MGE UPS Systems UPSHowever, I notice that is disappears and
reconnects every 19 seconds.  I've seen some posts noticing this too,
and stating that it stops once it is successfully connected to the
software.  I hope that is true and that I haven't been wasting effort
on a faulty device.  I have tried with my printer's USB cable and seen
the same thing.  I then tried it on my laptop (also on Fedora 32) with
the same result.  To me this eliminates my PC and the cabling.
2.  The device is detected by "nut-scanner -U" as:root@fedora ~]# nut-
scanner -UScanning USB bus.[nutdev1]driver = "usbhid-ups"   port =
"auto"  vendorid = "0463"   productid = ""  product = "5E"  
bus = "002"I have put that exact info into /etc/ups/ups.conf - it's the
only info not commented with a # in the file.  I changed the name to
eaton5e though.
When I then run:  [root@fedora ~]# /usr/sbin/usbhid-ups - -a
eaton5e Network UPS Tools - Generic HID driver 0.41 (2.7.4)USB
communication driver 0.33   0.00debug level is '4'   0.002054   
upsdrv_initups...   0.017685Checking device (0463/)
(002/120)   2.024057- VendorID: 0463   2.024080 - ProductID:
   2.024083 - Manufacturer: unknown   2.024087  - Product:
unknown   2.024090  - Serial Number: unknown   2.024093 - Bus:
002   2.024096  - Device release number: 0001   2.024099Trying
to match device   2.024122  Device matches   2.024134   failed
to claim USB device: Device or resource busy   4.898305 detached kernel
driver from USB device...   4.898344nut_usb_set_altinterface:
skipped usb_set_altinterface(udev, 0)   9.901010Unable to get
HID descriptor (Connection timed out)   9.901031HID descriptor
length (method 1) -1   9.901037 i=0, extra[i]=09,
extra[i+1]=21   9.901044HID descriptor, method 2: (9 bytes) =>
09 21 10 01 21 01 22 25 02   9.901048   HID descriptor length (method
2) 549   9.901052   HID descriptor length 549   9.901370Unable
to get Report descriptor: Broken pipe   9.901403Checking device
(1B1C/0A17) (002/003)   9.901435Failed to open device,
skipping. (Permission denied)   9.901441Checking device
(8087/0024) (002/002)   9.901448Failed to open device,
skipping. (Permission denied)   9.901452Checking device
(1D6B/0002) (002/001)   9.901462Failed to open device,
skipping. (Permission denied)   9.901468Checking device
(1B80/B403) (001/005)   9.901477Failed to open device,
skipping. (Permission denied)   9.901483Checking device
(18F8/0F97) (001/004)   9.901491Failed to open device,
skipping. (Permission denied)   9.901497Checking device
(048D/1345) (001/003)   9.901506Failed to open device,
skipping. (Permission denied)   9.901511Checking device
(8087/0024) (001/002)   9.901520Failed to open device,
skipping. (Permission denied)   9.901526Checking device
(1D6B/0002) (001/001)   9.901534Failed to open device,
skipping. (Permission denied)   9.901540Checking device
(1D6B/0003) (004/001)   9.901549Failed to open device,
skipping. (Permission denied)   9.901555Checking device
(1D6B/0002) (003/001)   9.901563Failed to open device,
skipping. (Permission denied)   9.901569No appropriate HID
device found   9.901575 No matching HID UPS found
(If I run it with -u root it tries to read my headphones and other USB
devices, but the UPS still has the same result.)
So my problem is:   2.024099Trying to match device   2.024122   
Device matches   2.024134   failed to claim USB device: Device or
resource busy   4.898305detached kernel driver from USB
device...   4.898344nut_usb_set_altinterface: skipped
usb_set_altinterface(udev, 0)
Please could you assist me in getting the driver to load and
successfully connect?
Many thanks,Louis

___
Nut-upsuser mailing list
Nut-upsuser@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser