Loading ...
Sorry, an error occurred while loading the content.

apcupsd w/ HID USB working

Expand Messages
  • Derek Taubert
    Using the input.o and hid.o modules from the kurobox kernel source, I have a fully operational apcupsd on my Linkstation talking over the front panel USB port
    Message 1 of 1 , Nov 1, 2004
    • 0 Attachment
      Using the input.o and hid.o modules from the kurobox kernel source, I
      have a fully operational apcupsd on my Linkstation talking over the
      front panel USB port to an APC Back-UPS RS 1500:

      root@HD-HLANA09:~# lsmod
      Module Size Used by Not tainted
      hid 21236 1
      input 4352 0 [hid]
      ...

      root@HD-HLANA09:~# cat /proc/bus/usb/drivers
      usbdevfs
      hub
      0- 15: usblp
      usb-storage
      96-111: hiddev
      hid

      root@HD-HLANA09:~# cat /proc/bus/usb/devices
      ...
      T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=1.5 MxCh= 0
      D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
      P: Vendor=051d ProdID=0002 Rev= 1.06
      S: Manufacturer=American Power Conversion
      S: Product=Back-UPS RS 1500 FW:8.g8 .D USB FW:g8
      S: SerialNumber=JB0432029378
      C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 24mA
      I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=hid
      E: Ad=81(I) Atr=03(Int.) MxPS= 6 Ivl=10ms
      ...

      root@HD-HLANA09:~# ls -l /dev/usb/hid
      total 0
      crw-r--r-- 1 root root 180, 96 Oct 31 10:49 hiddev0
      crw-r--r-- 1 root root 180, 97 Oct 31 10:49 hiddev1
      crw-r--r-- 1 root root 180, 106 Oct 31 10:50 hiddev10
      crw-r--r-- 1 root root 180, 107 Oct 31 10:50 hiddev11
      crw-r--r-- 1 root root 180, 108 Oct 31 10:50 hiddev12
      crw-r--r-- 1 root root 180, 109 Oct 31 10:50 hiddev13
      crw-r--r-- 1 root root 180, 110 Oct 31 10:50 hiddev14
      crw-r--r-- 1 root root 180, 111 Oct 31 10:50 hiddev15
      crw-r--r-- 1 root root 180, 98 Oct 31 10:49 hiddev2
      crw-r--r-- 1 root root 180, 99 Oct 31 10:50 hiddev3
      crw-r--r-- 1 root root 180, 100 Oct 31 10:50 hiddev4
      crw-r--r-- 1 root root 180, 101 Oct 31 10:50 hiddev5
      crw-r--r-- 1 root root 180, 102 Oct 31 10:50 hiddev6
      crw-r--r-- 1 root root 180, 103 Oct 31 10:50 hiddev7
      crw-r--r-- 1 root root 180, 104 Oct 31 10:50 hiddev8
      crw-r--r-- 1 root root 180, 105 Oct 31 10:50 hiddev9

      root@HD-HLANA09:~# apcaccess status
      APC : 001,035,0907
      DATE : Mon Nov 01 12:25:04 PST 2004
      HOSTNAME : HD-HLANA09
      RELEASE : 3.10.15
      VERSION : 3.10.15 (04 August 2004) unknown
      UPSNAME : HD-HLANA09
      CABLE : USB Cable
      MODEL : Back-UPS RS 1500
      UPSMODE : Stand Alone
      STARTTIME: Sun Oct 31 16:02:29 PST 2004
      STATUS : ONLINE
      LINEV : 121.0 Volts
      LOADPCT : 12.0 Percent Load Capacity
      BCHARGE : 100.0 Percent
      TIMELEFT : 68.0 Minutes
      MBATTCHG : 5 Percent
      MINTIMEL : 3 Minutes
      MAXTIME : 0 Seconds
      LOTRANS : 097.0 Volts
      HITRANS : 138.0 Volts
      ALARMDEL : Always
      BATTV : 26.9 Volts
      NUMXFERS : 1
      XONBATT : Sun Oct 31 16:15:51 PST 2004
      TONBATT : 0 seconds
      CUMONBATT: 23 seconds
      XOFFBATT : Sun Oct 31 16:16:14 PST 2004
      SELFTEST : NO
      STATFLAG : 0x02000008 Status Flag
      MANDATE : 2004-08-07
      SERIALNO : JB0432029378
      BATTDATE : 2001-09-25
      NOMBATTV : 24.0
      FIRMWARE : .g8 .D USB FW:g8
      APCMODEL : Back-UPS RS 1500
      END APC : Mon Nov 01 12:25:52 PST 2004

      Automatic shutdown (of the Linkstation) and the NIS server work just fine.

      I'm using /etc/modules to load the kernel modules at startup, but I suspect
      that the murasaki.usb stuff could be used to support auto loading with
      USB hotswap...

      Derek
    Your message has been successfully submitted and would be delivered to recipients shortly.