logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

pijuice - Driver for UPS in PiJuice HAT

Authors

       Andrew Anderson <aander07@gmail.com>

Extra Arguments

       The required parameter for this driver is the I2C bus name:

       port=dev-node
           On the PiJuice HAT, this should be /dev/i2c-1.

Installation

Note

           This section was copied from asem driver man page and may not fully apply to PiJuice HAT, patches are
           welcome.

       This driver is specific to the Linux I2C API, and requires the lm_sensors libi2c-dev or its equivalent to
       compile.

       Beware that the SystemIO memory used by the I2C controller is reserved by ACPI. If only a native I2C
       driver (e.g. i2c_i801, as of 3.5.X Linux kernels) is available, then you’ll need to relax the ACPI
       resources check. For example, you can boot with the acpi_enforce_resources=lax option.

Known Issues And Bugs

Note

           This section was copied from asem driver man page and may not fully apply to PiJuice HAT, patches are
           welcome.

       The driver shutdown function is not implemented, so other arrangements must be made to turn off the UPS.

Name

       pijuice - Driver for UPS in PiJuice HAT

See Also

Thecoredriver:nutupsdrv(8)

   Internetresources:
       •   Initial pull requests adding this driver:

           •   https://github.com/networkupstools/nut/pull/730

           •   https://github.com/PiSupply/PiJuice/issues/124

       •   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.3/

Network UPS Tools 2.8.3                            07/08/2025                                         PIJUICE(8)

Supported Hardware

       The pijuice driver supports the portable PiJuice HAT UPS for Raspberry Pi embedded PCs.

Synopsis

pijuice -h

       pijuice -a UPS_NAME [OPTIONS]

           Note

           This man page only documents the hardware-specific features of the pijuice driver. For information
           about the core driver, see nutupsdrv(8).

           Note

           This manual page was hastily adapted from related asem driver man page based on information from the
           original pull request, and so may not fully apply to PiJuice HAT, patches from experts are welcome.

See Also