In dmesg when I mount the microSD card, this messages show up:
[ 6736.205209] pcieport 0000:00:1c.4: Intel SPT PCH root port ACS workaround enabled
[ 6736.575571] mmc0: cannot verify signal voltage switch
[ 6738.717896] EXT4-fs (dm-2): mounted filesystem with ordered data mode. Quota mode: none.
[6744.283290] mmc0: cannot verify signal voltage switch
but it works fine.
(The mmc0: cannot verify signal voltage switch
sometimes shows up multiple times.)
As soon as I connect my Bluetooth page-turner (a device that simply emulates a keyboard and mouse) the following messages showing up in dmesg:
[ 5732.626386] hid-generic 0005:0A5C:8502.0013: unknown main item tag 0x0
[ 5732.626548] input: Premium Pedal Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/bluetooth/hci0/hci0:7/0005:0A5C:8502.0013/input/input56
[ 5732.626934] input: Premium Pedal Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/bluetooth/hci0/hci0:7/0005:0A5C:8502.0013/input/input57
[ 5732.627046] input: Premium Pedal as /devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/bluetooth/hci0/hci0:7/0005:0A5C:8502.0013/input/input58
[ 5732.627207] hid-generic 0005:0A5C:8502.0013: input,hidraw8: BLUETOOTH HID v1.1b Keyboard [Premium Pedal] on 9c:b6:d0:94:28:02
and immediately after that I get:
[ 6406.641955] EXT4-fs (dm-2): unmounting filesystem.
[ 6406.653274] pcieport 0000:00:1c.4: Intel SPT PCH root port ACS workaround enabled
[ 6407.023496] mmc0: cannot verify signal voltage switch
[ 6407.263056] mmcblk0: p1
and sometimes I get this instead:
[ 5735.718297] pcieport 0000:00:1c.4: Intel SPT PCH root port ACS workaround enabled
[ 5736.085271] mmc0: cannot verify signal voltage switch
[ 5736.279076] sdb: detected capacity change from 488374272 to 0
In both cases my SD card got unmounted.
When I mount the card again, the Bluetooth device stays connected and everythings works as expected with dmesg showing:
[ 6329.169995] pcieport 0000:00:1c.4: Intel SPT PCH root port ACS workaround enabled
[ 6329.552993] mmc0: cannot verify signal voltage switch
[ 6331.651586] EXT4-fs (dm-2): mounted filesystem with ordered data mode. Quota mode: none.
[ 6342.873166] mmc0: cannot verify signal voltage switch
But once my Bluetooth device disconnects and connects again, the SD card unmounts again…
lspci
of my interal SD card reader:
03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader (rev 01)
Subsystem: Dell Device 080d
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 145
IOMMU group: 14
Region 1: Memory at ec300000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
Kernel driver in use: rtsx_pci
Kernel modules: rtsx_pci
lsblk of the SD card after getting unmounted:
sdb 8:16 1 0B 0 disk
mmcblk0 179:0 0 477.5G 0 disk
└─mmcblk0p1 179:1 0 477.5G 0 part
lsblk of the SD card after getting mounted again:
mmcblk0 179:0 0 477.5G 0 disk
└─mmcblk0p1 179:1 0 477.5G 0 part
└─luks-d81eacbd-4426-4966-aee7-1fe4e8a290aa 253:2 0 477.5G 0 crypt /run/media/fedora/MicroSD
btmon
reports the following when the device connects:
https://pastebin.com/WjfwP5eB (log is too long to post here directly)
But he unmounting (or to be more accurate, the eject icon that Gnome displays as a screen overlay, when it unmounts the SD card) happens roughly when these messages show up in btmon:
> ACL Data RX: Handle 11 flags 0x02 dlen 10 #63 [hci0] 10.389123
Channel: 65 len 6 [PSM 19 mode Basic (0x00)] {chan 1}
a1 02 00 00 04 00 ......
> ACL Data RX: Handle 11 flags 0x02 dlen 10 #64 [hci0] 10.390374
Channel: 65 len 6 [PSM 19 mode Basic (0x00)] {chan 1}
a1 02 00 00 00 00 ......
Any ideas what could be the cause and how I can fix this? This doesn’t happen when other Bluetooth devices connect btw. (Tested with a Bluetooth mouse and Bluetooth headphones.)