UPSCODE2(8)
π UPSCODE2 π
okay bestie, pull up a chair β this is upscode2, the driver for UPScode II compatible UPS equipment. Yes, that's the whole vibe. A driver. For UPSes. And honestly? It's giving niche legend.
β¨ SYNOPSIS β¨
upscode2 -h
upscode2 -a UPS_NAME [OPTIONS]
β οΈ real talk: this man page only spills the tea on the hardware-specific features of theupscode2driver. For the core driver deets, go readnutupsdrv(8)instead. π«Ά
π SUPPORTED HARDWARE π
So here's the sitch: this driver serves UPS equipment that can be controlled via the UPScode II protocol. That's mostly Fiskars and Powerware gear, plus some products from Compaq β which are probably OEM'ed, but honestly who can say. π
π EXTRA ARGUMENTS π
The driver supports these optional settings over in ups.conf(5):
manufacturer=valueβ Autodetection of this parameter is not possible yet (and it probably never will be, no cap). So this user-defined string will accept literally any name you throw at it. The default isunknown.input_timeout=valueβ The timeout for waiting on a response from the UPS. Some UPS models have shown themselves to be kinda slow π΄, which leads to frequent messages about empty responses from the UPS. If you're seeing that, try bumping this value up.output_pace=valueβ Delay between characters sent to the UPS. This got added for completeness alongside the parameter above. It has not shown to be needed yet β so, lowkey just vibing there.baudrate=valueβ The default baudrate is1200, which is the standard for the UPScode II protocol. Periodt.full_update_timer=valueβ Number of seconds between collection of normative values.use_crlfβ A flag to set if commands towards the UPS need to be terminated with CR-LF, and not just CR.use_pre_lfβ A flag to set if commands towards the UPS need to be introduced with an LF. ACompaq T1500his known to need this. π
π COMMANDS π
The driver supports the following commands for those UPSes that support them. The available commands are autodetected during initialization, so you should check availability with upscmd -l. Don't just assume, bestie. π
test.panel.startβ Start UPS self testtest.battery.startβ Start battery self testbeeper.enableβ Enable UPS beeperbeeper.disableβ Disable UPS beepershutdown.returnβ Shut down in 1 second and wait for power to returnshutdown.stayoffβ Shut down in 1 secondsshutdown.rebootβ Shut down in 1 seconds and reboot after 1 minuteshutdown.reboot.gracefulβ Shut down in 20 seconds and reboot after 1 minute
π NOTES π
The Powerware UPS models that this driver has been tested against until now have not returned a value for battery.charge. So instead, the driver will guesstimate a value based on the nominal battery min/max and the current battery voltage. It's giving educated guess energy. π
π AUTHORS π
- HΓ₯vard Lygre
<hklygre@online.no> - Niels Baggesen
<niels@baggesen.net>
π¦ SEE ALSO π¦
The core driver:
Internet resources:
The NUT (Network UPS Tools) home page: https://www.networkupstools.org/historic/v2.8.5/
and that's the whole page, babe π this was Network UPS Tools 2.8.5, dated 10/07/2026 β thanks for coming to my TED talk, go forth and talk to your UPS, you've absolutely got this πΈβ¨π
π¦ where this page comes from
- fedora 43: nut 2.8.5-9.fc43 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- fedora 43: nut 2.8.5-9.fc43 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- fedora 44: nut 2.8.5-9.fc44 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- fedora 44: nut 2.8.5-9.fc44 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms