Current version of the OpenAuto Pro is 7.0
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Q] Keep Pi alive with PB, touchscreen on car-power
#1
Hi

I see alot of complicated solutions in this forum, for safe shutdown.
But what if the PI does not have to shut down?

What i want, is to have Pi powered at all time, with a 3000mA powerbank.
This will keep the Pi alive for atleast 2-3 days, if the touchscreen is off.

I have a Volvo, that turns off power on USB after 5 secs when ignition turns to off.
This USB could power the display only. The Pi is powered by the Powerbank.

Only issue, is that when the display loose power, when power returns it only shows white color.
Anyone with Pi experience have a solution to this issue? or is it software related?
Reply
#2
If you are using official touchscreen it might be easier to toggle backlight programatically rather than cutting of the power. Just use below commands to toggle backlight status:

Code:
sudo su

# turn on
echo 0 > /sys/class/backlight/rpi_backlight/bl_power

# turn off
echo 1 > /sys/class/backlight/rpi_backlight/bl_power
Reply
#3
Interested in this option as well, done a bit of search and found this:
https://github.com/linusg/rpi-backlight

Need to try in out.
Reply
#4
How to use this code to automate and keep things uncomplicated?
Reply
#5
Official touchscreen does NOT support hotpluging. Once the screen is off, only reboot/restart of the pi will turn it back on.
Raspberry Pi 4b-4gb / Official 7" touchscreen / OAP 5.0 / Honor 8x (AndroidAuto 5.) / USB sound card / USB microphone
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)