I got an UPS, UPSilon 2000. And in Windows, it works with USB cable but in Linux, it is not finding it in the configured port. Program files and Manual
Maybe it’s not on that port, but how would I figure? Or I could use minicom to fake the RS232 port as in this guide
So I think NUT could work. But i get this after following a guide
$sudo upsd
Network UPS Tools upsd 2.7.4
fopen /run/nut/upsd.pid: No such file or directory
upsd.conf: invalid directive [myups]
upsd.conf: invalid directive driver = blazer_usb langid_fix=0x409
upsd.conf: invalid directive port = /dev/ttyS1
upsd.conf: invalid directive desc = UPSilon 2000
listening on 127.0.0.1 port 3493
listening on ::1 port 3493
Warning: no UPS definitions in ups.conf
Fatal error: at least one UPS must be defined in ups.conf
Ok I fiexed where I messed up now I have just the no definition error
Network UPS Tools upsd 2.7.4
fopen /run/nut/upsd.pid: No such file or directory
listening on 127.0.0.1 port 3493
Warning: no UPS definitions in ups.conf
Fatal error: at least one UPS must be defined in ups.conf
Note: I haven’t tested but this seems it’s running properly. I would have to unplug my UPS and wait for 5 minutes. This is /etc/nut/upsmon.conf
Install NUT
paman -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"
Start driver: (Maybe it’s better to do this before starting the service)
upsdrvctl start
You may need to reboot to make the server work properly.
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