[Nut-upsuser] Can't get 'load.off' to turn off power to the PC: CyberPower 1200AVR
Mark E. Hansen
meh at Winfirst.Com
Mon Sep 17 15:59:10 UTC 2007
On 09/17/07 08:33, Arjen de Korte wrote:
>>>>> Instant commands supported on UPS [myupsname]:
>>>>>
>>>>> load.off - Turn off the load immediately
>>>>> load.on - Turn on the load immediately
>>>>> shutdown.stop - Stop a shutdown in progress
>>>>> beeper.on - Enable the UPS beeper
>>>>> beeper.off - Temporarily mute the UPS beeper
>>>>
>>>> Can anyone please tell me what I'm doing wrong?
>>>
>>> Which driver are you using?
>>
>> I'm using the usbhid-ups driver.
>
> Later I realised none of the other drivers in the compatibility list,
> mentions 'load.off', so I figured that out already. This driver will look
> at the capabilities the UPS reports. If it turns out that it is giving
> false information, there is little we can do about that.
>
> Just to make sure we didn't miss something important, can you run the
> driver with debugging enabled? Running (as root) something like
>
> usbhid-ups -DD -a upsname 2>&1 > debug.log
>
> should do the trick. We're interested in the first fifteen seconds of
> output or so, so just hit ctrl-break after that time (otherwise it would
> continue until you run out of filespace).
>
>> And because I forgot to mention it before, my Linux kernel version is
>> 2.6.9.
>
> You mentioned that alright. And in this case (since the driver itself
> seems to run and is able to communicate with the UPS), it is not really an
> issue.
>
> Best regards, Arjen
>
Here is the output from usbhid-ups -DD -a myupsname:
debug level is '2'
Checking device (0764/0501) (002/002)
- VendorID: 0764
- ProductID: 0501
- Manufacturer: CPS
- Product: BC 1300D
- Serial Number: unknown
- Bus: 002
Trying to match device
Device matches
HID descriptor retrieved (Reportlen = 387)
Report descriptor retrieved (Reportlen = 387)
Found HID device
Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30 (2.2.0)
Report Descriptor size = 387
Detected a UPS: CPS/ BC 1300D
Using subdriver: APC/CyberPower HID 0.9
Path: UPS.PowerSummary.iProduct, Type: Feature, ReportID: 0x01, Offset: 0, Size: 8, Value: 1.000000
Path: UPS.PowerSummary.iSerialNumber, Type: Feature, ReportID: 0x02, Offset: 0, Size: 8, Value: 2.000000
Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature, ReportID: 0x03, Offset: 0, Size: 8, Value: 4.000000
Path: UPS.PowerSummary.iOEMInformation, Type: Feature, ReportID: 0x04, Offset: 0, Size: 8, Value: 3.000000
Path: UPS.PowerSummary.Rechargeable, Type: Feature, ReportID: 0x05, Offset: 0, Size: 8, Value: 1.000000
Path: UPS.PowerSummary.CapacityMode, Type: Feature, ReportID: 0x06, Offset: 0, Size: 8, Value: 2.000000
Path: UPS.PowerSummary.DesignCapacity, Type: Feature, ReportID: 0x07, Offset: 0, Size: 8, Value: 100.000000
Path: UPS.PowerSummary.CapacityGranularity1, Type: Feature, ReportID: 0x07, Offset: 8, Size: 8, Value: 5.000000
Path: UPS.PowerSummary.CapacityGranularity2, Type: Feature, ReportID: 0x07, Offset: 16, Size: 8, Value: 10.000000
Path: UPS.PowerSummary.WarningCapacityLimit, Type: Feature, ReportID: 0x07, Offset: 24, Size: 8, Value: 20.000000
Path: UPS.PowerSummary.RemainingCapacityLimit, Type: Feature, ReportID: 0x07, Offset: 32, Size: 8, Value: 10.000000
Path: UPS.PowerSummary.FullChargeCapacity, Type: Feature, ReportID: 0x07, Offset: 40, Size: 8, Value: 100.000000
Path: UPS.PowerSummary.RemainingCapacity, Type: Input, ReportID: 0x08, Offset: 0, Size: 8, Value: 100.000000
Path: UPS.PowerSummary.RemainingCapacity, Type: Feature, ReportID: 0x08, Offset: 0, Size: 8, Value: 100.000000
Path: UPS.PowerSummary.RunTimeToEmpty, Type: Input, ReportID: 0x08, Offset: 8, Size: 16, Value: 4702.000000
Path: UPS.PowerSummary.RunTimeToEmpty, Type: Feature, ReportID: 0x08, Offset: 8, Size: 16, Value: 4702.000000
Path: UPS.PowerSummary.RemainingTimeLimit, Type: Input, ReportID: 0x08, Offset: 24, Size: 16, Value: 300.000000
Path: UPS.PowerSummary.RemainingTimeLimit, Type: Feature, ReportID: 0x08, Offset: 24, Size: 16, Value: 300.000000
Path: UPS.PowerSummary.ConfigVoltage, Type: Feature, ReportID: 0x09, Offset: 0, Size: 8, Value: 12.000000
Path: UPS.PowerSummary.Voltage, Type: Feature, ReportID: 0x0a, Offset: 0, Size: 8, Value: 20.900000
Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Input, ReportID: 0x0b, Offset: 0, Size: 1, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.Charging, Type: Input, ReportID: 0x0b, Offset: 1, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Input, ReportID: 0x0b, Offset: 2, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Input, ReportID: 0x0b, Offset: 3, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.FullyCharged, Type: Input, ReportID: 0x0b, Offset: 4, Size: 1, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Input, ReportID: 0x0b, Offset: 5, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 0x0b, Offset: 0, Size: 1, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 0x0b, Offset: 1, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, ReportID: 0x0b, Offset: 2, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, ReportID: 0x0b, Offset: 3, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.FullyCharged, Type: Feature, ReportID: 0x0b, Offset: 4, Size: 1, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Feature, ReportID: 0x0b, Offset: 5, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, ReportID: 0x0c, Offset: 0, Size: 8, Value: 2.000000
Path: UPS.PowerSummary.iManufacturer, Type: Feature, ReportID: 0x0d, Offset: 0, Size: 8, Value: 3.000000
Path: UPS.Input.ConfigVoltage, Type: Feature, ReportID: 0x0e, Offset: 0, Size: 8, Value: 120.000000
Path: UPS.Input.Voltage, Type: Feature, ReportID: 0x0f, Offset: 0, Size: 8, Value: 123.000000
Path: UPS.Input.LowVoltageTransfer, Type: Feature, ReportID: 0x10, Offset: 0, Size: 8, Value: 90.000000
Path: UPS.Input.HighVoltageTransfer, Type: Feature, ReportID: 0x10, Offset: 8, Size: 8, Value: 140.000000
Path: UPS.Output.Voltage, Type: Feature, ReportID: 0x12, Offset: 0, Size: 8, Value: 124.000000
Path: UPS.Output.PercentLoad, Type: Feature, ReportID: 0x13, Offset: 0, Size: 8, Value: 5.000000
Path: UPS.Output.Test, Type: Feature, ReportID: 0x14, Offset: 0, Size: 8, Value: 1.000000
Path: UPS.Output.DelayBeforeShutdown, Type: Feature, ReportID: 0x15, Offset: 0, Size: 16, Value: -60.000000
Path: UPS.Output.DelayBeforeStartup, Type: Feature, ReportID: 0x16, Offset: 0, Size: 16, Value: -60.000000
Path: UPS.Output.Boost, Type: Feature, ReportID: 0x17, Offset: 0, Size: 1, Value: 0.000000
Path: UPS.Output.Overload, Type: Feature, ReportID: 0x17, Offset: 1, Size: 1, Value: 0.000000
Path: UPS.Output.ConfigActivePower, Type: Feature, ReportID: 0x18, Offset: 0, Size: 16, Value: 238.000000
Can't find object UPS.Battery.ConfigVoltage
Can't find object UPS.Battery.Temperature
Can't find object UPS.Battery.ManufacturerDate
Can't find object UPS.PowerSummary.APCBattReplaceDate
Can't find object UPS.Battery.APCBattReplaceDate
Can't find object UPS.PowerSummary.DelayBeforeShutdown
Can't find object UPS.APCGeneralCollection.APCDelayBeforeShutdown
Can't find object UPS.Battery.Test
Can't find object UPS.ManufacturerDate
Can't find object UPS.PowerSummary.ManufacturerDate
Can't find object UPS.PowerSummary.PresentStatus.ShutdownImminent
Can't find object UPS.PowerSummary.PresentStatus.Overload
Can't find object UPS.PowerSummary.PresentStatus.NeedReplacement
Can't find object UPS.PowerSummary.PresentStatus.BatteryPresent
Can't find object UPS.PowerSummary.Charging
Can't find object UPS.PowerSummary.Discharging
Can't find object UPS.PowerSummary.ACPresent
Can't find object UPS.PowerSummary.BelowRemainingCapacityLimit
Can't find object UPS.PowerSummary.ShutdownImminent
Can't find object UPS.PowerSummary.APCStatusFlag
Can't find object UPS.Output.ConfigVoltage
Can't find object UPS.BatterySystem.Battery.Test
Can't find object UPS.BatterySystem.Battery.Test
Can't find object UPS.BatterySystem.Battery.Test
Can't find object UPS.APCPanelTest
Can't find object UPS.APCPanelTest
Can't find object UPS.PowerSummary.APCPanelTest
Can't find object UPS.PowerSummary.APCPanelTest
Can't find object UPS.PowerSummary.DelayBeforeShutdown
Can't find object UPS.APCGeneralCollection.APCDelayBeforeShutdown
Can't find object UPS.PowerSummary.DelayBeforeStartup
Can't find object UPS.APCGeneralCollection.APCForceShutdown
Can't find object UPS.APCGeneralCollection.APCDelayBeforeShutdown
Can't find object UPS.PowerSummary.DelayBeforeShutdown
upsdrv_updateinfo...
dstate_init: sock /var/state/ups/usbhid-ups-stargate-ups open on fd 5
upsdrv_updateinfo...
Waiting for notifications...
=>Got 7 HID Objects...
ups.status = online
ups.status = !chrg
ups.status = !dischrg
ups.status = !lowbatt
ups.status = fullycharged
ups.status = !timelimitexp
find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.00000000
upsdrv_updateinfo...
Waiting for notifications...
=>Got 3 HID Objects...
battery.charge = 100
battery.runtime = 4702
battery.runtime.low = 300
upsdrv_updateinfo...
Waiting for notifications...
Signal 2: exiting
Closing device
--
Mark Hansen, PP-ASEL, Instrument Airplane, USUA Ultralight Pilot
Cal Aggie Flying Farmers
Sacramento, CA
More information about the Nut-upsuser
mailing list