The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 2,114     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: April 8, 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.

⇧ Timezone changes do not persist After upgrading dual boot system from 19.04 to 19.10, unable to boot into Windows from grub menu  ⇩