SKP-1500a не отключается nut-ом по usb

Обсуждение программы по управления питанием ИБП POWERCOM

Moderators: AlexS, artyom, tanych

Post Reply
Message
Author
a613
Posts: 3
Joined: 13:27, 07 Jun 2012

SKP-1500a не отключается nut-ом по usb

#1 Post by a613 » 10:04, 16 Jun 2012

SKP-1500a подключен по USB для работы с NUT. Мониторинг работает без ошибок.
Проблема в том, что после разряда батареи и выключения компьютера NUT не отключает
UPS, и он продолжает работу от батареи.

$cat /etc/nut/ups.conf

Code: Select all

[powercom]
        driver = usbhid-ups
        port = auto
        desc = "Powercom"
$upsc powercom

Code: Select all

battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 30
battery.date: 2010/01/01
battery.runtime: 2816
battery.type: PbAc
device.mfr: POWERCOM Co.,LTD  
device.model: Unknown UPS (off?)
device.serial: 3A3-0000-0001  
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.version: 2.6.3
driver.version.data: PowerCOM HID 0.3
driver.version.internal: 0.35
input.frequency: 50.0
input.voltage: 222.0
input.voltage.nominal: 220
output.frequency: 50.0
output.voltage: 222.0
output.voltage.nominal: 220
ups.date: 2010/01/01
ups.load: 16
ups.mfr: POWERCOM Co.,LTD  
ups.model: Unknown UPS (off?)
ups.productid: 00a3
ups.serial: 3A3-0000-0001  
ups.status: OL
ups.test.result: Done and passed
ups.vendorid: 0d9f
Конец лога:
$ /lib/nut/usbhid-ups -u root -D -a powercom -k

Code: Select all

Network UPS Tools - Generic HID driver 0.35 (2.6.3)
USB communication driver 0.31
   0.181041	Detected a UPS: POWERCOM Co.,LTD  /SKP-1500A  S707-V1.0L
   0.182401	Initiating UPS shutdown
   0.182423	upsdrv_shutdown...
   0.182433	instcmd(shutdown.return, [NULL])
   0.182443	instcmd(load.on.delay, [NULL])
   0.182453	instcmd(shutdown.reboot, [NULL])
   0.182462	instcmd(load.off.delay, [NULL])
   0.182471	Shutdown failed!
   0.182482	upsdrv_cleanup...
Вот лог полностью: http://codepad.org/aym6wpeA

В syslog-е появляются такие сообщения:

Code: Select all

Jun 16 09:27:18 home kernel: [  762.078949] usb 1-1.4: usbfs: USBDEVFS_CONTROL failed cmd usbhid-ups rqt 161 rq 1 len 33 ret -75
Jun 16 09:27:19 home kernel: [  762.951087] usb 1-1.4: usbfs: process 2451 (usbhid-ups) did not claim interface 0 before use
Jun 16 09:27:55 home kernel: [  798.872572] usb 1-1.4: usbfs: process 2451 (usbhid-ups) did not claim interface 0 before use
Jun 16 09:28:01 home kernel: [  804.857895] usb 1-1.4: usbfs: process 2451 (usbhid-ups) did not claim interface 0 before use
Jun 16 09:28:04 home kernel: [  807.963808] usb 1-1.4: usbfs: USBDEVFS_CONTROL failed cmd usbhid-ups rqt 161 rq 1 len 33 ret -75
Jun 16 09:28:05 home kernel: [  808.850165] usb 1-1.4: usbfs: process 2451 (usbhid-ups) did not claim interface 0 before use
Jun 16 09:28:26 home kernel: [  830.063317] usb 1-1.4: usbfs: USBDEVFS_CONTROL failed cmd usbhid-ups rqt 161 rq 1 len 33 ret -75
Jun 16 09:28:27 home kernel: [  830.802945] usb 1-1.4: usbfs: process 2451 (usbhid-ups) did not claim interface 0 before use
$ /lib/nut/usbhid-ups -u root -DDDDD -a powercom -k
http://codepad.org/ke0HR0lQ

$ sudo /lib/nut/usbhid-ups -u root -a powercom -L

Code: Select all

Network UPS Tools - Generic HID driver 0.35 (2.6.3)
USB communication driver 0.31
VALUE offdelay "Set shutdown delay, in seconds (default=20)"
VALUE ondelay "Set startup delay, in seconds (default=30)"
VALUE pollfreq "Set polling frequency, in seconds, to reduce data flow (default=30)"
FLAG pollonly "Don't use interrupt pipe, only use polling"
VALUE vendor "Regular expression to match UPS Manufacturer string"
VALUE product "Regular expression to match UPS Product string"
VALUE serial "Regular expression to match UPS Serial number"
VALUE vendorid "Regular expression to match UPS Manufacturer numerical ID (4 digits hexadecimal)"
VALUE productid "Regular expression to match UPS Product numerical ID (4 digits hexadecimal)"
VALUE bus "Regular expression to match USB bus name"
FLAG explore "Diagnostic matching of unsupported UPS"
Может у кого-нибудь есть идеи как пофиксить?
Система Ubuntu 12.04, под Debian Squeeze симптомы такие же.

Post Reply