Skip to contentSkip to conversation

smartcard not detected

DISCUSSION Raph 2 participants 3 messages Apr 10, 2010 – Apr 11, 2010

lore
Share & tools
lore

Raph

author
#0 lore raw

Hi,
I'm using an eeepc 701 and just bought a SDHC card which doesn't get detected unless :
- it's plugged at boot time
- I use udevadm trigger
- it has been detected once before (with either the first or second method above)
If it's not an expected behavior below are some infos.

Thanks

Disk /dev/sdc: 4016 MB, 4016570368 bytes
255 heads, 63 sectors/track, 488 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000e9d0c

P: /devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.0/host3/target3:0:0/3:0:0:0/block/sdc
N: sdc
W: 23
S: block/8:32
S: disk/by-id/usb-USB2.0_CardReader_SD0_146030377350-0:0
S: disk/by-path/pci-0000:00:1d.7-usb-0:5:1.0-scsi-0:0:0:0
E: UDEV_LOG=3
E: DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.0/host3/target3:0:0/3:0:0:0/block/sdc
E: MAJOR=8
E: MINOR2
E: DEVNAME=/dev/sdc
E: DEVTYPE=disk
E: SUBSYSTEM=block
E: ID_VENDOR=USB2.0
E: ID_VENDOR_ENC=USB2.0\x20\x20
E: ID_VENDOR_ID 51
E: ID_MODELÊrdReader_SD0
E: ID_MODEL_ENCÊrdReader\x20SD0\x20\x20
E: ID_MODEL_ID06
E: ID_REVISION00
E: ID_SERIAL=USB2.0_CardReader_SD0_146030377350-0:0
E: ID_SERIAL_SHORT6030377350
E: ID_TYPE=disk
E: ID_INSTANCE=0:0
E: ID_BUS=usb
E: ID_USB_INTERFACES=:080650:
E: ID_USB_INTERFACE_NUM
E: ID_USB_DRIVER=usb-storage
E: ID_PATH=pci-0000:00:1d.7-usb-0:5:1.0-scsi-0:0:0:0
E: DEVLINKS=/dev/block/8:32 /dev/disk/by-id/usb-USB2.0_CardReader_SD0_146030377350-0:0 /dev/disk/by-path/pci-0000:00:1d.7-usb-0:5:1.0-scsi-0:0:0:0

#1 lore raw
Quoted 7 lines · Raph

I'm using an eeepc 701 and just bought a SDHC card which doesn't get detected unless :
- it's plugged at boot time
- I use udevadm trigger
- it has been detected once before (with either the first or second method above)
If it's not an expected behavior below are some infos.

Something on system is supposed to poll the device, otherwise media changes are not detected. So either HAL or DeviceKit-disks or udisks usually run and do that. I guess running "touch /dev/sdX" will make the device appear too. That's what a polling process would do, by opening the device every couple of seconds.

Oh, and a SDHC card has not much to do with a smartcard like mentioned in the Subject:. :)

Kay

author
#2 lore raw
In reply to Raph
Quoted 9 lines · Kay Sievers
Quoted 7 lines · Raph

I'm using an eeepc 701 and just bought a SDHC card which doesn't get detected unless :
- it's plugged at boot time
- I use udevadm trigger
- it has been detected once before (with either the first or second method above)
If it's not an expected behavior below are some infos.

Quoted 8 lines

Something on system is supposed to poll the device, otherwise media changes are not detected. So either HAL or DeviceKit-disks or udisks usually run and do that. I guess running "touch /dev/sdX" will make the device appear too. That's what a polling process would do, by opening the device every couple of seconds.

Oh, and a SDHC card has not much to do with a smartcard like mentioned in the Subject:. :)

right, memory card is the word.

I must correct my previous email: the device does not shows up ... in less than 15 seconds, that may be considered as normal but that's more than other devices I plugged in until now.

But, from my last tests, the real problem seems to be that the device doesn't get removed from /dev and /sys/block after a physical removal. That's what wrongly brought me to my 3rd diagnostic in my previous email. I guess that's related to the card reader driver, so... excuse me for the noise.