You are not logged in.

#1 2011-06-20 14:32:15

Atragor
Member
Registered: 2009-02-28
Posts: 59

[SOLVED] Card reader doesn't recognize inserted memory cards

I have 3.5" 13-In-One Sony MRW620B4AU6 card reader in my HTPC. There are two slots for memory cards (they are always visible as /dev/sdb and /dev/sdc) and one USB port.

When I insert USB stick, everything is fine - it's recognized, relevant messages appear in messages.log and two devices appear in /dev: /dev/sde and /dev/sde1.

But memory cards don't work in this way. If I turn on the computer with a memory card inserted, the system recognizes the partition on it and adds /dev/sdb1 to /dev/. But when I insert the card when the computer is working, nothing happens - output of dmesg doesn't change, new block device doesn't appear in /dev/, "udevadm monitor" shows nothing, therefore automounting doesn't happen (I use a rule for udev copied from ArchWiki).

And that's not all. If I execute "fdisk -l /dev/sdb" the system reacts immediately: /dev/sdb1 appears and udev performs automounting.

I've thought that it's connected with USB autosuspend feature somehow, but it happens even if I pass "autosuspend=0" option to usbcore module. I've also compared the output of "lsmod" after booting with and without memory card: both outputs are the same.

The version of the kernel is 2.6.39-ARCH. There is some information about card reader:

Bus 001 Device 003: ID 0bda:0156 Realtek Semiconductor Corp. Mass Storage Device
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0bda Realtek Semiconductor Corp.
  idProduct          0x0156 Mass Storage Device
  bcdDevice           56.91
  iManufacturer           1 Generic
  iProduct                2 USB2.0-CRW
  iSerial                 3 20060413092100000
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          4 CARD READER
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk (Zip)
      iInterface              5 Bulk-In, Bulk-Out, Interface
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0000
  (Bus Powered)

I've also noticed that the card reader on my laptop behaves slightly differently: both devices (/dev/sdb and /dev/sdb1) appear only when I insert a card and disappear when I remove it. Don't know whether it's relevant or not.

I would appreciate any ideas on how to solve this problem. Thanks in advance.

update: It seems that I didn't read ArchWiki carefully enough. Inserted cards weren't detected because I hadn't installed udisks package. After installation everything works perfectly.

Last edited by Atragor (2011-07-16 14:13:42)

Offline

Board footer

Powered by FluxBB