Skip to content

Attempting to use with NUT (Ubuntu) or Synology #7

@rik-shaw

Description

@rik-shaw

Thank you for your great work, we are looking to do the same thing and I have purchased a Leonardo to match what you have done so far.

I have a goal of adding support for this to a Synology, which uses nut but with what I think are some custom wrappers around it which make it a bit confusing, so let's leave that alone for now and I am using a stock Ubuntu 22.04 install. I have added the 98-upower-hid.rules file, and I think it is reporting correctly now to the system:

$ upower -e
/org/freedesktop/UPower/devices/ups_hiddev0
/org/freedesktop/UPower/devices/DisplayDevice

$ upower -i /org/freedesktop/UPower/devices/ups_hiddev0
  native-path:          /sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.2/usbmisc/hiddev0
  vendor:               CPS
  model:                Arduino Leonardo
  serial:               PQ8BO2000467
  power supply:         yes
  updated:              Fri 10 Nov 2023 12:39:20 PM CST (16 seconds ago)
  has history:          yes
  has statistics:       yes
  ups
    present:             yes
    state:               discharging
    warning-level:       discharging
    time to empty:       1.5 hours
    percentage:          76%
    icon-name:          'battery-full-symbolic'

However, when attempting to configure nut, it seems it isn't getting detected correctly. Have you tried to use this with nut? Here are some output showing my confusion:

$ nut-scanner -U
Neon library not found. XML search disabled.
IPMI library not found. IPMI search disabled.
Scanning USB bus.
<nothing more so I think it isn't detected>

I have attempted to setup the various files in /etc/nut/ but without the scanner detecting it I think I can't get anywhere with it. Thanks for any guidance, and thanks again for the great work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions