Page 1 of 3
having loading CarPiHat software issues
Posted: Fri Dec 12, 2025 4:21 pm
by gwynethh
Noob on the loose.
Anyone know of an active forum for issuee installing CarPiHat support software. We ran into an issue with the real time clock software and the shutdown script.
"Add the following to "/etc/rc.local"
echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device
sudo hwclock -s
date"
We cannot find "/etc/rc.local" in Trixie
also when we try to
"pip install rpi-lgpio" for the shutdown script we gat a load error message
Email to the guys(?) who designed the CarPihat have gotten no responce.
Re: having loading CarPiHat software issues
Posted: Thu Dec 18, 2025 1:03 pm
by gwynethh
After getting more familiar with the Pi Linux file browser file search feature. I verified there is no file in Trixie called "rc.local". If I want to use the posted script with the CarPi Hat should I redo installation using "Bookworm"?
Re: having loading CarPiHat software issues
Posted: Thu Dec 18, 2025 1:37 pm
by alex124.rh
I added stuff to the hudiy start up .sh for the line python3 carpihat.py &
maybe you can try adding stuff there?
Re: having loading CarPiHat software issues
Posted: Mon Dec 29, 2025 10:19 pm
by gwynethh
A little more web research notes that "/etc/rc.local" was "depreciated" back at bookworm. People have built their own rc.local and made it functional. We will try that this week.
Re: having loading CarPiHat software issues
Posted: Wed Jan 21, 2026 7:47 am
by Hiphouser
Hello.
I Have the same issue with bookworm on my Pi5 and carPiHat pro 5...
It's an Audi Rns-e upgrade project.
Edit: I'm now under Trixie
Re: having loading CarPiHat software issues
Posted: Wed Jan 21, 2026 12:02 pm
by gwynethh
It would be nice if the designers/original programmers of/for the CarPiHat resolved this problem for everyone. My planned work around is delayed while I do some hardware tweaks.
Re: having loading CarPiHat software issues
Posted: Wed Jan 21, 2026 12:10 pm
by hudiy
Which script exactly are you trying to run via rc.local? From a general Linux perspective, rc.local is a legacy autostart mechanism. A more modern approach is to create a service and manage it through systemd. If you share the script here, we can help you convert it into a systemd service.
More details about systemd/Services:
https://wiki.debian.org/systemd/Services
Re: having loading CarPiHat software issues
Posted: Wed Jan 21, 2026 11:17 pm
by gwynethh
The real time clock and shutdown scripts at
https://github.com/SamT-J/CarPiHat/wiki ... tart-Guide under "Real Time Clock" and "Safe Shutdown Example:". Both need the depreciated RC.local The shutdown script also failed me right of when I tried to "pip install rpi-lgpio" and then the need for RC.local at "Then add the following to "/etc/rc.local"
python /home/pi/carPiHat.py &"
to set the script as a service.
Safe shutdown seems wise in a car environment. TIA
Re: having loading CarPiHat software issues
Posted: Fri Jan 23, 2026 8:21 pm
by hudiy
Please check the attachment. pi-shutdown.py is based on the link you provided and also includes the commands mentioned in the Real Time Clock chapter. pi-shutdown.service contains the systemd service declaration:
In order to use it, please execute following commands:
1. Unpack the archive
2. Install dependencies
3. Prepare the service
Code: Select all
sudo cp pi-shutdown.py /usr/local/bin/
sudo cp pi-shutdown.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable pi-shutdown.service
sudo systemctl start pi-shutdown.service
Re: having loading CarPiHat software issues
Posted: Sat Jan 24, 2026 10:59 am
by Hiphouser
I'm testing that...
not working for me