<div dir="ltr"><div>You wanted fixed code, so you should download what was proposed for the PR that may fix or not fix the problem. It was not merged yet.</div><div><br></div><div>TBH I've never tried to download archives prepared by GitHub on its own, but assuming from your earlier examples that this way of code delivery is usable, you need to get this:</div><div><br></div><div><a href="https://github.com/networkupstools/nut/pull/2955">https://github.com/networkupstools/nut/pull/2955</a></div><div>=> <a class="gmail-author gmail-Link--secondary gmail-text-bold gmail-css-truncate gmail-css-truncate-target expandable" href="https://github.com/jimklimov">jimklimov</a>
wants to merge
<span class="gmail-js-updating-pull-request-commits-count">5</span>
commits into
<span title="networkupstools/nut:master" class="gmail-commit-ref gmail-css-truncate gmail-user-select-contain expandable gmail-base-ref"><a title="networkupstools/nut:master" class="gmail-no-underline" href="https://github.com/networkupstools/nut/tree/master"><span class="gmail-css-truncate-target">networkupstools</span>:<span class="gmail-css-truncate-target">master</span></a></span><span></span>
from
<span title="jimklimov/nut:sdcommands-args" class="gmail-commit-ref gmail-css-truncate gmail-user-select-contain expandable gmail-head-ref"><a title="jimklimov/nut:sdcommands-args" class="gmail-no-underline" href="https://github.com/jimklimov/nut/tree/sdcommands-args"><span class="gmail-css-truncate-target">jimklimov</span>:<span class="gmail-css-truncate-target">sdcommands-args</span></a></span><span><span>
<span aria-label="Copy" value="jimklimov:sdcommands-args" class="gmail-Link--onHover gmail-js-copy-branch gmail-color-fg-muted gmail-d-inline-block gmail-ml-1" tabindex="0" role="button">
</span></span></span><span><span><br> <div class="gmail-sr-only"></div>
</span></span>=> <a href="https://github.com/jimklimov/nut/tree/sdcommands-args">https://github.com/jimklimov/nut/tree/sdcommands-args</a></div><div>=> Code => ZIP => <a href="https://github.com/jimklimov/nut/archive/refs/heads/sdcommands-args.zip">https://github.com/jimklimov/nut/archive/refs/heads/sdcommands-args.zip</a><br><br></div><div>But why would you not just use git? :)<br><br></div><div>:; git clone
<a href="https://github.com/jimklimov/nut">https://github.com/jimklimov/nut</a>
-b sdcommands-args</div><div>:; cd nut</div><div>...</div><div><br></div><div>Hope this helps,</div><div>Jim Klimov</div><div><br></div><div>PS: Inspired by that specific change, a bigger PR was also proposed at <a href="https://github.com/networkupstools/nut/pull/2957">https://github.com/networkupstools/nut/pull/2957</a> to also consistently log the processing of instcmd and setvar operations. Previously all drivers tended to do this differently, which made troubleshooting harder. Now they would all follow the same logic and message structure, at least in broad strokes, and specifically would try to syslog any operations that can impact power delivery to the useful load.</div><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, May 15, 2025 at 3:44 PM Alexey Korobeinikov <<a href="mailto:alexey@fseafood.com">alexey@fseafood.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div>
I downlod this:<br>
<a href="https://github.com/networkupstools/nut" target="_blank">https://github.com/networkupstools/nut</a><br>
Code->Download ZIP.<br>
<br>
<br>
<div>15.05.2025 16:17, Jim Klimov:<br>
</div>
<blockquote type="cite">
<div dir="auto">Seems you did not build the PR source branch,
usbhid-ups version there should be 0.64.
<div dir="auto"><br>
</div>
<div dir="auto">Jim</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Thu, May 15, 2025, 13:04
Alexey Korobeinikov <<a href="mailto:alexey@fseafood.com" target="_blank">alexey@fseafood.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div> After reseting usb (<span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">usbreset
0d9f:0004</span>), I can connect to UPS. But still have
problem to shuting down the UPS:</span><br>
<br>
<span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">/usr/local/ups/bin/usbhid-ups
-DDDD -a UPS -k </span><br>
Network UPS Tools 2.8.3.1 (development iteration after
2.8.3) - Generic HID driver 0.63 <br>
USB communication driver (libusb 1.0) 0.50 <br>
0.000000 [D1] upsdrv_makevartable... <br>
0.000078 [D1] Using USB implementation:
libusb-1.0.26 (API: 0x01000109) <br>
0.000238 [D3] main_arg: var='driver'
val='usbhid-ups' <br>
0.000253 [D3] main_arg: var='vendorid' val='0d9f' <br>
0.000272 [D3] main_arg: var='productid' val='0004' <br>
0.000289 [D3] main_arg: var='port' val='auto' <br>
0.000310 [D3] main_arg: var='pollinterval' val='2'</span><span style="font-family:monospace"> <br>
...<br>
</span><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"> 0.004914
[D2] Checking device 4 of 10 (0D9F/0004) </span><br>
0.019235 [D2] - VendorID: 0d9f <br>
0.019276 [D2] - ProductID: 0004 <br>
0.019282 [D2] - Manufacturer: POWERCOM Co.,LTD <br>
0.019288 [D2] - Product: HID UPS Battery <br>
0.019293 [D2] - Serial Number: 004-0D9F-000 <br>
0.019298 [D2] - Bus: 006 <br>
0.019303 [D2] - Bus Port: 002 <br>
0.019308 [D2] - Device: 003 <br>
0.019313 [D2] - Device release number: 0002 <br>
0.019318 [D2] Trying to match device <br>
0.019327 [D2] match_function_subdriver (non-SHUT
mode): matching a device... <br>
0.019347 [D3] match_function_regex: matching a
device... <br>
0.019420 [D2] Device matches <br>
0.019438 [D2] Reading configuration descriptor 1 of
1 <br>
0.019479 [D3] libusb_kernel_driver_active() returned
0: Success <br>
0.019516 [D2] Claimed interface 0 successfully <br>
0.019533 [D3] nut_libusb_set_altinterface: skipped
libusb_set_interface_alt_setting(udev, 0, 0) <br>
0.021265 [D2] Retrieved HID descriptor (expected 9,
got 9) <br>
0.021306 [D3] HID descriptor, method 1: (9 bytes)
=> 09 21 00 01 00 01 22 e4 03 <br>
0.021314 [D3] HID descriptor length (method 1) 996 <br>
0.021330 [D4] i=0, extra[i]=09, extra[i+1]=21 <br>
0.021344 [D3] HID descriptor, method 2: (9 bytes)
=> 09 21 00 01 00 01 22 e4 03 <br>
0.021369 [D3] HID descriptor length (method 2) 996 <br>
0.021381 [D2] HID descriptor length 996 <br>
0.062245 [D2] Report Descriptor size = 996 <br>
0.062294 [D3] Report Descriptor: (996 bytes) =>
05 84 09 04 a1 01 09 24 a1 02 85 01 09 fe <br>
0.062308 [D3] 79 01 75 08 95 01 15 00 26 ff 00 b1
22 85 02 09 ff 79 02 b1 22 05 85 85 05 <br>
0.062322 [D3] 09 89 79 04 b1 22 85 07 09 8b b1 22
85 08 09 2c 25 03 b1 22 85 09 09 83 25 <br>
0.062335 [D3] 64 b1 22 09 67 b1 22 85 0e 09 66 81
22 09 66 b1 a2 85 0b 09 8c b1 22 85 0c <br>
0.062347 [D3] 09 29 b1 a2 85 0d 09 85 75 10 27 ff
ff 00 00 b1 a2 85 37 09 68 81 22 09 68 <br>
0.062363 [D3] b1 a2 05 84 85 0f 09 57 75 10 16 00
00 27 ff ff 00 00 b1 a2 85 10 09 56 75 <br>
0.062380 [D3] 20 16 00 00 27 9f 86 01 00 b1 a2 85
11 09 40 75 10 16 64 00 26 f0 00 b1 22 <br>
0.062395 [D3] 85 12 09 30 75 10 16 00 00 26 40 01
b1 a2 85 2c 09 36 75 08 25 5a b1 a2 85 <br>
0.062410 [D3] 13 09 5a 75 08 15 00 25 03 b1 a2 09
02 a1 02 05 85 85 0a 09 44 75 01 15 00 <br>
0.062437 [D3] 25 01 81 a2 09 44 b1 a2 09 45 81 a2
09 45 b1 a2 09 d0 81 a2 09 d0 b1 a2 09 <br>
0.062455 [D3] d1 81 a2 09 d1 b1 a2 09 42 81 a2 09
42 b1 a2 09 43 81 a2 09 43 b1 a2 09 4b <br>
0.062474 [D3] 81 a2 09 4b b1 a2 09 db 81 a2 09 db
b1 a2 05 84 09 68 81 a2 09 68 b1 a2 09 <br>
0.062491 [D3] 69 81 a2 09 69 b1 a2 09 73 81 a2 09
73 b1 a2 09 65 81 a2 09 65 b1 a2 95 03 <br>
0.062510 [D3] 81 01 b1 01 95 01 06 86 ff 09 80 81
a2 09 80 b1 a2 c0 c0 05 84 09 12 a1 00 <br>
0.062526 [D3] 85 15 09 58 75 08 25 66 b1 a2 85 16
09 70 75 08 25 03 b1 a2 05 85 85 17 09 <br>
0.062544 [D3] 85 75 10 27 ff ff 00 00 b1 a2 85 18
09 66 75 08 15 00 25 64 b1 a2 05 84 85 <br>
0.062559 [D3] 19 09 40 75 10 16 00 0c 26 00 30 b1
22 85 1a 09 30 75 10 16 00 09 26 00 24 <br>
0.062577 [D3] b1 a2 85 1b 09 56 75 20 16 00 00 27
9f 86 01 00 b1 a2 85 2d 09 36 75 08 25 <br>
0.062594 [D3] 5a b1 a2 c0 05 84 09 1a a1 00 85 1c
09 40 75 10 16 64 00 26 f0 00 b1 22 85 <br>
0.062612 [D3] 1d 09 30 75 10 16 00 00 26 40 01 b1
a2 85 2e 09 30 75 10 16 00 00 26 40 01 <br>
0.062627 [D3] b1 a2 85 1e 09 32 75 08 15 00 25 46
b1 a2 c0 05 84 09 1c a1 00 85 2f 09 41 <br>
0.062645 [D3] 75 08 15 01 25 0c b1 22 85 1f 09 35
75 08 15 00 25 64 b1 a2 85 20 09 40 75 <br>
0.062664 [D3] 10 16 64 00 26 f0 00 b1 22 85 21 09
30 75 10 16 00 00 26 40 01 b1 a2 85 30 <br>
0.062681 [D3] 09 42 75 08 15 32 25 3c b1 22 85 22
09 32 75 08 15 00 25 46 b1 a2 85 23 09 <br>
0.062699 [D3] 57 75 08 15 00 25 12 b1 a2 85 24 09
56 75 20 16 00 00 27 9f 86 01 00 b1 a2 <br>
0.062716 [D3] c0 05 84 85 06 09 01 79 05 b1 a2 85
25 09 5a 75 08 15 00 25 03 b1 a2 09 02 <br>
0.062736 [D3] a1 02 05 85 85 26 09 44 75 01 15 00
25 01 b1 a2 09 45 b1 a2 09 d0 b1 a2 09 <br>
0.062752 [D3] d1 b1 a2 09 42 b1 a2 09 43 b1 a2 09
4b b1 a2 09 db b1 a2 05 84 09 68 b1 a2 <br>
0.062768 [D3] 09 69 b1 a2 09 73 b1 a2 09 65 b1 a2
09 6e b1 a2 09 6f b1 a2 09 71 b1 a2 06 <br>
0.062791 [D3] 86 ff 09 80 b1 a2 c0 85 27 05 84 09
69 75 08 15 00 25 01 b1 a2 09 1e a1 00 <br>
0.062807 [D3] 85 a0 09 01 75 08 95 07 15 00 26 ff
00 b1 03 85 a1 09 01 75 08 95 07 15 00 <br>
0.062835 [D3] 26 ff 00 b1 03 85 a2 09 01 75 08 95
07 15 00 26 ff 00 b1 03 85 a3 09 01 75 <br>
0.062853 [D3] 08 95 07 15 00 26 ff 00 b1 03 85 a4
09 01 75 08 95 07 15 00 26 ff 00 b1 03 <br>
0.062871 [D3] 85 a5 09 01 75 08 95 07 15 00 26 ff
00 b1 03 85 a6 09 01 75 08 95 07 15 00 <br>
0.062889 [D3] 26 ff 00 b1 03 85 a7 09 01 75 08 95
07 15 00 26 ff 00 b1 03 85 a8 09 01 75 <br>
0.062905 [D3] 08 95 07 15 00 26 ff 00 b1 03 85 a9
09 01 75 08 95 07 15 00 26 ff 00 b1 03 <br>
0.062923 [D3] 85 aa 09 01 75 08 95 07 15 00 26 ff
00 b1 03 85 ab 09 01 75 08 95 07 15 00 <br>
0.062940 [D3] 26 ff 00 b1 03 85 ac 09 01 75 08 95
07 15 00 26 ff 00 b1 03 85 ad 09 01 75 <br>
0.062960 [D3] 08 95 07 15 00 26 ff 00 b1 03 85 ae
09 01 75 08 95 07 15 00 26 ff 00 b1 03 <br>
0.062977 [D3] 85 31 09 01 75 08 95 01 15 00 26 ff
00 b1 03 85 32 09 01 75 08 95 01 15 00 <br>
0.062990 [D3] 26 ff 00 b1 03 c0 c0 <br>
0.063197 Using subdriver: PowerCOM HID 0.71 <br>
0.063214 [D1] 102 HID objects found <br>
0.063229 [D4] Entering libusb_get_report <br>
0.064157 [D3] Report[get]: (2 bytes) => 01 01 <br>
0.064197 [D1] Path: UPS.PowerSummary.iProduct, Type:
Feature, ReportID: 0x01, Offset: 0, Size: 8, Value: 1 <br>
0.064209 [D4] Entering libusb_get_report <br>
0.066271 [D3] Report[get]: (2 bytes) => 02 02 <br>
0.066311 [D1] Path: UPS.PowerSummary.iSerialNumber,
Type: Feature, ReportID: 0x02, Offset: 0, Size: 8, Value:
2 <br>
0.066320 [D4] Entering libusb_get_report<br>
...<br>
</span><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"> 0.186774
[D4] Entering libusb_get_report </span><br>
0.188120 nut_libusb_get_report: Success <br>
0.188164 [D1] Can't retrieve Report 2d: Success <br>
0.188182 [D4] string_to_path: depth = 3 <br>
0.188197 [D4] HIDGetItemData: FindObject_with_Path()
failed to locate
'PowercomUPS.PowercomBatterySystem.PowercomVoltage' <br>
0.188210 [D4] string_to_path: depth = 4<br>
</span>...<br>
<span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"> 0.188755
Initiating UPS [UPS] shutdown </span><br>
0.188770 [D1] loop_shutdown_commands: call
do_loop_shutdown_commands() with driver-default sdcommands
<br>
0.188780 [D1] Starting
do_loop_shutdown_commands(shutdown.default), call depth
1... <br>
0.188791 [D1] upsdrv_shutdown... <br>
0.188802 [D1] Starting
do_loop_shutdown_commands(shutdown.return,shutdown.reboot,load.off.delay,shutdown.stayoff),
call depth 2... <br>
0.188813 [D1] instcmd(shutdown.return, [NULL]) <br>
0.188822 [D3] instcmd: using Path
'UPS.PowerSummary.DelayBeforeShutdown' <br>
0.188833 [D2] instcmd: shutdown.return requires an
explicit parameter <br>
<br>
0.188842 [D1] instcmd(shutdown.reboot, [NULL]) <br>
0.188856 [D2] find_nut_info: unknown info type:
shutdown.reboot <br>
0.188866 [D3] instcmd: cmdname 'shutdown.reboot' not
found; checking for alternatives <br>
0.188879 [D2] instcmd: info element unavailable
shutdown.reboot <br>
<br>
0.188890 [D1] instcmd(load.off.delay, [NULL]) <br>
0.188902 [D2] find_nut_info: unknown info type:
load.off.delay <br>
0.188911 [D3] instcmd: cmdname 'load.off.delay' not
found; checking for alternatives <br>
0.188921 [D2] instcmd: info element unavailable
load.off.delay <br>
<br>
0.188935 [D1] instcmd(shutdown.stayoff, [NULL]) <br>
0.188945 [D3] instcmd: using Path
'UPS.PowerSummary.DelayBeforeShutdown' <br>
0.188956 [D2] instcmd: shutdown.stayoff requires an
explicit parameter <br>
<br>
0.188966 [D1] Ending
do_loop_shutdown_commands(shutdown.return,shutdown.reboot,load.off.delay,shutdown.stayoff),
call depth 2: return-code 2 <br>
0.188974 Shutdown failed! <br>
0.188986 [D1] set_exit_flag: raising exit flag due
to signal -1 <br>
0.188996 [D1] do_loop_shutdown_commands(): command
'shutdown.default' was handled successfully <br>
0.189005 [D1] Ending
do_loop_shutdown_commands(shutdown.default), call depth 1:
return-code 0 <br>
0.189014 UPS [UPS]: shutdown request was successful
with 'shutdown.default' <br>
0.189022 [D1] set_exit_flag: raising exit flag due
to programmatic abort: EXIT_FAILURE <br>
0.189040 [D1] upsdrv_cleanup... <br>
0.189311 [D1] upsnotify: failed to notify about
state NOTIFY_STATE_STOPPING: no notification tech defined,
will not spam more about it <br>
0.189331 [D1] On systems without service units,
consider `export NUT_QUIET_INIT_UPSNOTIFY=true`<br>
</span><br>
The UPS didn't shut down, just still BEEP because on
battery ( >3 min wait )...<br>
<br>
<div>13.05.2025 18:31, Jim Klimov:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Check <a href="https://github.com/networkupstools/nut/pull/2955" rel="noreferrer" target="_blank">https://github.com/networkupstools/nut/pull/2955</a>
please.</div>
<div><br>
</div>
<div>Jim</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, May 12, 2025
at 12:04 PM Jim Klimov <<a href="mailto:jimklimov%2Bnut@gmail.com" rel="noreferrer" target="_blank">jimklimov+nut@gmail.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div>Hoped to look into this just today, if nobody
beat me to it yet.</div>
<div><br>
</div>
<div>Jim</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, May 12,
2025 at 11:54 AM Alexey Korobeinikov <<a href="mailto:alexey@fseafood.com" rel="noreferrer" target="_blank">alexey@fseafood.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div> <span lang="en"><span><span>Are there any
chances that this error can be fixed?</span></span></span><br>
<br>
<div>06.05.2025 18:19, Alexey Korobeinikov:<br>
</div>
<blockquote type="cite"> Hi! Thank You!<br>
<br>
The UPS behavior are chages with NUT v.2.8.2
but more strange<br>
<br>
After this command (if power cord unpluged)<br>
/usr/local/ups/bin/usbhid-ups -DDDD -a UPS -k<br>
<br>
....<br>
0.188173 [D4] string_to_path: depth = 3<br>
0.188187 [D4] string_to_path: depth = 3<br>
0.188199 [D4] string_to_path: depth = 3<br>
0.188211 [D4] string_to_path: depth = 3<br>
0.188246 [D2] find_nut_info: unknown
info type: load.off.delay<br>
0.188267 [D2] find_nut_info: unknown
info type: load.off.delay<br>
0.188280 Initiating UPS shutdown<br>
0.188290 [D1] upsdrv_shutdown...<br>
0.188298 [D1] instcmd(shutdown.return,
[NULL])<br>
0.188316 [D3] instcmd: using Path
'UPS.PowerSummary.DelayBeforeShutdown'<br>
0.188332 [D3] powercom_shutdown_nuf:
value = (null), command = 5E00<br>
0.224970 [D3] Report[set]: (3 bytes)
=> 0f 00 5e<br>
0.225003 [D4] Set report succeeded<br>
0.225012 [D3] instcmd: SUCCEED<br>
<br>
The UPS are start double beeping every 2
seconds, but didn't turn off himself ( 2
minutes wait )<br>
UPS are still beeping if power are restored<br>
<br>
Status are:<br>
# upsc ups@localhost<br>
battery.charge: 100<br>
battery.charge.low: 70<br>
battery.charge.warning: 30<br>
battery.mfr.date: 2014/01/15<br>
battery.runtime: 800<br>
battery.type: PbAc<br>
device.mfr: POWERCOM Co.,LTD<br>
device.model: HID UPS Battery<br>
device.serial: 004-0D9F-000<br>
device.type: ups<br>
driver.debug: 0<br>
driver.flag.allow_killpower: 0<br>
driver.flag.ignorelb: enabled<br>
<a href="http://driver.name" rel="noreferrer" target="_blank">driver.name</a>:
usbhid-ups<br>
driver.parameter.offdelay: 30<br>
driver.parameter.ondelay: 60<br>
driver.parameter.override.battery.charge.low:
70<br>
driver.parameter.pollfreq: 30<br>
driver.parameter.pollinterval: 2<br>
driver.parameter.port: auto<br>
driver.parameter.productid: 0004<br>
driver.parameter.synchronous: auto<br>
driver.parameter.vendorid: 0d9f<br>
driver.state: quiet<br>
driver.version: 2.8.2<br>
driver.version.data: PowerCOM HID 0.7<br>
driver.version.internal: 0.53<br>
driver.version.usb: libusb-1.0.26 (API:
0x1000109)<br>
input.frequency: 50.0<br>
input.voltage: 224.0<br>
input.voltage.nominal: 220<br>
output.frequency: 50.0<br>
output.voltage: 224.0<br>
output.voltage.nominal: 220<br>
ups.beeper.status: enabled<br>
ups.date: 2014/01/15<br>
ups.delay.shutdown: 30<br>
ups.delay.start: 60<br>
ups.load: 1<br>
ups.mfr: POWERCOM Co.,LTD<br>
ups.model: HID UPS Battery<br>
ups.productid: 0004<br>
ups.serial: 004-0D9F-000<br>
ups.status: OL<br>
ups.test.result: Done and passed<br>
ups.timer.shutdown: 269<br>
ups.timer.start: 0<br>
ups.vendorid: 0d9f<br>
root@vTEMPLATE8:/var/log# upsc ups@localhost<br>
battery.charge: 100<br>
battery.charge.low: 70<br>
battery.charge.warning: 30<br>
battery.mfr.date: 2014/01/15<br>
battery.runtime: 800<br>
battery.type: PbAc<br>
device.mfr: POWERCOM Co.,LTD<br>
device.model: HID UPS Battery<br>
device.serial: 004-0D9F-000<br>
device.type: ups<br>
driver.debug: 0<br>
driver.flag.allow_killpower: 0<br>
driver.flag.ignorelb: enabled<br>
<a href="http://driver.name" rel="noreferrer" target="_blank">driver.name</a>:
usbhid-ups<br>
driver.parameter.offdelay: 30<br>
driver.parameter.ondelay: 60<br>
driver.parameter.override.battery.charge.low:
70<br>
driver.parameter.pollfreq: 30<br>
driver.parameter.pollinterval: 2<br>
driver.parameter.port: auto<br>
driver.parameter.productid: 0004<br>
driver.parameter.synchronous: auto<br>
driver.parameter.vendorid: 0d9f<br>
driver.state: quiet<br>
driver.version: 2.8.2<br>
driver.version.data: PowerCOM HID 0.7<br>
driver.version.internal: 0.53<br>
driver.version.usb: libusb-1.0.26 (API:
0x1000109)<br>
input.frequency: 50.0<br>
input.voltage: 224.0<br>
input.voltage.nominal: 220<br>
output.frequency: 50.0<br>
output.voltage: 224.0<br>
output.voltage.nominal: 220<br>
ups.beeper.status: enabled<br>
ups.date: 2014/01/15<br>
ups.delay.shutdown: 30<br>
ups.delay.start: 60<br>
ups.load: 1<br>
ups.mfr: POWERCOM Co.,LTD<br>
ups.model: HID UPS Battery<br>
ups.productid: 0004<br>
ups.serial: 004-0D9F-000<br>
ups.status: OL<br>
ups.test.result: Done and passed<br>
ups.timer.shutdown: 89<br>
ups.timer.start: 0<br>
ups.vendorid: 0d9f<br>
root@vTEMPLATE8:/var/log# upsc ups@localhost<br>
battery.charge: 100<br>
battery.charge.low: 70<br>
battery.charge.warning: 30<br>
battery.mfr.date: 2014/01/15<br>
battery.runtime: 800<br>
battery.type: PbAc<br>
device.mfr: POWERCOM Co.,LTD<br>
device.model: HID UPS Battery<br>
device.serial: 004-0D9F-000<br>
device.type: ups<br>
driver.debug: 0<br>
driver.flag.allow_killpower: 0<br>
driver.flag.ignorelb: enabled<br>
<a href="http://driver.name" rel="noreferrer" target="_blank">driver.name</a>:
usbhid-ups<br>
driver.parameter.offdelay: 30<br>
driver.parameter.ondelay: 60<br>
driver.parameter.override.battery.charge.low:
70<br>
driver.parameter.pollfreq: 30<br>
driver.parameter.pollinterval: 2<br>
driver.parameter.port: auto<br>
driver.parameter.productid: 0004<br>
driver.parameter.synchronous: auto<br>
driver.parameter.vendorid: 0d9f<br>
driver.state: quiet<br>
driver.version: 2.8.2<br>
driver.version.data: PowerCOM HID 0.7<br>
driver.version.internal: 0.53<br>
driver.version.usb: libusb-1.0.26 (API:
0x1000109)<br>
input.frequency: 50.0<br>
input.voltage: 226.0<br>
input.voltage.nominal: 220<br>
output.frequency: 50.0<br>
output.voltage: 226.0<br>
output.voltage.nominal: 220<br>
ups.beeper.status: enabled<br>
ups.date: 2014/01/15<br>
ups.delay.shutdown: 30<br>
ups.delay.start: 60<br>
ups.load: 1<br>
ups.mfr: POWERCOM Co.,LTD<br>
ups.model: HID UPS Battery<br>
ups.productid: 0004<br>
ups.serial: 004-0D9F-000<br>
ups.status: OL<br>
ups.test.result: Done and passed<br>
ups.timer.shutdown: 3148<br>
ups.timer.start: 0<br>
ups.vendorid: 0d9f<br>
<br>
And strange with timer parametr that are
changes cycling:<br>
ups.timer.shutdown: 3570<br>
ups.timer.shutdown: 2430<br>
ups.timer.shutdown: 1710<br>
...<br>
ups.timer.shutdown: 870<br>
ups.timer.shutdown: 3629<br>
ups.timer.shutdown: 2729<br>
ups.timer.shutdown: 1829<br>
...<br>
ups.timer.shutdown: 89<br>
ups.timer.shutdown: 3148<br>
...<br>
<br>
the ups.conf are:<br>
[UPS]<br>
driver = usbhid-ups<br>
vendorid = 0d9f<br>
productid = 0004<br>
# powercom_sdcmd_byte_order_fallback<br>
port = auto<br>
# pollonly = enabled<br>
pollinterval = 2<br>
pollfreq = 30<br>
offdelay = 30<br>
ondelay = 60<br>
allow_killpower<br>
ignorelb<br>
override.battery.charge.low = 70<br>
# override.battery.runtime.low = 600<br>
<br>
<div>06.05.2025 01:49, Jim Klimov:<br>
</div>
<blockquote type="cite">
<div dir="auto">
<div>At least the "shutdown.return
requires a parameter" part *may* be a
regression of the new "sdcommands"
change in v2.8.3,though I don't think
older code passed any. Maybe something
got lost in mass-edit changes though.
<div dir="auto"><br>
</div>
<div dir="auto">Can you please
double-check with 2.8.2 if its older
approach to UPS shutdown behaved
better?</div>
<div dir="auto"><br>
</div>
Jim Klimov<br>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On
Tue, May 6, 2025, 00:41 Alexey
Korobeinikov <<a href="mailto:alexey@fseafood.com" rel="noreferrer" target="_blank">alexey@fseafood.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,
my UPS Model Powercom BNT400AP (
made 2017.12 ) on Linux Devuan <br>
Daedalus and NUT v2.8.3 (install
from source tarball with "configure
<br>
--with-usb --with-user=nut
--with-group=nut --with-libusb=1.0 <br>
--with-statepath=/run/nut
--with-pidpath=/run/nut" options)
didn't <br>
shutdown itself after OS is shuting
down by signal of UPS battary is
low.<br>
<br>
...</blockquote>
</div>
</div>
<div dir="auto">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
0.184242 Initiating UPS [UPS]
shutdown<br>
0.184257 [D1]
loop_shutdown_commands: call <br>
do_loop_shutdown_commands() with
driver-default sdcommands<br>
0.184267 [D1] Starting <br>
do_loop_shutdown_commands(shudown.default), call depth 1...<br>
0.184280 [D1]
upsdrv_shutdown...<br>
0.184289 [D1] Starting <br>
do_loop_shutdown_commands(shutdown.return,shutdown.reboot,load.off.delay,shutdown.stayoff),
<br>
call depth 2...<br>
0.184299 [D1]
instcmd(shutdown.return, [NULL])<br>
0.184313 [D3] instcmd: using
Path <br>
'UPS.PowerSummary.DelayBeforehutdown'<br>
0.184321 [D2] instcmd:
shutdown.return requires an explicit
<br>
parameter<br>
<br>
0.184331 [D1]
instcmd(shutdown.reboot, [NULL])<br>
0.184348 [D2] find_nut_info:
unknown info type: shutdown.reboot<br>
0.184358 [D3] instcmd:
cmdname 'shutdown.reboot' not found;
<br>
checking for alternatives<br>
0.184371 [D2] instcmd: info
element unavailable shutdown.reboot<br>
<br>
0.184387 [D1]
instcmd(load.off.delay, [NULL])<br>
0.184398 [D2] find_nut_info:
unknown info type: load.off.delay<br>
0.184407 [D3] instcmd:
cmdname 'load.off.delay' not found;
<br>
checking for alternatives<br>
0.184418 [D2] instcmd: info
element unavailable load.off.delay<br>
<br>
0.184428 [D1]
instcmd(shutdown.stayoff, [NULL])<br>
0.184438 [D3] instcmd: using
Path <br>
'UPS.PowerSummary.DelayBeforehutdown'<br>
0.184449 [D2] instcmd:
shutdown.stayoff requires an
explicit <br>
parameter<br>
<br>
0.184462 [D1] Ending <br>
do_loop_shutdown_commands(shutdown.return,shutdown.reboot,load.off.delay,shutdown.stayoff),
<br>
call<br>
depth 2: return-code 2<br>
0.184471 Shutdown failed!<br>
0.184483 [D1] set_exit_flag:
raising exit flag due to signal -1<br>
0.184493 [D1]
do_loop_shutdown_commands(): command
<br>
'shutdown.default' was handled
successfully<br>
0.184502 [D1] Ending
do_loop_shutdown_commands(shutdown.default),
<br>
call depth 1: return-code 0<br>
0.184512 UPS [UPS]: shutdown
request was successful with <br>
'shutdown.default'<br>
0.184523 [D1] set_exit_flag:
raising exit flag due to <br>
programmatic abort: EXIT_FAILURE<br>
0.184540 [D1]
upsdrv_cleanup...<br>
0.184899 [D1] upsnotify:
failed to notify about state <br>
NOTIFY_STATE_STOPPING: no
notification tech defined, will not
spam more about it<br>
0.184936 [D1] On systems
without service units, consider
`export <br>
NUT_QUIET_INIT_UPSNOTIFY=true`<br>
<br>
I try to use
"powercom_sdcmd_byte_order_fallback"
option, with same effect.<br>
<br>
Wat's wrong with my UPS/NUT ?<br>
Thank You!<br>
<br>
-- <br>
Oleksii Korobeinikov<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@alioth-lists.debian.net" rel="noreferrer noreferrer" target="_blank">Nut-upsuser@alioth-lists.debian.net</a><br>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser" rel="noreferrer noreferrer noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br>
</blockquote>
</div>
</div>
</div>
</blockquote>
<br>
<pre cols="72">--
З Повагою
Коробейніков Олексій
Системний адміністратор
ТОВ "Флагман Сіфуд"
<a href="https://www.google.com/maps/search/%D0%B2%D1%83%D0%BB.+%D0%91%D1%80%D0%BE%D0%B2%D0%B0%D1%80%D1%81%D1%8C%D0%BA%D0%B0+152?entry=gmail&source=g" target="_blank">вул. Броварська 152</a>, смт Велика Димерка
Київська область, 07442
р.+38 044 495-88-00
вн.6101
м.+38 067 994-40-48</pre>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
Nut-upsuser mailing list
<a href="mailto:Nut-upsuser@alioth-lists.debian.net" rel="noreferrer" target="_blank">Nut-upsuser@alioth-lists.debian.net</a>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser" rel="noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a>
</pre>
</blockquote>
<br>
<pre cols="72">--
З Повагою
Коробейніков Олексій
Системний адміністратор
ТОВ "Флагман Сіфуд"
<a href="https://www.google.com/maps/search/%D0%B2%D1%83%D0%BB.+%D0%91%D1%80%D0%BE%D0%B2%D0%B0%D1%80%D1%81%D1%8C%D0%BA%D0%B0+152?entry=gmail&source=g" target="_blank">вул. Броварська 152</a>, смт Велика Димерка
Київська область, 07442
р.+38 044 495-88-00
вн.6101
м.+38 067 994-40-48</pre>
</div>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
<br>
<pre cols="72">--
З Повагою
Коробейніков Олексій
Системний адміністратор
ТОВ "Флагман Сіфуд"
<a href="https://www.google.com/maps/search/%D0%B2%D1%83%D0%BB.+%D0%91%D1%80%D0%BE%D0%B2%D0%B0%D1%80%D1%81%D1%8C%D0%BA%D0%B0+152?entry=gmail&source=g" target="_blank">вул. Броварська 152</a>, смт Велика Димерка
Київська область, 07442
р.+38 044 495-88-00
вн.6101
м.+38 067 994-40-48</pre>
</div>
</blockquote>
</div>
</blockquote>
<br>
<pre cols="72">--
З Повагою
Коробейніков Олексій
Системний адміністратор
ТОВ "Флагман Сіфуд"
вул. Броварська 152, смт Велика Димерка
Київська область, 07442
р.+38 044 495-88-00
вн.6101
м.+38 067 994-40-48</pre>
</div>
</blockquote></div>