Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Battery
#1
Just wondering how to check the status of my battery’s charge? As of now  now I’m having to turn my retrostone 2 off and on just to check my battery percentage when it shows it on boot up.
Reply
#2
no way until that they enable a indicator by software. It is inadmissible that it does not have it by default.
Meanwhile, I have a script inside the retropiemenu to see it.
Reply
#3
what it's inadmissible is to complain for a software feature you didnt pay for. You purchased hardware that relies on open source software, mostly developed by people on their spare time. Pierre is supporting us and other developers to bring new features. So please be patient. Battery indicator and other features are work in progress.
Reply
#4
on topic:

like @CISKO did, you can add a script to the menu.

From terminal (make sure to enable wifi from RetrOrangePi - Wifi submenu before)

cd RetrOrangePi
wget http://www.retrorangepi.org/Battery.sh
chmod +x Battery.sh

Reboot or press Ctrl D to return to ES
Reply
#5
I know, I did not want to be offensive, your job is huge, but it was said at first that there would be an indicator.
We will be patient  Wink
Reply
#6
Alexkidd has mentioned a few times that the battery indicator light not working is a hardware issue. You can try contacting Pierre about it but good luck. He seems to have moved on to other projects.
Reply
#7
I think they meant a battery overlay on the frontend, feature absent on RetroPie's EmulationStation.
We're trying other alternatives.
Reply
#8
I was indeed looking to ask about it on the software side, was hoping there was a way to access the battery information shown on boot up from the terminal. I’ll go ahead with that advice to try and install the battery.sh script. Thank you for the help Alexkiddd having the forum for support is really a nice lifeline for those new to Linux and Retropie.
Reply
#9
My Battery.sh

Code:
#!/bin/bash
SERVICE='fbi'
BATTERY_PACK=$(cat /sys/class/power_supply/axp20x-battery/capacity)
convert /home/pi/RetroPie/retropiemenu/RetrOrangePi/battery_background.jpg -gravity center -font FreeSans \
    -pointsize 60 -stroke '#000C' -strokewidth 4 -annotate 0 "battery status: $BATTERY_PACK%" -undercolor '#00000080' \
    -stroke  none -fill white -annotate 0 "battery status: $BATTERY_PACK%" \
    -gravity south -font FreeSans \
    -pointsize 40 -stroke '#000C' -strokewidth 4 -annotate 0 "press a button" -undercolor '#00000080' \
    -stroke  none -fill white -annotate 0 "press a button" /home/pi/RetroPie/retropiemenu/RetrOrangePi/battery.jpg
fbi -a -noverbose /home/pi/RetroPie/retropiemenu/RetrOrangePi/battery.jpg
if ps ax | grep $SERVICE > /dev/null
    then sudo killall -q $SERVICE
fi

place the picture in attachment "battery_background.jpgin your "/home/pi/RetroPie/retropiemenu/RetrOrangePi/" folder

example output:

 [Image: attachment.php?aid=400]


Attached Files Thumbnail(s)
       
Reply
#10
awesome!
if you're creating Battery.sh from scratch, dont forget to give it execute permission:
chmod +x Battery.sh
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Low battery led always ON MedioPollo30 3 1,742 04-08-2020, 08:25 AM
Last Post: Jackie Lee

Forum Jump:


Users browsing this thread: 1 Guest(s)