SD card not recognized unless inserted before boot - NEW

I can’t see my SD card reader, /dev/mmcblk0, when a card is hot-plugged, only when it’s plugged in at bootup. This failure is in both Thunar and in fdisk. Unlike previous reports elsewhere on the forum, this behavior is for an internal card reader, and is obtained in both linux514 and linux510 LTS.

Here is the fdisk info when booted with the card in:

[sudo] password for rangle: 
Disk /dev/mmcblk1: 116.48 GiB, 125069950976 bytes, 244277248 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 13ABBF90-416C-4E46-BFBE-44D593A5231B

Device             Start       End   Sectors  Size Type
/dev/mmcblk1p1      2048    206847    204800  100M EFI System
/dev/mmcblk1p2    206848    468991    262144  128M Microsoft reserved
/dev/mmcblk1p3    468992 175204351 174735360 83.3G Microsoft basic data
/dev/mmcblk1p4 242315264 244275199   1959936  957M Windows recovery environment
/dev/mmcblk1p5 175204352 176252927   1048576  512M EFI System
/dev/mmcblk1p6 176252928 242315263  66062336 31.5G Linux filesystem

Partition table entries are not in disk order.


Disk /dev/mmcblk0: 29.72 GiB, 31914983424 bytes, 62333952 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 25E0E025-B582-CE42-8256-DA5593E08C9A

Device          Start      End  Sectors  Size Type
/dev/mmcblk0p1   4096   618495   614400  300M EFI System
/dev/mmcblk0p2 618496 62332927 61714432 29.4G Linux filesystem

When hot-plugged after bootup, only the first disk appears.

My system info:

  Kernel: 5.10.70-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64
  root=UUID=bc207277-4f80-433a-afe1-c622642b980c rw quiet apparmor=1
  security=apparmor udev.log_priority=3
  Desktop: Xfce 4.16.0 tk: Gtk 3.24.29 info: xfce4-panel wm: xfwm 4.16.1 vt: 7
  dm: LightDM 1.30.0 Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Mini-pc System: IP3 Tech product: TX95 v: N/A serial: <filter>
  Mobo: IP3 model: AB1A serial: <filter> UEFI: American Megatrends v: 0.02
  date: 06/30/2020
Memory:
  RAM: total: 7.62 GiB used: 1.51 GiB (19.8%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: Quad Core model: Intel Celeron N3450 bits: 64 type: MCP arch: Goldmont
  family: 6 model-id: 5C (92) stepping: 9 microcode: 44 cache: L2: 1024 KiB
  bogomips: 8756
  Speed: 796 MHz min/max: 800/2200 MHz Core speeds (MHz): 1: 796 2: 788 3: 782
  4: 792
  Flags: 3dnowprefetch acpi aes aperfmperf apic arat arch_capabilities
  arch_perfmon art bts cat_l2 clflush clflushopt cmov constant_tsc cpuid
  cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts ept ept_ad erms est
  flexpriority fpu fsgsbase fxsr ht ibpb ibrs ida intel_pt lahf_lm lm mca mce
  md_clear mmx movbe mpx msr mtrr nonstop_tsc nopl nx pae pat pbe pclmulqdq
  pdcm pdpe1gb pebs pge pln pni popcnt pse pse36 pts rdrand rdseed rdt_a
  rdtscp rep_good sdbg sep sha_ni smap smep ss sse sse2 sse4_1 sse4_2 ssse3
  stibp syscall tm tm2 tpr_shadow tsc tsc_adjust tsc_deadline_timer
  tsc_known_freq tsc_reliable vme vmx vnmi vpid x2apic xgetbv1 xsave xsavec
  xsaveopt xsaves xtopology xtpr
  Vulnerabilities: Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: spec_store_bypass status: Not affected
  Type: spectre_v1
  mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional,
  IBRS_FW, STIBP: disabled, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel HD Graphics 500 driver: i915 v: kernel bus-ID: 00:02.0
  chip-ID: 8086:5a85 class-ID: 0300
  Display: x11 server: X.Org 1.20.13 compositor: xfwm4 v: 4.16.1 driver:
  loaded: modesetting alternate: fbdev,vesa display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")
  s-diag: 582mm (22.9")
  Monitor-1: HDMI-1 res: 1920x1080 hz: 60 dpi: 85 size: 575x323mm (22.6x12.7")
  diag: 660mm (26")
  OpenGL: renderer: Mesa Intel HD Graphics 500 (APL 2) v: 4.6 Mesa 21.2.3
  direct render: Yes
Audio:
  Device-1: Intel Celeron N3350/Pentium N4200/Atom E3900 Series Audio Cluster
  driver: snd_hda_intel v: kernel alternate: snd_soc_skl,snd_sof_pci
  bus-ID: 00:0e.0 chip-ID: 8086:5a98 class-ID: 0403
  Sound Server-1: ALSA v: k5.10.70-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.19 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.38 running: no
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
  driver: r8169 v: kernel port: e000 bus-ID: 01:00.0 chip-ID: 10ec:8168
  class-ID: 0200
  IF: enp1s0 state: down mac: <filter>
  Device-2: Intel Wireless 3165 driver: iwlwifi v: kernel bus-ID: 02:00.0
  chip-ID: 8086:3165 class-ID: 0280
  IF: wlp2s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
  broadcast: <filter>
  IF-ID-1: nordlynx state: unknown speed: N/A duplex: N/A mac: N/A
  IP v4: <filter> scope: global
  WAN IP: <filter>
Bluetooth:
  Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8
  bus-ID: 1-7:5 chip-ID: 8087:0a2a class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 1 state: down bt-service: disabled
  rfk-block: hardware: no software: yes address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 235.56 GiB used: 91.57 GiB (38.9%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/mmcblk0 maj-min: 179:24 model: SD128 size: 119.08 GiB block-size:
  physical: 512 B logical: 512 B type: SSD serial: <filter> scheme: GPT
  ID-2: /dev/mmcblk1 maj-min: 179:0 vendor: HP model: DF4128 size: 116.48 GiB
  block-size: physical: 512 B logical: 512 B type: SSD serial: <filter>
  rev: 0x8 scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 31.5 GiB size: 30.83 GiB (97.88%) used: 8.52 GiB (27.6%)
  fs: ext4 dev: /dev/mmcblk1p6 maj-min: 179:6 label: N/A
  uuid: bc207277-4f80-433a-afe1-c622642b980c
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%)
  used: 292 KiB (0.1%) fs: vfat dev: /dev/mmcblk1p5 maj-min: 179:5
  label: NO_LABEL uuid: 3DC8-0D77
  ID-3: /mnt/win raw-size: 83.32 GiB size: 83.32 GiB (100.00%)
  used: 60.86 GiB (73.0%) fs: ntfs dev: /dev/mmcblk1p3 maj-min: 179:3
  label: OS uuid: 7802BE5802BE1AD8
  ID-4: /run/media/rangle/3dc19cb6-3dd3-485f-b4a2-90427e643251
  raw-size: 118.79 GiB size: 116.87 GiB (98.39%) used: 22.19 GiB (19.0%)
  fs: ext4 dev: /dev/mmcblk0p2 maj-min: 179:26 label: N/A
  uuid: 3dc19cb6-3dd3-485f-b4a2-90427e643251
Swap:
  Alert: No swap data was found.
Unmounted:
  ID-1: /dev/mmcblk0p1 maj-min: 179:25 size: 300 MiB fs: vfat label: N/A
  uuid: 6EF9-53C7
  ID-2: /dev/mmcblk1p1 maj-min: 179:1 size: 100 MiB fs: vfat label: SYSTEM
  uuid: C2B5-68AC
  ID-3: /dev/mmcblk1p2 maj-min: 179:2 size: 128 MiB fs: <superuser required>
  label: N/A uuid: N/A
  ID-4: /dev/mmcblk1p4 maj-min: 179:4 size: 957 MiB fs: ntfs label: Recovery
  uuid: 08B2BED7B2BEC888
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 8 rev: 2.0
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-2: 1-1:2 info: Hitachi ports: 4 rev: 2.0 speed: 480 Mb/s
  chip-ID: 045b:0209 class-ID: 0900
  Device-1: 1-2:3 info: Microdia USB Device type: Keyboard,Mouse
  driver: hid-generic,usbhid interfaces: 4 rev: 1.1 speed: 12 Mb/s
  power: 100mA chip-ID: 0c45:8101 class-ID: 0301
  Device-2: 1-3:4 info: China Resource Semico USB Keyboard type: Keyboard,HID
  driver: hid-generic,usbhid interfaces: 2 rev: 1.1 speed: 1.5 Mb/s
  power: 98mA chip-ID: 1a2c:2c27 class-ID: 0300
  Device-3: 1-7:5 info: Intel Bluetooth wireless interface type: Bluetooth
  driver: btusb interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA
  chip-ID: 8087:0a2a class-ID: e001
  Hub-3: 2-0:1 info: Full speed (or root) Hub ports: 7 rev: 3.0 speed: 5 Gb/s
  chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 50.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 209 Uptime: 5m wakeups: 1 Init: systemd v: 249 tool: systemctl
  Compilers: gcc: 11.1.0 Packages: pacman: 1198 lib: 338 Shell: Bash v: 5.1.8
  running-in: xfce4-terminal inxi: 3.3.08

My lspci with card unplugged at boot:

00:00.0 Host bridge: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series Host Bridge (rev 0b)
00:00.1 Signal processing controller: Intel Corporation Device 5a8c (rev 0b)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 500 (rev 0b)
00:0e.0 Audio device: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series Audio Cluster (rev 0b)
00:0f.0 Communication controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series Trusted Execution Engine (rev 0b)
00:12.0 SATA controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series SATA AHCI Controller (rev 0b)
00:13.0 PCI bridge: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series PCI Express Port A #1 (rev fb)
00:13.3 PCI bridge: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series PCI Express Port A #4 (rev fb)
00:15.0 USB controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series USB xHCI (rev 0b)
00:16.0 Signal processing controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller #1 (rev 0b)
00:16.1 Signal processing controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller #2 (rev 0b)
00:16.2 Signal processing controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller #3 (rev 0b)
00:16.3 Signal processing controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller #4 (rev 0b)
00:17.0 Signal processing controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller #5 (rev 0b)
00:17.1 Signal processing controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller #6 (rev 0b)
00:17.2 Signal processing controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller #7 (rev 0b)
00:17.3 Signal processing controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller #8 (rev 0b)
00:18.0 Signal processing controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series HSUART Controller #1 (rev 0b)
00:18.1 Signal processing controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series HSUART Controller #2 (rev 0b)
00:18.2 Signal processing controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series HSUART Controller #3 (rev 0b)
00:18.3 Signal processing controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series HSUART Controller #4 (rev 0b)
00:19.0 Signal processing controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series SPI Controller #1 (rev 0b)
00:19.1 Signal processing controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series SPI Controller #2 (rev 0b)
00:19.2 Signal processing controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series SPI Controller #3 (rev 0b)
00:1b.0 SD Host controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series SDXC/MMC Host Controller (rev 0b)
00:1c.0 SD Host controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series eMMC Controller (rev 0b)
00:1e.0 SD Host controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series SDIO Controller (rev 0b)
00:1f.0 ISA bridge: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series Low Pin Count Interface (rev 0b)
00:1f.1 SMBus: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series SMBus Controller (rev 0b)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
02:00.0 Network controller: Intel Corporation Wireless 3165 (rev 91)

To my uninformed eye, it looks like the device is active even when empty, so I don’t have a good idea how to get hot-plugging to work. Any help would be appreciated.

R