PoweOff being displayed on OLED Pironman

Hello I have a Raspberry Pi 4 8GB w/ a Pironman Mini PC and the OLED just displays Power Off. I think there is a coding issue. What do you need from me to help solve this?

Before you use Pironman, modify the /boot/config.txt configuration file.

Follow the tutorial link to do so: 5. Set up the Pironman — SunFounder Pironman documentation

Yup, I had followed the tutorial and nothing. Still displaying “Poweroff” on the OLED. Attached picture of the config.txt file. Do you have any other suggestions?

1、First of all, please confirm what system you are using.
2、Is the jumper cap of IO16 connected properly?
If you unplug this jumper cap, the power button will not work. In addition, the power button is also used to wake up the OLED screen in sleep mode.
3、Is the Pironman software service installed correctly according to the tutorial? Is there any error reported during installation?
4、Run sudo Pironman stop && sudo python3 /opt/pironman/main.py to see if there is any error message reported, please provide the log to us.
F2BBEA9B-5564-4c6c-B701-EFCB3A07DD5D

  1. Here is what my system is.
    cat /etc/os-release
    PRETTY_NAME=“Debian GNU/Linux 11 (bullseye)”
    NAME=“Debian GNU/Linux”
    VERSION_ID=“11”
    VERSION=“11 (bullseye)”
    VERSION_CODENAME=bullseye
    ID=debian
    HOME_URL=“https://www.debian.org/
    SUPPORT_URL="
    BUG_REPORT_URL=

uname -a
Linux pi-server 5.15.84-v8+ #1613 SMP PREEMPT Thu Jan 5 12:03:08 GMT 2023 aarch64 GNU/Linux

cat /proc/cpuinfo
processor : 0
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 1
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 2
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 3
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

Hardware : BCM2835
Revision : d03115
Serial : 100000001a10e79a
Model : Raspberry Pi 4 Model B Rev 1.5

2.Affirmative. I’ve verified that IO16 is connected.

  1. I followed the tutorial and had no problems during install.

  2. Here is output of the command when i ran it.

sudo pironman stop && sudo python3 /opt/pironman/main.py
stopping pironman

------------------------23/03/17 20:18:32------------------------
pironman version: 1.2.6
username: pi
config_file: /home/pi/.config/pironman/config.txt

23/03/17 20:18:32,047 [DEBUG] power_key_pin : 16
23/03/17 20:18:32,047 [DEBUG] fan_pin : 6
23/03/17 20:18:32,047 [DEBUG] rgb_pin : 12
23/03/17 20:18:32,047 [DEBUG] update_frequency : 0.5
23/03/17 20:18:32,048 [DEBUG] temp_unit : C
23/03/17 20:18:32,048 [DEBUG] fan_temp : 50.0
23/03/17 20:18:32,048 [DEBUG] screen_always_on : False
23/03/17 20:18:32,048 [DEBUG] screen_off_time : 60
23/03/17 20:18:32,048 [DEBUG] rgb_switch: True
23/03/17 20:18:32,048 [DEBUG] rgb_blink_speed : 50
23/03/17 20:18:32,048 [DEBUG] rgb_color : 0a1aff
23/03/17 20:18:32,048 [DEBUG]

23/03/17 20:18:32,070 [DEBUG] rgb_show
23/03/17 20:18:32,073 [DEBUG] rgb_show: breath

^CTraceback (most recent call last):
File “/opt/pironman/main.py”, line 350, in
main()
File “/opt/pironman/main.py”, line 321, in main
time.sleep(0.01)
KeyboardInterrupt

  1. You update the pironman code version to 1.3.0 to see.
    cd ~/pironman
    git pull
    sudo python3 setup.py install

  2. If you still have the same problem, please provide the print log to us: sudo
    sudo Pironman stop && sudo python3 /opt/pironman/main.py

  3. Please provide us with a video of the working state of the OLED screen.

I am on 1.4.0. See snipit.

As far as the video. I uploaded it to youtube.

Thank you for your time and attention on this matter.

First, you will IO26 short piece to GND, and then another short piece to the switch button JP2. (as shown in the figure)
Then connect the external power supply power supply to the expansion board, after connecting the power to the main board indicator lights up, and the switch button JP2 short tab is unplugged. (Please check the video)
See if the motherboard indicator light is always on.
Please also provide us with the video after confirmation.


Ok. I apologize in advance but I think I may have found the problem. I was supplying power to the Raspberry Pi 4 and not the pironman PCB. Once I did that the OLED started displaying the “stats”. But now I see another problem. After the initial boot and the OLED displays the stats after the 30 seconds, it doesn’t display anything anymore unless i run “pironman -al on” command, which that command forces the display to be on all the time.

1, our OLED will turn off after 60 seconds by default, a short press on the power button will light up.
If you want the OLED screen to turn off earlier or later, you can execute pironman -s 60 (set the duration in seconds, you can modify the time)
2. If you want the OLED screen to be always on, execute pironman -al on to set it to always on mode.
Please refer to the tutorial link:

https://docs.sunfounder.com/projects/pironman/en/latest/oled_screen.html

I have an update - don’t know if it covers your case.
I installed a fresh pironman5, and installed v2 branch of the software.
I had the same symptom, that display would always revert quickly to “POWER OFF”.

I debugged the script, and it turned out, the code reacting to “is power button pressed?”
was acting weirdly. It would test whether the power button value was 0, and then incorrectly conclude
that power button was pressed, and because of this trigger a quick turn-off of the OLED screen, showing “POWER OFF”.
When I disabled that part of the script, the display works nicely, showing the live machine stats.
Weirdly, the power button IS connected and functioning, and issues a POWERBUTTON_KEY/POWERKEY inputEvent, to the system - and raspbian will pop up a “shut down system?” menu, which I have not yet been able to disable, through logind conf.
Maybe this is a mixup with rp4 and rp5, I don’t know. I will continue to investigate.

It seems that you have installed the wrong software. If you are using our standard version of the Pironman 5 case, please follow the steps in our online tutorial to install the correct Pironman 5 software:

Installation commands:

cd ~
git clone -b 1.2.15 GitHub - sunfounder/pironman5: Code for Raspberry Pi 5 case (Pironman5) --depth 1
cd ~/pironman5
sudo python3 install.py
After successfully installing the software, please reboot the system and check if all the functions of the case are working properly.

I can’t edit my post, only delete it :-/.
Indeed, you are correct, I also found out it worked when I switched to
git clone https:/ /github.com/sunfounder/pironman5.git
I am sorry for my confusion.
One problem is, that the search result hits for your forum on this topic,
yield older answers where the supplied “pironman5 link” is now dead/404.
So I guess it is still good to get these fresh exchanges public.

TLDR: If your folder is called “pironman” instead of “pironman5”, you are using the wrong version of the driver software; the one called simply “pironman”, is for PM4.