Card Reader Issues in Ubuntu 19.04 on Dell XPS 13 9380

unix-tutorial

It appears there’s a long-standing malfunction of various microSD card readers running Linux. In my particular case, the issue happens on XPS 13 9380 laptop running latest Ubuntu 19.04 with all the updates as of early July 2019. I’ll update this post once I confirm the fix.

Card Reader Device on Dell XPS 13 9380

I believe this is the device I have have:

root@xps:~ #  lspci | grep -i reader
01:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader (rev 01)

mmc0: error -110 whilest initialising SD card

The error message is a bit strange: I’m not trying to initialise my SD card, but instead want to read it. It’s a pretty standard 128GB microSD by SanDisk, but I think part of the problem is that it’s a high-speed SDXC card and the issue is that card reader can’t support the card because it’s running on slower speeds by default.

Here’s how the error looks:

Jul 2 14:02:43 xps kernel: [18743.768947] mmc0: error -110 whilst initialising SD card
Jul 2 14:02:44 xps kernel: [18745.108865] mmc0: error -110 whilst initialising SD card
Jul 2 14:02:46 xps kernel: [18746.452902] mmc0: error -110 whilst initialising SD card

Reloading SDHCI Kernel Module with debug_quirks

One of the common fixes for the problem is to reload kernel module sdhci with debug parameters that assist with improved voltage required for higher speeds.

Unfortunately, this fix didn’t work for me:

$ sudo modprobe sdhci debug_quirks2="0x80000000"

Syslog reports that module has been reloaded:

Jul 06 12:22:01 xps kernel: sdhci: Secure Digital Host Controller Interface driver 
Jul 06 12:22:01 xps kernel: sdhci: Copyright(c) Pierre Ossman

… but when I insert the code I still get the same error:

Jul 06 12:24:43 xps kernel: mmc0: error -110 whilst initialising SD card
Jul 06 12:24:45 xps kernel: mmc0: error -110 whilst initialising SD card
Jul 06 12:24:46 xps kernel: mmc0: error -110 whilst initialising SD card

I’m glad I also have an external card reader with USB-C interface, it works just fine with perfect access to the same microSD card. But ideally I want to fix this issue for the build-in card reader.

See Also

 




Ubuntu 19.04 Released

2019-04-19_22-20-31

Pretty cool! Next version of Ubuntu, 19.04 (Disco Dingo) has just been released. I couldn’t wait to try it in my VirtualBox setup – seems there are lots of performance improvements that are noticeable even in a virtual machine!

Seems 2GB is the minimum RAM for Ubuntu 19.04

The installer kept freezing on me, I coudln’t understand why. I even upgraded VirtualBox from 6.0.4 to 6.0.6 – quite a few bugs fixed, you know. But this didn’t help with my issue and eventually I realised: Ubuntu 19.04 needs more than 1GB of RAM to work properly. Once I upgraded VM RAM to 2GB, the installer worked just fine:

Ubuntu 19.04 runs on Linux Kernel 5.0.0

One of the reasons Ubuntu 19.04 is promised to be such an improvement performance wise: it’s running on Linux Kernel 5.0.0:

2019-04-19_22-24-07

Have you installed Ubuntu 19.04 yet? What do you think?

See Also