PIJUICE(8)
π PIJUICE(8) π
okay bestie, welcome to the PiJuice page of the NUT Manual β it's literally the driver for a UPS inside a PiJuice HAT. yes, a HAT. as in the little board that sits on top of your Raspberry Pi like a tiny crown. π
β¨ NAME β¨
pijuice β the driver for a UPS living in a PiJuice HAT π«Ά
πΈ SYNOPSIS πΈ
pijuice -h
pijuice -a UPS_NAME [OPTIONS]
heads up, bestie: this man page only spills the tea on the hardware-specific stuff for thepijuicedriver. for the core driver deets, go readnutupsdrv(8). π
also, real talk: this manual page was hastily adapted from the related asem driver man page, based on info from the original pull request β so it might not 100% apply to the PiJuice HAT. patches from experts are welcome, fr fr. π₯Ί
π SUPPORTED HARDWARE π
The pijuice driver supports the portable PiJuice HAT UPS for Raspberry Pi embedded PCs. that's the whole vibe. β¨
π EXTRA ARGUMENTS π
The required parameter for this driver is the I2C bus name:
port=dev-nodeβ the I2C bus name. on the PiJuice HAT, this should be/dev/i2c-1. that's it, that's the one. π
little side quest: you may want to add the driver's run-time unprivileged user (e.g.nut) to thei2cgroup as a secondary group β typically done in/etc/group(along withpijuice, if the vendor CLI/GUI/automation packages are also installed). something like:sudo usermod -a -G i2c nutotherwise you might have to run the driver as root. and running things as root is not the main character energy we're going for. π
π INSTALLATION π
not me copy-pasting this from theasemdriver man page π this section was copied from theasemdriver man page and may not fully apply to the PiJuice HAT β patches are welcome!
This driver is specific to the Linux I2C API, and it requires the lm_sensors libi2c-dev (or its equivalent) to compile. no dependency, no driver, periodt.
Beware, bestie: the SystemIO memory used by the I2C controller is reserved by ACPI. If only a native I2C driver is available (e.g. i2c_i801, as of 3.5.X Linux kernels), then you'll need to relax the ACPI resources check. for example, you can boot with the acpi_enforce_resources=lax option. lowkey stressful but we move. π§
π KNOWN ISSUES AND BUGS π
again, not me π this section was copied from the asem driver man page and may not fully apply to the PiJuice HAT β patches are welcome!
- The driver shutdown function is not implemented, so other arrangements must be made to turn off the UPS. she simply does not do that. π
- The
battery.currentandinput.currentmay be reported as negative if it is being charged and wall power is plugged into the Pi itself (not the HAT). This reflects the direction of electric current over the GPIO pins; vendor tools likepijuice_cliorpijuice_guialso show this. The reportedinput.currentvalue was seen to fluctuate and even change the sign back and forth as thebattery.chargevalue rose from zero into tens of percents with this connectivity setup. it's giving chaos, honestly. π - If the
ups.dateandups.timelook bogus, use vendor tools to set the RTC clock of the HAT (check in the Alarms section). β° - The
battery.temperaturereport may depend on the capabilities of the actual battery and the methods used to poll it for information. Vendor tools provide several settings for tuning this, but they don't seem to impact what the driver reports (pull requests welcome!); bogus negative values were seen. π₯Ά
π AUTHORS π
Andrew Anderson <aander07@gmail.com>
π¦ SEE ALSO π¦
The core driver:
Internet resources:
- Initial pull requests adding this driver:
- Product home page: https://uk.pi-supply.com/products/pijuice-standard
- The NUT (Network UPS Tools) home page: https://www.networkupstools.org/historic/v2.8.5/
and that's the whole page, bestie! β¨ this was Network UPS Tools version 2.8.5, dated 10/07/2026, and it's the PIJUICE(8) page β slay, you read the whole thing, i'm so proud of you, go plug in your HAT πππ¦
π¦ 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