Luca Capello a écrit :
I finally found how to detect both events (insertion/removal):

  
MODALIAS=="pcmcia:m0157c0100f02fn00pfn00pa0981590FpbE9010D26pcDDC63BD8pd00000000",
 \
   RUN+="/usr/sbin/pcscd --hotplug"

Great.

Where does the value "m0157c0...00000" comes from?
Does it contain a serial number of your device or something like that or
does it work with any GemPC Card reader?

Is it possible to reduce this number?  Even with --critical (which
option BTW cannot be easily set) the ccid_serial.c error line is still
printed.
The problem is not to reduce the number of messages displayed but tell
pcscd that the reader is no more there.

I think this bug is the sum of three different bugs:

1) pcscd init scripts can set the debug level (option $DAEMON_ARGS), but
   there's no easy way to do it (e.g. in /etc/default/pcscd).

I can add a documentation about $DAEMON_ARGS in the pcscd init script and include /etc/default/pcscd if present.
Do you need something else?

2) libccid ships udev rules that depend on pcscd, which is only
   recommended by libccid.  I'd suggest to ship these rules in pcscd,
   instead, since the latter depends on libccid anyway.

I don't see the problem that would be solved.

The udev rule file should disappear in the future (at least for USB readers).

3) an udev rules to detect PCMCIA card readers insertion/removal would
   be nice.

Sure. If your rule above works for any GemPC Card reader I will add it.

Bye

--
 Dr. Ludovic Rousseau



Reply via email to