PiSupply/PiJuice

Cannot auto startup from guide using latest bullseye (includes my fix)

Opened this issue · 1 comments

As of a fresh install of bullseye from the pi disk imager (default "legacy" option)
just following the quick startup guide does not get the pijuice functioning for me. It could not start itself up and its options in the GUI would reset.
to fix this i found some issues in the github, and this seemed to work for me
(As of nov 2023 you have to run these lines to make work because of 64 bit things #1000 (comment))
$ sudo rm /usr/bin/pijuice_gui
$ sudo ln -s /usr/bin/pijuice_gui32 /usr/bin/pijuice_gui
sudo rm /usr/bin/pijuice_cli
sudo ln -s /usr/bin/pijuice_gui32 /usr/bin/pijuice_cli

sudo rm /usr/bin/pijuiceboot
sudo ln -s /usr/bin/pijuice_gui32 /usr/bin/pijuiceboot

You need to go to pijuice GUI
go to config
set EEPROM to 0x52
add dtoverlay=i2c-rtc,ds1307 to /boot/config.txt.

You wrote:

$ sudo rm /usr/bin/pijuice_gui
$ sudo ln -s /usr/bin/pijuice_gui32 /usr/bin/pijuice_gui
sudo rm /usr/bin/pijuice_cli
sudo ln -s /usr/bin/pijuice_gui32 /usr/bin/pijuice_cli     <---- A

sudo rm /usr/bin/pijuiceboot
sudo ln -s /usr/bin/pijuice_gui32 /usr/bin/pijuiceboot     <---- B

Line A should be sudo ln -s /usr/bin/pijuice_cli32 /usr/bin/pijuice_cli
Line B should be sudo ln -s /usr/bin/pijuiceboot32 /usr/bin/pijuiceboot

The dtoverlay line in /boot/config.txt and setting the EEPROM addres to 0x52 is not necessary
(unless you want to avoid OS interference with the RTC Alarm function when connected to the internet)