Thanks Ludovic for the prompt reply. I had already visited your blog,
but it wasn't clear to me which info applied to my situation. It was a
bit too wealthy to find my way at first :-). But anyway, I got it
working.

The reader I am using with my laptop is a build-in O2Micro SmartCardBus Reader. 
It's a 3 in 1 thinkie (OZ711SP1), connected to a Intel Corporation 82801 Mobile 
PCI Bridge:
>> O2 Micro, Inc. OZ711SP1 Memory CardBus Controller (driver: yenta_cardbus) -> 
>> pcmcia socket
>> O2 Micro, Inc. OZ711SP1 Memory CardBus Controller (driver: yenta_cardbus) -> 
>> pcmcia socket (internal) ->  O2Micro SmartCardBus Reader
>> O2 Micro, Inc. Integrated MMC/SD Controller (driver: sdhci-pci) and 
>> Integrated MS/xD Controller (driver: ---, haven't tested it yet if it reads 
>> MS/xD cards)

the yenta_cardbus and sdhci-pci drivers worked out of the box(installing
Ubuntu), to enable the SmartCardBus reader, I found a driver at
http://gna.org/projects/o2scr : o2scr-1.0.8.tar.bz2, this one not really
working out of the box ...

So at last ... getting to the final stage with the help of your comment "... 
access rights on /dev/o2scr0 are not correct and pcscd fails to open the device 
...". Took me some other day of peaking and poking to get my solution by 
creating a file /etc/udev/rules.d/99-xxxxxxxx.rules and add a udev rule in it:
  ACTION!="add", GOTO="pcscd_rules_end"
  KERNEL=="o2scr0", SUBSYSTEM=="ozscrlx", GROUP="pcscd"
  LABEL="pcscd_rules_end"
Had also to remove (comment out) the "exit 0" in /etc/init.d/pcscd as you told 
me and now everything is working smoothly.

I will notify the authors of the driver of the problem. It's source seemed me 
to be up-to-date as it is dated 06-Jun-2012. As it seems me, they have some 
options to change their code:
- adding some chgrp function when the device is created to set the group to 
pcscd (#include <sys/stat.h> ...).
- adding a rule on the fly to some (generic) udev rules file.
- having a prepared udev rules file that is copied to /etc/udev/rules.d when 
installing.

Is it possible to make the installation comment out the "exit 0" line in
/etc/init.d/pcscd ?

It would be nice if there was some generic rule installed with pcscd (or
Ubuntu) that could check if there is a smartcard reader installed, and
then add the right permissions ...   The hardware I use is rather common
on laptops, and I think it's not quite easy for the authors of a driver
to get along with all the changes. Especially when Linux is not
supported by the manufacturer.

Will the future version of  pcsc-lite require another adaptation of the
driver ?

Thanks for coding,
et merci de me mettre sur la bonne route,
Bart Lambrechts.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1061947

Title:
  pcscd (auto)starting and permission troubles

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/1061947/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to