All of lore.kernel.org
 help / color / mirror / Atom feed
* smartcard not detected
@ 2010-04-10 13:09 Raph
  2010-04-11 17:07 ` Kay Sievers
  2010-04-11 21:54 ` Raph
  0 siblings, 2 replies; 3+ messages in thread
From: Raph @ 2010-04-10 13:09 UTC (permalink / raw)
  To: linux-hotplug

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_ID\x1606
E: ID_REVISION\x0100
E: ID_SERIAL=USB2.0_CardReader_SD0_146030377350-0:0
E: ID_SERIAL_SHORT\x146030377350
E: ID_TYPE=disk
E: ID_INSTANCE=0:0
E: ID_BUS=usb
E: ID_USB_INTERFACES=:080650:
E: ID_USB_INTERFACE_NUM\0
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




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: smartcard not detected
  2010-04-10 13:09 smartcard not detected Raph
@ 2010-04-11 17:07 ` Kay Sievers
  2010-04-11 21:54 ` Raph
  1 sibling, 0 replies; 3+ messages in thread
From: Kay Sievers @ 2010-04-11 17:07 UTC (permalink / raw)
  To: linux-hotplug

On Sat, Apr 10, 2010 at 15:09, Raph <gibboris@gmail.com> wrote:
> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: smartcard not detected
  2010-04-10 13:09 smartcard not detected Raph
  2010-04-11 17:07 ` Kay Sievers
@ 2010-04-11 21:54 ` Raph
  1 sibling, 0 replies; 3+ messages in thread
From: Raph @ 2010-04-11 21:54 UTC (permalink / raw)
  To: linux-hotplug

On Sun, Apr 11, 2010 at 07:07:00PM +0200, Kay Sievers wrote:
> On Sat, Apr 10, 2010 at 15:09, Raph <gibboris@gmail.com> wrote:
> > 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:. :)
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.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-04-11 21:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-10 13:09 smartcard not detected Raph
2010-04-11 17:07 ` Kay Sievers
2010-04-11 21:54 ` Raph

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.