Views:
2,260
Votes: 0
✅ Solution
Tags:
sd-card
dmesg
pci
lspci
Link:
🔍 See Original Answer on Ask Ubuntu ⧉ 🔗
URL:
https://askubuntu.com/q/1182400
Title:
SD card insert/remove behaviors not detected until running lspci command
ID:
/2019/10/20/SD-card-insert_remove-behaviors-not-detected-until-running-lspci-command
Created:
October 20, 2019
Upload:
September 15, 2024
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
A lengthy Q&A on Unix & Linux addresses this issue:
After many pages of scrolling the solution is a new udev
rule:
# enable in-kernel media-presence polling
ACTION=="add", SUBSYSTEM=="module", KERNEL=="block", ATTR{parameters/events_dfl_poll_msecs}=="0", ATTR{parameters/events_dfl_poll_msecs}="2000"
ACTION=="add", ATTR{removable}=="1", ATTR{events_poll_msecs}=="-1", ATTR{events_poll_msecs}="2000"
The Q&A is far too long to repost here, but please read the entire link to learn more.