Karol Olszewski
2018-Aug-22 17:20 UTC
[Nut-upsuser] APC Back-UPS CS 650 offdelay and startdelay
W dniu 22.08.2018 o 14:41, Charles Lepple pisze:> /lib/nut/usbhid-ups -a apc -DDD -kPlease see attachement. -- Karol Olszewski ipflow.pl -------------- next part -------------- A non-text attachment was scrubbed... Name: APC_BackUPS_CS_650_fsd.log.gz Type: application/gzip Size: 5735 bytes Desc: not available URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20180822/e5b014d0/attachment.gz>
Charles Lepple
2018-Aug-23 00:16 UTC
[Nut-upsuser] APC Back-UPS CS 650 offdelay and startdelay
On Aug 22, 2018, at 1:20 PM, Karol Olszewski <karol.olszewski at ipflow.pl> wrote:> > W dniu 22.08.2018 o 14:41, Charles Lepple pisze: >> /lib/nut/usbhid-ups -a apc -DDD -k > Please see attachement.1.872180 Report[buf]: (2 bytes) => 40 00 1.872196 Path: UPS.Output.APCDelayBeforeReboot, Type: Feature, ReportID: 0x40, Offset: 0, Size: 8, Value: 0 [...] 1.872439 Initiating UPS shutdown 1.872455 upsdrv_shutdown... 1.872470 instcmd(shutdown.return, [NULL]) 1.884650 Report[set]: (2 bytes) => 40 01 For some reason, this is being hardcoded to 1: drivers/apc-hid.c- /* used by APC BackUPS CS */ drivers/apc-hid.c: { "shutdown.return", 0, 0, "UPS.Output.APCDelayBeforeReboot", NULL, "1", HU_TYPE_CMD, NULL }, Can you rebuild the NUT drivers as described here? https://github.com/networkupstools/nut/wiki/Building-NUT-on-Debian,-Raspbian-and-Ubuntu
Karol Olszewski
2018-Aug-23 14:46 UTC
[Nut-upsuser] APC Back-UPS CS 650 offdelay and startdelay
W dniu 23.08.2018 o 02:16, Charles Lepple pisze:> > For some reason, this is being hardcoded to 1: > > drivers/apc-hid.c- /* used by APC BackUPS CS */ > drivers/apc-hid.c: { "shutdown.return", 0, 0, "UPS.Output.APCDelayBeforeReboot", NULL, "1", HU_TYPE_CMD, NULL }, > > Can you rebuild the NUT drivers as described here? https://github.com/networkupstools/nut/wiki/Building-NUT-on-Debian,-Raspbian-and-UbuntuOk, this is version from today github sync and compile (Ubuntu 18.04): Network UPS Tools - Generic HID driver 0.42 (2.7.4-490-g5dc80953) /lib/nut/usbhid-ups -a apc -DDD -k > Log attachement. root at vbox1804:/home/karol# upsc apc at localhost | grep driver.param Init SSL without certificate database driver.parameter.offdelay: 90 driver.parameter.ondelay: 120 driver.parameter.pollfreq: 30 driver.parameter.pollinterval: 2 driver.parameter.port: auto driver.parameter.synchronous: no UPS cut off power after 60sec after FSD command from driver, when power back start after ~2sec. -- Karol Olszewski ipflow.pl -------------- next part -------------- A non-text attachment was scrubbed... Name: APC_log_git.log.gz Type: application/gzip Size: 6317 bytes Desc: not available URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20180823/d2dc275f/attachment.gz>