Apcupsd USB strangeitude

Andrea Venturoli ml at netfence.it
Tue Feb 19 09:20:08 UTC 2013


Hello.

For years I've been an happy user of FreeBSD + apcupsd + APC Smart-UPS 1500.
This has worked through various upgrades until a few days ago.

Right now my config is:
> # uname -a
> FreeBSD xxxxxx.xxxxx 9.0-RELEASE-p5 FreeBSD 9.0-RELEASE-p5 #2: Sat Dec  1 14:43:22 CET 2012     root at xxxxxx.xxxxx:/usr/obj/usr/src/sys/XXXXXX  i386

> # usbconfig
> ugen0.1: <OHCI root HUB ATI> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
> ugen1.1: <OHCI root HUB ATI> at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
> ugen2.1: <EHCI root HUB ATI> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE
> ugen3.1: <OHCI root HUB ATI> at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
> ugen4.1: <OHCI root HUB ATI> at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
> ugen5.1: <EHCI root HUB ATI> at usbus5, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE
> ugen6.1: <OHCI root HUB ATI> at usbus6, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
> ugen0.2: <Bluetooth2.1+EDR CLASS1 vendor 0x0a12> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON
> ugen5.2: <Mass Storage Device Generic> at usbus5, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON
> ugen3.2: <Trackball Logitech> at usbus3, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON
> ugen0.3: <Smart-UPS 1500 FW653.13.I USB FW7.3 American Power Conversion> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON
> ugen3.3: <USB COMPOUND HUB SAMSUNG> at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
> ugen3.4: <USB Optical Mouse vendor 0x192f> at usbus3, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON
> ugen3.5: <product 0x8002 SAMSUNG> at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON

> # grep -v "^#" /usr/local/etc/apcupsd/apcupsd.conf
> UPSCABLE usb
> UPSTYPE usb
>
> LOCKFILE /var/spool/lock
> ONBATTERYDELAY 6
> BATTERYLEVEL 5
> MINUTES 3
> TIMEOUT 0
> ANNOY 300
> ANNOYDELAY 60
> NOLOGON disable
> KILLDELAY 0
> NETSERVER on
> NISIP 0.0.0.0
> NISPORT 3551
> EVENTSFILE /var/log/apcupsd.events
> EVENTSFILEMAX 10
> UPSCLASS standalone
> UPSMODE disable
> STATTIME 0
> STATFILE /var/log/apcupsd.status
> LOGSTATS off
> DATATIME 0



As I said, until a few days ago, this setup would work perfectly... that 
was until I added a BT dongle (ugen0.2).
After this apparently unrelated change, apcupsd will refuse to start 9 
times out of 10 with the following:
> apcupsd[2353]: apcupsd FATAL ERROR in generic-usb.c at line 674 Cannot find UPS device -- For a link to detailed USB trouble shooting information, please see <http://www.apcupsd.com/support.html>.

Repeated "service apcupsd restart" will finally get it up and running.



Any hint or pointer?



  bye & Thanks
	av.


More information about the freebsd-ports mailing list