APC UPS (uninterruptible power supply) not detected by lsusb

I have my Umbrel plugged into an APC UPS (uninterruptible power supply). My goal is to have it gracefully shut down in the event of an extended power outage where the UPS battery also becomes depleted. I am attempting to configure it via this guide: https://github.com/PLEBNET/wiki.plebnet.org#advanced-ups-setup

I am running Umbrel version 0.3.14, Bitcoin core is 100% synced.

I have the UPS data cable plugged into one of the USB 2 (black) ports on the Pi 4. I have a Samsung T5 portable SSD plugged into one of the USB 3 (blue) ports.

  • I have apcupsd/apcupsd.conf configured as described in the above guide and restarted apcupsd
  • I try apcaccess status, but it doesn’t detect the UPS
  • I tired different USB ports, no change

apcaccess status output:

APC      : 001,018,0438
DATE     : 2021-07-05 13:54:56 +0000  
HOSTNAME : umbrel
VERSION  : 3.14.14 (31 May 2016) debian
UPSNAME  : myups
CABLE    : USB Cable
DRIVER   : USB UPS Driver
UPSMODE  : Stand Alone
STARTTIME: 2021-07-05 13:32:29 +0000  
STATUS   : COMMLOST 
MBATTCHG : 5 Percent
MINTIMEL : 3 Minutes
MAXTIME  : 0 Seconds
NUMXFERS : 0
TONBATT  : 0 Seconds
CUMONBATT: 0 Seconds
XOFFBATT : N/A
STATFLAG : 0x05000100
END APC  : 2021-07-05 13:54:56 +0000

It doesn’t appear the UPS is being detected via USB

lsusb output:

Bus 002 Device 002: ID 04e8:61f5 Samsung Electronics Co., Ltd Portable SSD T5
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Attempted to restart the node, no change. Took a look at dmesg and I’m not seeing anything related to the UPS. I’m also seeing a repeated message along the lines of,

[ 3226.797997] usb 1-1: new high-speed USB device number 105 using xhci_hcd
[ 3226.798138] xhci_hcd 0000:01:00.0: Setup ERROR: setup address command for slot 1.
[ 3227.006166] xhci_hcd 0000:01:00.0: Setup ERROR: setup address command for slot 1.
[ 3227.213993] usb 1-1: device not accepting address 105, error -22
[ 3227.214322] usb usb1-port1: unable to enumerate USB device

Seems that these messages continue, even when the UPS in unplugged (so maybe unrelated?). Unsure how to continue troubleshooting. My questions are;

  • Why is my UPS not being recognized?
  • What do these errors in dmesg mean?

Appreciate any help or insight! :blush:

1 Like

Bumping this as I’m struggling to find a solution :sleepy:

Just throwing in some links with no personal experience:

1 Like

Thanks for the reply!

After some more digging, I believe that this issue goes deeper than the UPS and is more so to do with the USB ports. At this point, I’m trying to figure out if it’s a hardware defect or a software issue.

Apart from the SSD (which is plugged into one of the USB 3.0 ports and is working fine), none of the other 3 USB ports are working (tried several different USB devices).

dmesg is continuously throwing USB related errors (even when the UPS isn’t plugged in).

[ 1777.215513] usb 1-1: new high-speed USB device number 29 using xhci_hcd
[ 1777.575684] usb 1-1: device descriptor read/64, error -71
[ 1778.115675] usb 1-1: device descriptor read/64, error -71
[ 1778.223737] usb usb1-port1: attempt power cycle
[ 1778.875531] usb 1-1: new high-speed USB device number 30 using xhci_hcd
[ 1778.875662] xhci_hcd 0000:01:00.0: Setup ERROR: setup address command for slot 1.
[ 1779.083586] xhci_hcd 0000:01:00.0: Setup ERROR: setup address command for slot 1.
[ 1779.291547] usb 1-1: device not accepting address 30, error -22
[ 1779.419541] usb 1-1: new high-speed USB device number 31 using xhci_hcd
[ 1779.419701] xhci_hcd 0000:01:00.0: Setup ERROR: setup address command for slot 1.
[ 1779.627773] xhci_hcd 0000:01:00.0: Setup ERROR: setup address command for slot 1.
[ 1779.835529] usb 1-1: device not accepting address 31, error -22
[ 1779.835969] usb usb1-port1: unable to enumerate USB device

I have the same issue. It appears Umbrel somehow locks all other USB ports except the SSD.

Someone told me the same thing, do you have a source on this?

It doesn’t really line up with a couple of points though,

  • Other people using Umbrel have reported getting this working via the steps in the PLEBNET wiki

  • I have been able to see get both devices to show up under lsusb (but only if I boot up the Pi without the SSD plugged in)

EDIT: @BhaagBoseDK - I have a more comprehensive thead going in the Raspi forum, have some additional findings there. The top lead right now is that this might be an issue with power. Haven’t reached any conclusions yet though: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=316114

Thanks, I had come across the Raspi Forum page too related to this issue.
So it seems the solution is to start with only the UPS attached.
Then attach SSD
And if you ever restart, remove the SSD before power on.

This does point to an issue with power (even though I have the original power adapter).

For now I have shutdown apcupsd because as soon as I start it, the syslog starts getting filled up with the usb related messages.

Do you know if own powered SSD were able to get over this situation?

@BhaagBoseDK

So it seems the solution is to start with only the UPS attached.
Then attach SSD
And if you ever restart, remove the SSD before power on.

This does not work, as Umbrel blocks you from entering the Dashboard UI if you don’t plug in an SSD on power-up. Your only option is to restart or shut down (which is not feasible due to the issue at hand).

I have not tried a self-powered SSD enclosure, however I have tried plugging everything in to a powered USB hub - the results are the same. So, this might not be a power issue after all.

(details of the USB hub experiment are here: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=316114&p=1893882#p1893882)