Kernel update breaks RPi.GPIO

Started by CaptainSandwich, March 18, 2024, 01:03:26 AM

CaptainSandwich

After performing an update of my pi, my ATXRaspi no longer provided a 'BootOK' indication or responded to shutdown button presses. Shutdownirq.py was not running, and after modifying the file to show exceptions, the edge detection pause was the culprit.

Per https://github.com/raspberrypi/linux/issues/6037, a kernel update has broken edge detection in RPi.GPIO. No official solution yet, but gpiozero/rpi-lgpio may be an option? https://waldorf.waveform.org.uk/2022/the-one-where-dave-breaks-stuff.html

Felix

Did you consider upgrading the distribution entirely, rather than doing an in place kernel update?

CaptainSandwich

Quote from: Felix on March 18, 2024, 10:17:35 AM
Did you consider upgrading the distribution entirely, rather than doing an in place kernel update?

No, I don't expect the outcome would be any different. According to https://github.com/raspberrypi/linux/issues/6037#issuecomment-1995164607, this was a deliberate change knowing that it would break existing libraries until they're updated.