[SOLVED] SD card reader doesn't work (MX-16 on DELL Latitude 3150)

Report Bugs, Issues and non- package Requests
Message
Author
User avatar
MX-16_fan
Posts: 331
Joined: Mon Feb 13, 2017 12:09 pm

[SOLVED] SD card reader doesn't work (MX-16 on DELL Latitude 3150)

#1 Post by MX-16_fan »

Hi everyone,

I installed MX-16 on a DELL 3150 but the built-in card reader doesn't work. It worked fine in the past with some other older Linux distribution, so this is a regression.

This seems to be a problem that has something to do with the kernel and/or its parameters (see https://bugzilla.kernel.org/show_bug.cgi?id=109231#c3, https://bugs.launchpad.net/ubuntu/+sour ... ug/1523178).

I can get it running when I do this as a workaround:

Code: Select all

sudo rmmod sdhci_pci sdhci_acpi
sudo rmmod sdhci
sudo modprobe sdhci debug_quirks2="0x10000"
sudo modprobe sdhci_pci
I tried to add this workaround permanently to Grub using the Grub Customizer GUI, my kernel parameters in the Grub Customizer GUI now reading
zswap.zpool=zsmalloc BOOT_IMAGE=/antiX/vmlinuz quiet debug_quirks2=0x10000
Unfortunately this doesn't do the job. I don't know why.

Maybe you want to put this bug in the tracker, plus inform upstream about this from an "MX-16 perspective"?

The machine runs an Intel N3540 processor.


Greetings, Joe
Last edited by MX-16_fan on Mon Aug 07, 2017 4:08 am, edited 1 time in total.

User avatar
v3g4n
Posts: 654
Joined: Sat Jan 16, 2016 8:20 pm

Re: SD card reader doesn't work (MX-16 on DELL Latitude 3150)

#2 Post by v3g4n »

Please post the contents of /etc/default/grub.
Also, is it safe to assume that you ran update-grub after you made those changes?

User avatar
rokytnji.1
Global Moderator
Posts: 718
Joined: Sun Apr 13, 2014 9:06 pm

Re: SD card reader doesn't work (MX-16 on DELL Latitude 3150)

#3 Post by rokytnji.1 »

Laptop specs for readers of this thread

http://www.notebookcheck.net/Dell-Latit ... 442.0.html

Edit: booted up my Dell E4310 whose card reader works. But I use AntiX.

Code: Select all

$ inxi -Fxz
System:    Host: biker Kernel: 4.10.1-antix.1-686-smp-pae i686 (32 bit gcc: 4.9.3) Desktop: IceWM 1.3.8
           Distro: antiX-15-V_386-full Killah P 30 June 2015
Machine:   Device: laptop System: Dell product: Latitude E4310 v: 0001
           Mobo: Dell model: 0T6M8G v: A01 BIOS: Dell v: A03 date: 07/08/2010
Battery    BAT0: charge: 44.0 Wh 109.4% condition: 40.2/44.0 Wh (91%)
           model: Samsung SDI DELL RM6618A status: Full
CPU:       Dual core Intel Core i5 M 520 (-HT-MCP-) cache: 3072 KB
           flags: (lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 9576
           clock speeds: max: 2400 MHz 1: 1333 MHz 2: 1333 MHz 3: 1866 MHz 4: 1866 MHz
Graphics:  Card: Intel Core Processor Integrated Graphics Controller bus-ID: 00:02.0
           Display Server: X.Org 1.16.4 drivers: intel (unloaded: modesetting,fbdev,vesa)
           Resolution: 1366x768@60.00hz
           GLX Renderer: Mesa DRI Intel Ironlake Mobile x86/MMX/SSE2
           GLX Version: 2.1 Mesa 10.3.2 Direct Rendering: Yes
Audio:     Card Intel 5 Series/3400 Series High Definition Audio driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture v: k4.10.1-antix.1-686-smp-pae
Network:   Card-1: Intel 82577LM Gigabit Network Connection driver: e1000e v: 3.2.6-k port: 6040 bus-ID: 00:19.0
           IF: eth0 state: down mac: <filter>
           Card-2: Intel Centrino Advanced-N 6200 driver: iwlwifi bus-ID: 02:00.0
           IF: wlan0 state: up mac: <filter>
Drives:    HDD Total Size: 60.0GB (43.4% used)
           ID-1: /dev/sda model: KINGSTON_SV300S3 size: 60.0GB
Partition: ID-1: / size: 7.6G used: 4.1G (57%) fs: ext3 dev: /dev/sda2
           ID-2: /home size: 48G used: 21G (46%) fs: ext3 dev: /dev/sda1
Sensors:   System Temperatures: cpu: 61.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 183 Uptime: 32 min Memory: 438.6/8026.6MB Init: SysVinit runlevel: 5 Gcc sys: 4.9.2
           Client: Shell (bash 4.3.301) inxi: 2.3.8 

Code: Select all

harry@biker:~
$ cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
GRUB_INIT_TUNE="480 440 1"

GRUB_DISABLE_OS_PROBER=false
GRUB_BACKGROUND=/usr/share/wallpaper/back.jpg 
harry@biker:~
Plug in a old Kodak camera 128MB SD card card to test. SpaceFM automounts it for me.

Code: Select all

sudo fdisk -l
<snip>
Disk /dev/mmcblk0: 123 MB, 123379200 bytes
255 heads, 63 sectors/track, 15 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

       Device Boot      Start         End      Blocks   Id  System 
/dev/mmcblk0p1               1          16      128488    b  FAT32
You'll see in my inxi readout. I run a 60 gig SSD hard drive like your Dell does <yours is just bigger capacity than mine>
All my kernels which pick up my card reader slot are

Code: Select all

$ dpkg --list | grep linux-image
ii  linux-image-4.10.1-antix.1-686-smp-pae   4.10.1-antix.1-686-smp-pae-3         i386         Linux kernel, version 4.10.1-antix.1-686-smp-pae
rc  linux-image-4.2.1-antix.2-686-pae        4.2.1-antix.2-686-pae-7              i386         Linux kernel, version 4.2.1-antix.2-686-pae
ii  linux-image-4.8.1-antix.1-686-smp-pae    4.8.1-antix.1-686-smp-pae-2          i386         Linux kernel, version 4.8.1-antix.1-686-smp-pae
Yeah. I know. Comparing apples and pineapples. But I figure the info don't hurt none. Since it is my effort wasted. Not yours.

User avatar
Stevo
Developer
Posts: 12837
Joined: Fri Dec 15, 2006 8:07 pm

Re: SD card reader doesn't work (MX-16 on DELL Latitude 3150)

#4 Post by Stevo »

Since it seems to be a kernel bug, which kernel are you running? Have you tried any other kernels to see if the bug persists with those?

User avatar
JLS727
Posts: 40
Joined: Sat May 02, 2015 4:18 pm

Re: SD card reader doesn't work (MX-16 on DELL Latitude 3150)

#5 Post by JLS727 »

I have a Dell Latitude 3160 which is like the 3150 except it has touch screen capability. On my machine it exhibits the same error on startup, but the sd card reader will still read an SD card that is 32 gb or smaller only. Since I normally use a 128 gb card it won't read that which is inconvenient and I hope newer kernels will allow it to recognize larger SD Cards. In case you're wondering, I dual boot with Windows 10 and the 128 gb card works fine with Windows 10, just not linux. I have tried other linux kernels up to and including 4.8 and they don't help. I was hoping that 4.10 or 4.11 would do the trick. :crossfingers: Thanks.

User avatar
MX-16_fan
Posts: 331
Joined: Mon Feb 13, 2017 12:09 pm

Re: SD card reader doesn't work (MX-16 on DELL Latitude 3150)

#6 Post by MX-16_fan »

@v3g4n:
v3g4n wrote:Please post the contents of /etc/default/grub.
There you go:

Code: Select all

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT="0"
GRUB_TIMEOUT="5"
GRUB_DISTRIBUTOR="`lsb_release -d -s 2> /dev/null || echo Debian`"
GRUB_CMDLINE_LINUX_DEFAULT="zswap.zpool=zsmalloc BOOT_IMAGE=/antiX/vmlinuz quiet debug_quirks2=0x10000"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL="console"

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE="640x480"

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID="true"

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

GRUB_DISABLE_OS_PROBER="false"
GRUB_BACKGROUND="/usr/local/share/backgrounds/MX16/grub/maine-sunrise-grub.png"

#GRUB_DISABLE_LINUX_RECOVERY="true"
v3g4n wrote:Also, is it safe to assume that you ran update-grub after you made those changes?
Yes.


Greetings, Joe

User avatar
MX-16_fan
Posts: 331
Joined: Mon Feb 13, 2017 12:09 pm

Re: SD card reader doesn't work (MX-16 on DELL Latitude 3150)

#7 Post by MX-16_fan »

@Stevo:

Stevo wrote:Since it seems to be a kernel bug, which kernel are you running?
Linux 4.7.0-0.bpo.1-amd64 (x86_64).

Stevo wrote:Have you tried any other kernels to see if the bug persists with those?
No. For security reasons I tend to stick to the newest standard kernel. I did, however, read somewhere that regressions concerning a card reader from this manufacturer came with 4.x.


Greetings, Joe

User avatar
JLS727
Posts: 40
Joined: Sat May 02, 2015 4:18 pm

Re: SD card reader doesn't work (MX-16 on DELL Latitude 3150)

#8 Post by JLS727 »

Yesterday I installed the latest kernel from the test repo using MX Tools on my Latitude 3160. My computer would not even boot. It just kept giving errors due to SD card reader when trying to startup. I had to boot into the old kernel, which works except it does not recognize my sd card reader with an sd card larger than 32 gig. I finally was able to remove the new kernel by using synaptic and updating my grub menu. I was very surprised that a much newer kernel would work so badly on my hardware. :frown:

User avatar
cpoakes
Posts: 10
Joined: Wed Dec 14, 2016 9:36 pm

Re: SD card reader doesn't work (MX-16 on DELL Latitude 3150)

#9 Post by cpoakes »

Since you have a working set of rmmod and modprobe commands, you can use /etc/modprobe.d configuration to automatically blacklist the removed modules and add the probed modules at boot. Arch (as usual) provides excellent documentation for configuring Kernel Modules.

User avatar
MX-16_fan
Posts: 331
Joined: Mon Feb 13, 2017 12:09 pm

Re: SD card reader doesn't work (MX-16 on DELL Latitude 3150)

#10 Post by MX-16_fan »

@cpoakes:
cpoakes wrote:Since you have a working set of rmmod and modprobe commands, you can use /etc/modprobe.d configuration to automatically blacklist the removed modules and add the probed modules at boot. Arch (as usual) provides excellent documentation for configuring Kernel Modules.
Thanks a lot for the hint. Would you think a non-quirks solution will be available (again) any time soon? Greetings, Joe

Post Reply

Return to “Bugs and Non-Package Requests Forum”