Monday, April 17, 2006

One time too often...

... did Patricia blow the fuse on the circuit that powers the computers downstairs with the vacuum.

I got a APC BackUPS 900 RS at Central. It's supported by NUT using the hidups driver. And as I read more documentation I realize the hidups driver is for Linux only, OpenBSD ports only have NUT 2.0.0 and the generic newhidups is not built by default. Yay, let's build NUT 2.0.3 ourselves using the settings from the OpenBSD package.

./configure --sysconfdir=/etc/nut --datadir=/usr/local/share/ups --with-statepath=/var/db/nut --with-user=_ups --with-ssl --enable-strip --with-cgi --with-cgipath=/var/www/cgi-bin/nut '--with-gd-libs=-L/usr/local/lib -lgd -lpng -lz -ljpeg -lttf -lm' --with-gd-includes=-I/usr/local/include --prefix=/usr/local

Hmmm, that works, but doesn't build the newhidups driver. Appending --drivers=newhidups yields

gcc -I../include -O -Wall -Wsign-compare -s -c newhidups.c
In file included from newhidups.c:25:
libhid.h:35:17: usb.h: No such file or directory

Uh oh, trouble ahead. Revisions since 2.0.0 mostly deal with newhidups. Is this not working on OpenBSD? Great.

apcupsd to the rescue: This page explicitly mentions the BackUPS RS series. This requires a kernel rebuild and I will loose my USB keyboard. Sub-optimal, but I can live with that. Ok. It's late enough to go to bed now. I try this some other evening.

No comments: