Troubles with NUT and Upsilon 2000, standalone mode

I’m having issues to get NUT to work with my UPS in standalone mode. When I just enable the service I get error and when I set a service to start the driver I get an error on startup saying Failed to start device driver.

When I do upsc upsilon-2000@localhost I get Error: Driver not connected, then I start the driver with sudo upsdrvctl start and it works.

Looks like USB is nto initialized when the service starts and throws error. This is what I used to do on Ubuntu @ [AskUbuntu] (ups - Problem connecting Upsilon 2000, How to setup with NUT - Ask Ubuntu) and did the same with Manjaro KDE. The problem arises on boot, everything is fine during installation and first configuration.

I did this and did not solve the problem:

/etc/udev/rules.d/50-ups.rules

SUBSYSTEM=="usb", ATTR{idVendor}=="0001", ATTR{idProduct}=="0000", SYMLINK+="ups0", GROUP="nut"

This in /etc/nut/upsmon.conf but I think that’s for remote monitoring

MONITOR upsilon-2000@localhost 1 upsduser password master

This is what I get at startup

systemctl status nut-server
● nut-server.service - Network UPS Tools - power devices information server
     Loaded: loaded (/usr/lib/systemd/system/nut-server.service; enabled; vendor preset: disabled)
     Active: active (running) since Sun 2021-05-02 10:02:03 AST; 27s ago
    Process: 1830 ExecStart=/usr/bin/upsd (code=exited, status=0/SUCCESS)
   Main PID: 1834 (upsd)
      Tasks: 1 (limit: 19132)
     Memory: 1.0M
     CGroup: /system.slice/nut-server.service
             └─1834 /usr/bin/upsd

May 02 10:02:03 pyroghost-ab350gaming3 systemd[1]: Starting Network UPS Tools - power devices information server...
May 02 10:02:03 pyroghost-ab350gaming3 upsd[1830]: fopen /run/nut/upsd.pid: No such file or directory
May 02 10:02:03 pyroghost-ab350gaming3 upsd[1830]: listening on 127.0.0.1 port 3493
May 02 10:02:03 pyroghost-ab350gaming3 upsd[1830]: listening on 127.0.0.1 port 3493
May 02 10:02:03 pyroghost-ab350gaming3 upsd[1830]: listening on ::1 port 3493
May 02 10:02:03 pyroghost-ab350gaming3 upsd[1830]: listening on ::1 port 3493
May 02 10:02:03 pyroghost-ab350gaming3 upsd[1830]: Can't connect to UPS [upsilon-2000] (blazer_usb-upsilon-2000): No such file or directory
May 02 10:02:03 pyroghost-ab350gaming3 upsd[1830]: Can't connect to UPS [upsilon-2000] (blazer_usb-upsilon-2000): No such file or directory
May 02 10:02:03 pyroghost-ab350gaming3 upsd[1834]: Startup successful
May 02 10:02:03 pyroghost-ab350gaming3 systemd[1]: Started Network UPS Tools - power devices information server

upsc upsilon-2000@localhost           
Error: Driver not connected

And this is how I set it up so far

Install NUT

pacman -S nut

Find out you USB IDs

lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 046d:c084 Logitech, Inc. G203 Gaming Mouse
Bus 003 Device 002: ID 046d:c336 Logitech, Inc. Gaming Keyboard G213
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 001 Device 003: ID 05a3:9331 ARC International Camera
Bus 001 Device 002: ID 0001:0000 Fry's Electronics 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Find out your
Drivers. Mine is listed as blazer_usb langid_fix=0x409

Configure /etc/nut/ups.conf

[upsilon-2000]
driver = "blazer_usb"
port = auto
langid_fix="0x409"
desc="Upsilon 2000"
vendorid = "0001"
productid = "0000"

Edit nano /etc/nut/nut.conf

MODE=standalone

Start driver:

upsdrvctl start

NOTE: I made a Systemd service to run this command at boot

Enable service and start

systemctl enable nut-server.service
systemctl start nut-server.service

Check status

systemctl status nut-server
● nut-server.service - Network UPS Tools - power devices information server
     Loaded: loaded (/lib/systemd/system/nut-server.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2020-11-18 08:27:09 AST; 1h 4min ago
    Process: 997 ExecStart=/sbin/upsd (code=exited, status=0/SUCCESS)
   Main PID: 998 (upsd)
      Tasks: 1 (limit: 19048)
     Memory: 1.5M
     CGroup: /system.slice/nut-server.service
             └─998 /lib/nut/upsd

nov 18 08:27:09 carlos-AB350-Gaming-3 systemd[1]: Starting Network UPS Tools - power devices information server...
nov 18 08:27:09 carlos-AB350-Gaming-3 upsd[997]: fopen /run/nut/upsd.pid: No such file or directory
nov 18 08:27:09 carlos-AB350-Gaming-3 upsd[997]: listening on 127.0.0.1 port 3493
nov 18 08:27:09 carlos-AB350-Gaming-3 upsd[997]: listening on ::1 port 3493
nov 18 08:27:09 carlos-AB350-Gaming-3 upsd[997]: listening on 127.0.0.1 port 3493
nov 18 08:27:09 carlos-AB350-Gaming-3 upsd[997]: listening on ::1 port 3493
nov 18 08:27:09 carlos-AB350-Gaming-3 upsd[997]: Connected to UPS [upsilon-2000]: blazer_usb-upsilon-2000
nov 18 08:27:09 carlos-AB350-Gaming-3 upsd[997]: Connected to UPS [upsilon-2000]: blazer_usb-upsilon-2000
nov 18 08:27:09 carlos-AB350-Gaming-3 upsd[998]: Startup successful
nov 18 08:27:09 carlos-AB350-Gaming-3 systemd[1]: Started Network UPS Tools - power devices information server.

upsc upsilon-2000@localhost ups.status 2>&1 | grep -v '^Init SSL'
OL

For all the info

upsc upsilon-2000@localhost
Init SSL without certificate database
battery.charge: 100
battery.voltage: 27.20
battery.voltage.high: 26.00
battery.voltage.low: 20.80
battery.voltage.nominal: 24.0
device.type: ups
driver.name: blazer_usb
driver.parameter.langid_fix: 0x409
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.productid: 0000
driver.parameter.synchronous: no
driver.parameter.vendorid: 0001
driver.version: 2.7.4
driver.version.internal: 0.12
input.current.nominal: 15.0
input.frequency: 59.9
input.frequency.nominal: 60
input.voltage: 118.2
input.voltage.fault: 118.2
input.voltage.nominal: 120
output.voltage: 118.2
ups.beeper.status: enabled
ups.delay.shutdown: 30
ups.delay.start: 180
ups.load: 20
ups.productid: 0000
ups.status: OL
ups.type: offline / line interactive
ups.vendorid: 0001

source

And this is how I set it up so far

Install NUT

pacman -S nut

Find out you USB IDs

lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 046d:c084 Logitech, Inc. G203 Gaming Mouse
Bus 003 Device 002: ID 046d:c336 Logitech, Inc. Gaming Keyboard G213
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 001 Device 003: ID 05a3:9331 ARC International Camera
Bus 001 Device 002: ID 0001:0000 Fry's Electronics 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Find out your
Drivers. Mine is listed as blazer_usb langid_fix=0x409

Configure /etc/nut/ups.conf

[upsilon-2000]
driver = "blazer_usb"
port = auto
langid_fix="0x409"
desc="Upsilon 2000"
vendorid = "0001"
productid = "0000"

Edit nano /etc/nut/nut.conf

MODE=standalone

Start driver:

upsdrvctl start

NOTE: I made a Systemd service to run this command at boot

Enable service and start

systemctl enable nut-server.service
systemctl start nut-server.service

Check status

systemctl status nut-server
● nut-server.service - Network UPS Tools - power devices information server
     Loaded: loaded (/lib/systemd/system/nut-server.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2020-11-18 08:27:09 AST; 1h 4min ago
    Process: 997 ExecStart=/sbin/upsd (code=exited, status=0/SUCCESS)
   Main PID: 998 (upsd)
      Tasks: 1 (limit: 19048)
     Memory: 1.5M
     CGroup: /system.slice/nut-server.service
             └─998 /lib/nut/upsd

nov 18 08:27:09 carlos-AB350-Gaming-3 systemd[1]: Starting Network UPS Tools - power devices information server...
nov 18 08:27:09 carlos-AB350-Gaming-3 upsd[997]: fopen /run/nut/upsd.pid: No such file or directory
nov 18 08:27:09 carlos-AB350-Gaming-3 upsd[997]: listening on 127.0.0.1 port 3493
nov 18 08:27:09 carlos-AB350-Gaming-3 upsd[997]: listening on ::1 port 3493
nov 18 08:27:09 carlos-AB350-Gaming-3 upsd[997]: listening on 127.0.0.1 port 3493
nov 18 08:27:09 carlos-AB350-Gaming-3 upsd[997]: listening on ::1 port 3493
nov 18 08:27:09 carlos-AB350-Gaming-3 upsd[997]: Connected to UPS [upsilon-2000]: blazer_usb-upsilon-2000
nov 18 08:27:09 carlos-AB350-Gaming-3 upsd[997]: Connected to UPS [upsilon-2000]: blazer_usb-upsilon-2000
nov 18 08:27:09 carlos-AB350-Gaming-3 upsd[998]: Startup successful
nov 18 08:27:09 carlos-AB350-Gaming-3 systemd[1]: Started Network UPS Tools - power devices information server.

upsc upsilon-2000@localhost ups.status 2>&1 | grep -v '^Init SSL'
OL

For all the info

upsc upsilon-2000@localhost
Init SSL without certificate database
battery.charge: 100
battery.voltage: 27.20
battery.voltage.high: 26.00
battery.voltage.low: 20.80
battery.voltage.nominal: 24.0
device.type: ups
driver.name: blazer_usb
driver.parameter.langid_fix: 0x409
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.productid: 0000
driver.parameter.synchronous: no
driver.parameter.vendorid: 0001
driver.version: 2.7.4
driver.version.internal: 0.12
input.current.nominal: 15.0
input.frequency: 59.9
input.frequency.nominal: 60
input.voltage: 118.2
input.voltage.fault: 118.2
input.voltage.nominal: 120
output.voltage: 118.2
ups.beeper.status: enabled
ups.delay.shutdown: 30
ups.delay.start: 180
ups.load: 20
ups.productid: 0000
ups.status: OL
ups.type: offline / line interactive
ups.vendorid: 0001

source