Services/UPS Driver drop down list too small, barely readable and missing Eaton Ellipse Pro 850 entry

Revan

Explorer
Joined
Mar 22, 2017
Messages
81
In the menu "Services -> UPS" the drop down menu list for the driver selection is too small. Some drivers have a longer description than fits in the drop-down menu. So they can hardly be read.
The drop down menu should be wider.

And one more thing. I didn't find any entry for my Eaton Ellipse Pro 850 UPS.
According to this site:

I can use the usbhid-ups driver. But there was no entry in the driver drop down menu list for usbhid-ups generic either.

So i ended up in selecting the entry "Eaton ups 5 Ellipse ECO 650/800/1200/1600 VA USB (usbhid-ups)." because Ellipse ECO sounded closes to Ellipse Pro and
it had the (usbhid-ups) driver name in brackets, but it was not readable in the drop down menu list.

The driver seems to work for my Eaton Ellipse Pro 850 so far, but it would be much better if there would be a menu entry for my
Eaton Ellipse Pro 850. I will need further testing, if everything works right.

usbconfig says about my UPS the following, i hope this information is useful for you:
Code:
usbconfig -d ugen0.2 dump_all_desc
ugen0.2: <EATON Ellipse PRO> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (20mA)

  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0110
  bDeviceClass = 0x0000  <Probed by interface class>
  bDeviceSubClass = 0x0000
  bDeviceProtocol = 0x0000
  bMaxPacketSize0 = 0x0008
  idVendor = 0x0463
  idProduct = 0xffff
  bcdDevice = 0x0100
  iManufacturer = 0x0001  <EATON>
  iProduct = 0x0002  <Ellipse PRO>
  iSerialNumber = 0x0004  <##########>
  bNumConfigurations = 0x0001

Configuration index 0

    bLength = 0x0009
    bDescriptorType = 0x0002
    wTotalLength = 0x0022
    bNumInterfaces = 0x0001
    bConfigurationValue = 0x0001
    iConfiguration = 0x0000  <no string>
    bmAttributes = 0x00a0
    bMaxPower = 0x000a

    Interface 0
      bLength = 0x0009
      bDescriptorType = 0x0004
      bInterfaceNumber = 0x0000
      bAlternateSetting = 0x0000
      bNumEndpoints = 0x0001
      bInterfaceClass = 0x0003  <HID device>
      bInterfaceSubClass = 0x0000
      bInterfaceProtocol = 0x0000
      iInterface = 0x0000  <no string>

      Additional Descriptor

      bLength = 0x09
      bDescriptorType = 0x21
      bDescriptorSubType = 0x10
       RAW dump:
       0x00 | 0x09, 0x21, 0x10, 0x01, 0x21, 0x01, 0x22, 0x79,
       0x08 | 0x04

     Endpoint 0
        bLength = 0x0007
        bDescriptorType = 0x0005
        bEndpointAddress = 0x0081  <IN>
        bmAttributes = 0x0003  <INTERRUPT>
        wMaxPacketSize = 0x0008
        bInterval = 0x0014
        bRefresh = 0x0000
        bSynchAddress = 0x0000 
 

Revan

Explorer
Joined
Mar 22, 2017
Messages
81
The system is running a while since i loaded the usbhid-ups driver for my UPS, but i get plenty of the following messaged every 2 seconds:
Code:
Aug  6 11:21:38 truenas 1 2021-08-06T11:21:38.370087+02:00 truenas.local usbhid-ups 1867 - - libusb_get_interrupt: Unknown error


2931 messages since the last 2 hours.
It's really filling up my daemon.log file.
 

Revan

Explorer
Joined
Mar 22, 2017
Messages
81
When i search for the first entryin daemon.log, i get the following:

Code:
grep -A 40 "usbhid-ups 1867 - - Startup successful"
Aug  6 09:47:33 truenas 1 2021-08-06T09:47:33.859955+02:00 truenas.local usbhid-ups 1867 - - Startup successful
Aug  6 09:47:33 truenas 1 2021-08-06T09:47:33.862295+02:00 truenas.local upsd 1868 - - listening on ::1 port 3493
Aug  6 09:47:33 truenas 1 2021-08-06T09:47:33.862497+02:00 truenas.local upsd 1868 - - listening on 127.0.0.1 port 3493
Aug  6 09:47:33 truenas 1 2021-08-06T09:47:33.862675+02:00 truenas.local upsd 1868 - - Connected to UPS [ups]: usbhid-ups-ups
Aug  6 09:47:33 truenas 1 2021-08-06T09:47:33.862704+02:00 truenas.local upsd 1868 - - /usr/local/etc/nut/cmdvartab not found - disabling descriptions
Aug  6 09:47:33 truenas 1 2021-08-06T09:47:33.863028+02:00 truenas.local upsd 1869 - - Startup successful
Aug  6 09:47:33 truenas 1 2021-08-06T09:47:33.877684+02:00 truenas.local upsmon 1875 - - Startup successful
Aug  6 09:47:33 truenas 1 2021-08-06T09:47:33.878567+02:00 truenas.local upsd 1869 - - User upsmon@127.0.0.1 logged into UPS [ups]
Aug  6 09:47:33 truenas 1 2021-08-06T09:47:33.893135+02:00 truenas.local upslog 1882 - - Startup successful
Aug  6 09:47:34 truenas 1 2021-08-06T09:47:34.032188+02:00 truenas.local collectd 1913 - - plugin_load: plugin "syslog" successfully loaded.
Aug  6 09:47:34 truenas 1 2021-08-06T09:47:34.032416+02:00 truenas.local collectd 1913 - - plugin_load: plugin "threshold" successfully loaded.
Aug  6 09:47:34 truenas 1 2021-08-06T09:47:34.032495+02:00 truenas.local collectd 1913 - - plugin_load: plugin "zfs_arc" successfully loaded.
Aug  6 09:47:34 truenas 1 2021-08-06T09:47:34.032568+02:00 truenas.local collectd 1913 - - plugin_load: plugin "nfsstat" successfully loaded.
Aug  6 09:47:34 truenas 1 2021-08-06T09:47:34.032649+02:00 truenas.local collectd 1913 - - plugin_load: plugin "write_graphite" successfully loaded.
Aug  6 09:47:34 truenas 1 2021-08-06T09:47:34.032719+02:00 truenas.local collectd 1913 - - plugin_load: plugin "cputemp" successfully loaded.
Aug  6 09:47:34 truenas 1 2021-08-06T09:47:34.032800+02:00 truenas.local collectd 1913 - - plugin_load: plugin "ctl" successfully loaded.
Aug  6 09:47:34 truenas 1 2021-08-06T09:47:34.032879+02:00 truenas.local collectd 1913 - - plugin_load: plugin "geom_stat" successfully loaded.
Aug  6 09:47:34 truenas 1 2021-08-06T09:47:34.033040+02:00 truenas.local collectd 1913 - - plugin_load: plugin "nut" successfully loaded.
Aug  6 09:47:34 truenas 1 2021-08-06T09:47:34.033961+02:00 truenas.local collectd 1913 - - plugin_load: plugin "python" successfully loaded.
Aug  6 09:47:34 truenas 1 2021-08-06T09:47:34.034134+02:00 truenas.local collectd 1913 - - plugin_load: plugin "zfs_arc_v2" successfully loaded.
Aug  6 09:47:34 truenas 1 2021-08-06T09:47:34.034657+02:00 truenas.local collectd 1913 - - plugin = nut, key = UPS, value = ups@localhost:3493
Aug  6 09:47:34 truenas 1 2021-08-06T09:47:34.034680+02:00 truenas.local collectd 1913 - - nut plugin: nut_add_ups (name = ups@localhost:3493);
Aug  6 09:47:34 truenas 1 2021-08-06T09:47:34.034694+02:00 truenas.local collectd 1913 - - plugin = syslog, key = LogLevel, value = err
Aug  6 09:47:34 truenas 1 2021-08-06T09:47:34.106365+02:00 truenas.local usbhid-ups 1867 - - libusb_get_interrupt: Unknown error
Aug  6 09:47:36 truenas 1 2021-08-06T09:47:36.133467+02:00 truenas.local usbhid-ups 1867 - - libusb_get_interrupt: Unknown error
....


This seems to be suspicous:
Code:
Aug  6 09:47:33 truenas 1 2021-08-06T09:47:33.862704+02:00 truenas.local upsd 1868 - - /usr/local/etc/nut/cmdvartab not found - disabling descriptions


The file "cmdvartab" is missing:
Code:
ls /usr/local/etc/nut 
ups.conf        upsd.conf       upsd.users      upsmon.conf     upssched.conf
 

Revan

Explorer
Joined
Mar 22, 2017
Messages
81
A little more info, that's what upsc says:

Code:
upsc UPS@localhost
battery.charge: 100
battery.charge.low: 20
battery.runtime: 4300
battery.type: PbAc
device.mfr: EATON
device.model: Ellipse PRO 850
device.serial: XXXXXXXXXX
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: /dev/ugen0.2
driver.parameter.synchronous: no
driver.version: 2.7.4
driver.version.data: MGE HID 1.39
driver.version.internal: 0.41
input.frequency: 50.0
input.transfer.high: 285
input.transfer.low: 165
input.voltage: 233.0
input.voltage.extended: no
outlet.1.desc: PowerShare Outlet 1
outlet.1.id: 2
outlet.1.status: on
outlet.1.switchable: no
outlet.2.desc: PowerShare Outlet 2
outlet.2.id: 3
outlet.2.status: on
outlet.2.switchable: yes
outlet.desc: Main Outlet
outlet.id: 1
outlet.switchable: no
output.frequency: 50.0
output.frequency.nominal: 50
output.voltage: 233.0
output.voltage.nominal: 230
ups.beeper.status: enabled
ups.delay.shutdown: 20
ups.delay.start: 30
ups.firmware: 01.16.0020
ups.load: 7
ups.mfr: EATON
ups.model: Ellipse PRO 850 
ups.power: 65
ups.power.nominal: 850
ups.productid: ffff
ups.realpower: 38
ups.serial: XXXXXXXXXX
ups.status: OL
ups.timer.shutdown: 0
ups.timer.start: 0
ups.vendorid: 0463
 

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925

Revan

Explorer
Joined
Mar 22, 2017
Messages
81
Thanks. I wonder why cmdvartab is called if it is not needed?
 

Protopia

Dabbler
Joined
Jul 11, 2023
Messages
37
@Revan I too have an Eaton Ellipse Pro UPS - was this ever fixed?
 

LoneLee

Cadet
Joined
Sep 22, 2023
Messages
3
I still get the Error "Error starting service UPS." Has anyone found a workaround?
 
Top