I'm using Kubuntu 20.04.1 64 bit. To clarify I'm not trying to use this via network but directly via USB cable.
The UPS should be Bus 001 Device 004: ID 0001:0000 Fry's Electronics
EDIT:
I found the drivers list with, "Various" "ups" "2" "(Various USB)" "UPSilon 2000 software" "blazer_usb langid_fix=0x409"
and a little web search pointed to have the configuration like this and it connected.
[upsilon-2000]
driver = "blazer_usb"
port = auto
langid_fix="0x409"
desc="Upsilon 2000"
vendorid = "0001"
productid = "0000"
Network UPS Tools - UPS driver controller 2.7.4
Network UPS Tools - Megatec/Q1 protocol USB driver 0.12 (2.7.4)
Supported UPS detected with megatec protocol
Vendor information unavailable
No values provided for battery high/low voltages in ups.conf
Using 'guestimation' (low: 20.800000, high: 26.000000)!
Battery runtime will not be calculated (runtimecal not set)
Now I need to be able to configure it or is it already configured by default?
# --------------------------------------------------------------------------
# FINALDELAY - last sleep interval before shutting down the system
#
# On a master, upsmon will wait this long after sending the NOTIFY_SHUTDOWN
# before executing your SHUTDOWNCMD. If you need to do something in between
# those events, increase this number. Remember, at this point your UPS is
# almost depleted, so don't make this too high.
#
# Alternatively, you can set this very low so you don't wait around when
# it's time to shut down. Some UPSes don't give much warning for low
# battery and will require a value of 0 here for a safe shutdown.
#
# Note: If FINALDELAY on the slave is greater than HOSTSYNC on the master,
# the master will give up waiting for the slave to disconnect.
FINALDELAY 5
I made a systemd service and this is the status shown. EDIT: I just needed nut-server.service
Message from system
Broadcast message from nut@carlos-AB350-Gaming-3 (somewhere) (Tue Nov 17 16:03:
Communications with UPS upsilon-2000@localhost established
[Unit]
Description=Upsilon monitor start
[Service]
Type=oneshot
ExecStart=upsdrvctl start
[Install]
WantedBy=multi-user.target
systemctl status ups-start.service
● ups-start.service - Upsilon monitor start
Loaded: loaded (/etc/systemd/system/ups-start.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Tue 2020-11-17 15:38:41 AST; 3s ago
Process: 7911 ExecStart=/usr/sbin/upsdrvctl start (code=exited, status=0/SUCCESS)
Main PID: 7911 (code=exited, status=0/SUCCESS)
nov 17 15:38:37 carlos-AB350-Gaming-3 upsdrvctl[7912]: Supported UPS detected with megatec protocol
nov 17 15:38:38 carlos-AB350-Gaming-3 upsdrvctl[7912]: Vendor information unavailable
nov 17 15:38:38 carlos-AB350-Gaming-3 upsdrvctl[7912]: No values provided for battery high/low voltages in ups.conf
nov 17 15:38:38 carlos-AB350-Gaming-3 upsdrvctl[7912]: Using 'guestimation' (low: 20.800000, high: 26.000000)!
nov 17 15:38:38 carlos-AB350-Gaming-3 upsdrvctl[7912]: Battery runtime will not be calculated (runtimecal not set)
nov 17 15:38:39 carlos-AB350-Gaming-3 upsdrvctl[7911]: Network UPS Tools - UPS driver controller 2.7.4
nov 17 15:38:39 carlos-AB350-Gaming-3 blazer_usb[7924]: Startup successful
nov 17 15:38:41 carlos-AB350-Gaming-3 blazer_usb[7924]: Signal 15: exiting
nov 17 15:38:41 carlos-AB350-Gaming-3 systemd[1]: ups-start.service: Succeeded.
nov 17 15:38:41 carlos-AB350-Gaming-3 systemd[1]: Finished Upsilon monitor start.
This commands show:
upsdrvctl start
Network UPS Tools - UPS driver controller 2.7.4
Network UPS Tools - Megatec/Q1 protocol USB driver 0.12 (2.7.4)
Supported UPS detected with megatec protocol
Vendor information unavailable
No values provided for battery high/low voltages in ups.conf
Using 'guestimation' (low: 20.800000, high: 26.000000)!
Battery runtime will not be calculated (runtimecal not set)
sudo upsdrvctl stop
Network UPS Tools - UPS driver controller 2.7.4
Can't open /run/nut/blazer_usb-auto.pid: No such file or directory
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
Find out you USB IDs
Find out your Drivers. Mine is listed as blazer_usb langid_fix=0x409
Configure
/etc/nut/ups.conf
There is a command for this but for now it's doesn't say nothing about lang_fix part, maybe it's not needed anymore.
sudo nut-scanner
Edit nano /etc/nut/nut.conf
Start driver:
Enable service and start
You may need to reboot to make the server work properly.
Check status
For all the info
source
I used the below in ups.conf and it works well: