Page 2 of 3

Re: Shutdown System

Posted: Mon Aug 25, 2025 1:41 pm
by Sambolini94
Having said my part above about my carpihat system, I have been having a weird issue where I get a GIO-LAUNCH-PROCESS (INPUT/OUTPUT ERROR) crash and can't do anything.

Fresh install and only things I've changed this time is add my DAC in /boot/firmware/config.txt

And added a python script detecting gpio25 so when I turn the engine off it should safely shutdown the pi (WORKED FINE ON MY OPENAUTO PRO BUILD) but that seems to not work either.

And running SSD so should be less corrupatble

Re: Shutdown System

Posted: Mon Aug 25, 2025 2:29 pm
by hudiy
This kind of error and the way the desktop looks suggest that your USB drive lost connection to the Raspberry Pi. You can try disconnecting it manually to see if the effect is similar. Check the power supply to your Raspberry Pi - it seems that under certain conditions, the voltage drops enough for the Raspberry Pi to cut off power to the USB ports.

Re: Shutdown System

Posted: Mon Aug 25, 2025 2:44 pm
by Sambolini94
Thanks for the reply on this. My CarPiHat Pro latches power with octocouplers and takes perm live and acc 12v so no issues with the Pi itself.Though I have a 5v usb hub plugged into the buck converter which only turns on when acc and the ssd is plugged in through this... So assume when it cranks or turn engine off the ssd stops working or loses connection 🤔

Re: Shutdown System

Posted: Sun Aug 31, 2025 7:11 pm
by alex124.rh
Sambolini94 wrote: Mon Aug 25, 2025 2:44 pm Thanks for the reply on this. My CarPiHat Pro latches power with octocouplers and takes perm live and acc 12v so no issues with the Pi itself.Though I have a 5v usb hub plugged into the buck converter which only turns on when acc and the ssd is plugged in through this... So assume when it cranks or turn engine off the ssd stops working or loses connection 🤔
Hey,

did you get the car pi hat shutdown script to work? I’m having trouble getting it to work on rpi5 with or without hudiy

Re: Shutdown System

Posted: Mon Sep 08, 2025 11:06 am
by noobychris
@Hudiy: wouldn't it be possible to allow ruinning commands from applications.json?
I was thinking about installing kodi an retropi to my p4b, but didn't found a simple way to start them from hudiy exept register an ation via api.
Maybe a simple "command:" line, where we can put shell commands? Like "sudo shutdown now" or "kodi"

Re: Shutdown System

Posted: Mon Sep 08, 2025 6:12 pm
by hudiy
It should be possible, but we first need to check how labwc behaves when one windowed application launches another. One process may inherit certain environment parameters, which might not necessarily work well between applications.

Re: Shutdown System

Posted: Wed Sep 10, 2025 5:07 pm
by Sambolini94
alex124.rh wrote: Sun Aug 31, 2025 7:11 pm
Sambolini94 wrote: Mon Aug 25, 2025 2:44 pm Thanks for the reply on this. My CarPiHat Pro latches power with octocouplers and takes perm live and acc 12v so no issues with the Pi itself.Though I have a 5v usb hub plugged into the buck converter which only turns on when acc and the ssd is plugged in through this... So assume when it cranks or turn engine off the ssd stops working or loses connection 🤔
Hey,

did you get the car pi hat shutdown script to work? I’m having trouble getting it to work on rpi5 with or without hudiy
Yes works a treat! I had to edit it from the script provided on the wiki page as it had incorrect indents and made it a running service. I am using a Raspberry Pi 4 on a CarPiHAT Pro 5 and works fine

Re: Shutdown System

Posted: Wed Sep 10, 2025 6:33 pm
by alex124.rh
hey thanks for the reply. I was speaking to the creator and he told me I need to add a line to config.TXT however when I add this line it breaks the script did you add the line to config? He said it’s required so that it remove the power latch once it shut down

Re: Shutdown System

Posted: Wed Sep 10, 2025 7:21 pm
by alex124.rh
Sambolini94 wrote: Wed Sep 10, 2025 5:07 pm
alex124.rh wrote: Sun Aug 31, 2025 7:11 pm
Sambolini94 wrote: Mon Aug 25, 2025 2:44 pm Thanks for the reply on this. My CarPiHat Pro latches power with octocouplers and takes perm live and acc 12v so no issues with the Pi itself.Though I have a 5v usb hub plugged into the buck converter which only turns on when acc and the ssd is plugged in through this... So assume when it cranks or turn engine off the ssd stops working or loses connection 🤔
Hey,

did you get the car pi hat shutdown script to work? I’m having trouble getting it to work on rpi5 with or without hudiy
Yes works a treat! I had to edit it from the script provided on the wiki page as it had incorrect indents and made it a running service. I am using a Raspberry Pi 4 on a CarPiHAT Pro 5 and works fine
sorry meant to quote you in my reply

Re: Shutdown System

Posted: Sun Sep 14, 2025 1:28 pm
by wkl3968
I find it hard to stitch all the information above together. so we need to create the script.py, update the dashboards.json and shortcut.json. I gotten the shutdown icon in the dashboard but it didn't do anything. so I think I didn't stitch the information together. any working instruction that can be shared to reduce my learning curve?