The sysutiles/apcupsd/files/pkg-message.in advises one to enable uhid(4) in kernel for the UPS-units to be recognized by the software:

   NOTE that for USB cable you must comment out the line

      device         uhid            # "Human Interface Devices"

   in your kernel configuration file and recompile the kernel.
   Your keyboard and mouse will still work.

Unfortunately, the uhid(4) driver does not attach to either of the two "Back-UPS" devices I have -- both are seen only as ugen and apctest does not want to work with that. For example, when the current unit is connected as:

   ugen4.9: <Back-UPS RS 1000G FW869.L3 .D USB FWL3 American Power
   Conversion> at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON

the software reports:

   root@narawntapu:/home/mi (118) apctest -d 1000

   2012-11-02 13:39:50 apctest 3.14.10 (13 September 2011) freebsd
   Checking configuration ...
   0.000 apcupsd: apcconfig.c:799 After config scriptdir:
   "/opt/etc/apcupsd"
   0.000 apcupsd: apcconfig.c:800 After config pwrfailpath: "/var/run"
   0.000 apcupsd: apcconfig.c:801 After config nologinpath: "/var/run"
   0.000 apcupsd: newups.c:102 write_lock at drivers.c:208
   0.000 apcupsd: drivers.c:210 Looking for driver: usb
   0.000 apcupsd: drivers.c:214 Driver dumb is configured.
   0.000 apcupsd: drivers.c:214 Driver apcsmart is configured.
   0.000 apcupsd: drivers.c:214 Driver net is configured.
   0.000 apcupsd: drivers.c:214 Driver usb is configured.
   0.000 apcupsd: drivers.c:217 Driver usb found and attached.
   0.000 apcupsd: newups.c:108 write_unlock at drivers.c:234
   0.000 apcupsd: drivers.c:236 Driver ptr=0x4231c0
   Attached to driver: usb
   sharenet.type = Network & ShareUPS Disabled
   cable.type = USB Cable
   mode.type = USB UPS Driver
   Setting up the port ...
   0.000 apcupsd: newups.c:102 write_lock at generic-usb.c:655
   0.000 apcupsd: generic-usb.c:425 Initializing libusb
   0.000 apcupsd: generic-usb.c:430 Found 1 USB busses
   0.001 apcupsd: generic-usb.c:432 Found 13 USB devices
   *0.001 apcupsd: generic-usb.c:443 /dev/usb:/dev/ugen4.9 - 051d:0002
   0.001 apcupsd: generic-usb.c:446 Trying device /dev/usb:/dev/ugen4.9
   0.002 apcupsd: hidutils.c:255 Got string of length=14: 3B1217X28266
   0.002 apcupsd: generic-usb.c:358 device='3B1217X28266', user='auto'*
   0.002 apcupsd: generic-usb.c:443 /dev/usb:/dev/ugen4.8 - 04b4:6560
   0.002 apcupsd: generic-usb.c:443 /dev/usb:/dev/ugen4.7 - 0409:005a
   0.002 apcupsd: generic-usb.c:443 /dev/usb:/dev/ugen4.6 - 0409:005a
   0.002 apcupsd: generic-usb.c:443 /dev/usb:/dev/ugen4.5 - 0461:4d03
   0.002 apcupsd: generic-usb.c:443 /dev/usb:/dev/ugen4.4 - 0409:005a
   0.002 apcupsd: generic-usb.c:443 /dev/usb:/dev/ugen4.3 - 413c:2003
   0.002 apcupsd: generic-usb.c:443 /dev/usb:/dev/ugen4.2 - 0409:005a
   0.002 apcupsd: generic-usb.c:443 /dev/usb:/dev/ugen4.1 - 0000:0000
   0.005 apcupsd: generic-usb.c:443 /dev/usb:/dev/ugen3.1 - 0000:0000
   0.005 apcupsd: generic-usb.c:443 /dev/usb:/dev/ugen2.1 - 0000:0000
   0.005 apcupsd: generic-usb.c:443 /dev/usb:/dev/ugen1.1 - 0000:0000
   0.005 apcupsd: generic-usb.c:443 /dev/usb:/dev/ugen0.1 - 0000:0000
   0.005 apcupsd: newups.c:108 write_unlock at generic-usb.c:671
   *apctest 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>.
   0.005 apcupsd: newups.c:102 write_lock at generic-usb.c:694
   0.005 apcupsd: newups.c:108 write_unlock at generic-usb.c:701
   apctest error termination completed

Working off of the neighbor's generator after Sandy, I've developed a whole new appreciation for UPS devices and would like for my system to be able to interact with one directly and automatically...

Please, advise. Thanks!

   -mi

_______________________________________________
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"

Reply via email to