i has looked around the whole evening in the internet to fix an issue with my internal card reader. I found many with an similar problem, but i don't found any solution which fits for me. Maybe another one knows a solution.
I have an SD/MMC card reader connected to an internal USB connector on my motherboard. The device is recognized by the kernel (vanilla-sources 3.10.10) on boot. But it does not recognize cards if i insert a card. If i leave the card inside and unload the usb_storage module and reload it, then the device is found and also the card in it.
Device found on boot:
[ 4.448061] scsi 6:0:0:0: Direct-Access Generic 2.0 Reader-CF 1.00 PQ: 0 ANSI: 0 CCS [ 4.448583] sd 6:0:0:0: Attached scsi generic sg5 type 0 [ 4.479799] scsi 6:0:0:1: Direct-Access Generic 2.0 Reader-Multi 1.00 PQ: 0 ANSI: 0 CCS [ 4.480756] sd 6:0:0:1: Attached scsi generic sg6 type 0 [ 4.484380] sd 6:0:0:0: [sde] Attached SCSI removable disk [ 4.485878] sd 6:0:0:1: [sdf] Attached SCSI removable disk
# rmmod usb_storage && modprobe usb_storage
with card inside does
[ 2231.593647] usbcore: deregistering interface driver usb-storage [ 2231.602506] usb-storage 2-1.1:1.0: USB Mass Storage device detected [ 2231.602562] scsi8 : usb-storage 2-1.1:1.0 [ 2231.602855] usbcore: registered new interface driver usb-storage [ 2232.635584] scsi 8:0:0:0: Direct-Access Generic 2.0 Reader-CF 1.00 PQ: 0 ANSI: 0 CCS [ 2232.636012] sd 8:0:0:0: Attached scsi generic sg5 type 0 [ 2232.667429] scsi 8:0:0:1: Direct-Access Generic 2.0 Reader-Multi 1.00 PQ: 0 ANSI: 0 CCS [ 2232.668029] sd 8:0:0:1: Attached scsi generic sg6 type 0
and KDE is asking me nice what i want to do with this storage device. So what's missed or what i'm doing wrong. Maybe are a bug?!
Last edited by balticer (2013-09-02 20:47:40)
ok i'm a step further. it seems that under windows this device is polled to check for new cards inserted. question now is which software will do this under linux? the kernel itself or udisks?
i could fix it. The magical parameter is "/sys/module/block/parameters/events_dfl_poll_msecs" set it to 1000 or 2000.
echo 1000 > /sys/module/block/parameters/events_dfl_poll_msecs
Then make a Test. If you want to have it permanent add it as boot option
Maybe other solutions via udev are also exists (but i don't know about this stuff yet).