Skip to content

Powercom RPT-1000VA error with driver name when starting upsdrvctl #2087

Open
@Loganavter

Description

@Loganavter

I use arch linux, and I'm trying to make it so that when the UPS switches to battery power mode, a signal is sent to the computer for a normal shutdown.

[jorj@jorj-systemproductname ~]$ lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 045e:0780 Microsoft Corp. Comfort Curve Keyboard 3000
Bus 003 Device 002: ID 0d9f:0004 Powercom Co., Ltd HID UPS Battery
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 090c:1000 Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.) Flash Drive
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 001 Device 002: ID 046d:c542 Logitech, Inc. M185 compact wireless mouse
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[jorj@jorj-systemproductname ~]$ upsdrvctl start
Network UPS Tools - UPS driver controller 2.8.0
Network UPS Tools - Generic HID driver 0.47 (2.8.0)
USB communication driver (libusb 1.0) 0.43

Fatal error: 'maxretry' is not a valid variable name for this driver.

Look in the man page or call this driver with -h for a list of
valid variable names and flags.

ups.conf

 [RPT-1000VA]
       driver = usbhid-ups
         port = auto

If I remove this variable from the ups.conf file, then everything works, the indicators are output, but for some reason he does not want to execute scripts according to the scripts specified in upsmon.conf. I made the script chmod +x, but it didn't help in any way.

Here is the script that I asked him to execute in upsmon.conf

RUN_AS_USER root

MONITOR RPT-1000VA@localhost 1 admin AB0b1ch master
NOTIFYCLAMD "/usr/bin/shutdown.sh"
NOTIFYFLAG ONBATT EXEC

/usr/bin/shutdown.sh

sudo shutdown -P now

What can I do to make it work after all?

Metadata

Metadata

Assignees

No one assigned

    Labels

    PowercomShutdowns and overrides and battery level triggersIssues and PRs about system shutdown, especially if battery charge/runtime remaining is involvedUSBimpacts-release-2.8.0Issues reported against NUT release 2.8.0 (maybe vanilla or with minor packaging tweaks)upsmon

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions