2025-04-16, 06:41 PM
(2025-04-16, 06:36 PM)Jay_cd33 Wrote:(2025-04-16, 05:53 PM)ukabroad Wrote: Hi Jay, many thanks for this Hack, unfortunately it doesn't want to stay in place after a reboot. I have tried 3 times and I could post screenshots that are identical to yours but the "comment out #" doesn't seem to survive a reboot so is not there when I return to line 504.
So glad it works for you though.
Cheers
Malcolm
S/Y Freya
Malcolm,
This is weird. I powered up my test RPi5 used in the testing above and the lgpio.py line 504 # was gone. So you are right, the fix doesn't stick. What's really weird is I reapplied the fix and rebooted 3 times and it always stuck. So I tried completed disconnecting power (unplugged) and when I powered up it was still there. So I'm lost as to what sequence causes the lgpio.py library to be overwritten. I currently testing a full power disconnect for a longer period.
I have rebooted my main boat system (with many more devices connected) many times and the fix seems to hold. But why I don't know.
I will continue to investigate. If nothing I'm persistent. I might try taking away write privileges on that file or coming up with a startup script that overwrites with the fixed version on startup.
I'll post if I have any success.
Jay
S/V Priority
Thanks for the prompt response Mate, I will stay tuned
Cheers
Malcolm

