Is there an option to just reduce the polling rate ? Once every 10 seconds would have minimal CPU load but still allow inserted cards to be auto mounted.
PeterO
Code: Select all
INIT_DELAYED_WORK(&host->detect, mmc_rescan);
Code: Select all
mmc_schedule_delayed_work(&host->detect, HZ);
I would agree, but my Pi's are up for months at a time, the "one file" fix was my choice.
I updated the original post (viewtopic.php?f=28&t=211912#p1321571) with a check for shutdown. The rebind should not occur during a shutdown.
Just cut and paste the code from the systemd script. The only thing to change is the "%n" value for the /var/run file - replace it with something like "$(basename $0)".
As pointed out by fanoush you need to set it not to check for the card.fanoush wrote: ↑Mon Sep 10, 2018 7:03 pmIt won't just go away, you need to set it up yourself to not to check for card, this is feature, not bug
https://www.raspberrypi.org/forums/view ... 2#p1321458
Code: Select all
dtoverlay=sdtweak,poll_once