I purchased an APC Back-UPS BX Series BX1200MI. My computer
is connected to the UPS via USB.
Here is what I get on the command line, the message is displayed
a few seconds after restarting the service:
```
srv$ doas rcctl restart apcupsd
doas ([email protected]) password:
apcupsd(ok)
apcupsd(ok)
Broadcast Message from [email protected]
((not a tty)) at 16:16 ...
Communications with UPS lost.
```
Seems I should have read the pkg-readme *before* purchasing it:
srv$ more /usr/local/share/doc/pkg-readmes/apcupsd
+-----------------------------------------------------------------------
| Running apcupsd on OpenBSD
+-----------------------------------------------------------------------
Special notice for APC USB devices
----------------------------------
Some APC USB devices are reported to only work with apcupsd if the
device is attached to ugen(4). Normally these devices attach to upd(4)
to provide system power sensors (see "sysctl hw.sensors"). If you are
having problems using such a device with NUT, you may need to prevent
this attachment.
The option with fewest side-effects is to add the following entries to
the table in /sys/dev/usb/usb_quirks.c and build a new kernel:
{ USB_VENDOR_APC, USB_PRODUCT_APC_UPS, ANY, { UQ_BAD_HID }},
{ USB_VENDOR_APC, USB_PRODUCT_APC_UPS5G, ANY, { UQ_BAD_HID }},
Alternatively, if you do not use a USB keyboard/mouse, you could simply
disable the upd and uhidev drivers. The following line creates a new
kernel
with the relevant changes:
printf 'disable uhidev\ndisable upd\nquit\n' | config -e -o
/bsd.no-uhid /bsd
Does this mean that there is no alternative to use a fully functional
device than to rebuild my own kernel ?
--
Sylvain Saboua
looking for a PDP-11