-
-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Smartcard not usable after suspend/resume #144
Comments
I can reproduce this compiling from git (c35130f). Compiled with
where |
I do not see any problem on the pcsc-lite or CCID driver side. Just after the resume I see "Card Removed From Alcor Micro AU9540 00 00" so GnuPG should be notified that the card has been "removed" and reset its internal state. It looks like a problem with GnuPG itself. |
Thanks @LudovicRousseau for looking at the logs. The thing is, no matter how I kill/restart |
Try to enable logs in GnuPG. Maybe you will see something interesting. |
And I think there is indeed something interesting. This is what
which is fine I guess, as the reader is powered down. But then when I try to access the card again it logs
so looks like that What still puzzles be a bit is that even if I kill |
OK, I think this is (almost) all wrong. There's a race between GnuPG, Firefox and Thunderbird for access to the smartcard. If I close both Firefox and Thunderbird then smartcard access is fully reliable after suspend/resume. @LudovicRousseau sorry for the bogus bug report and thanks for the pointers. |
Firefox and Thunderbird are using OpenSC to access the OpenPGP card? Maybe you can update GnuPG (or scdaemon) to use a shared PC/SC access instead of an exclusive access as documented in point 3 of How to make GnuPG release exclusive smartcard access?. Or, again, report the problem at GnuPG. GnuPG should be able to work fine even if Firefox is also running. Thanks for the feedback. |
Versions
/usr/sbin/pcscd --version
: pcsc-lite version 1.9.8.Platform
Issue
The smarcard works as usual.
The smartcard isn't detected by GnuPG, even if it shows up in
opensc-tool -l
. Restarting pcscd makes it work again as normal.Log
The attached log file has a comment in the point when I suspend/resume the system.
Note that I never insert PINs: the "Insert PIN" prompt is enough for me to tell that the smartcard is working properly.
Also note that in the whole process I never remove the smartcard: it's already in the reader when I start pcscd, and it stays there up the the end. Once pcscd stops working (after suspend/resume), removing and reinserting the card doesn't make a difference, but pcscd shows the remove/insert events.
log.txt
The text was updated successfully, but these errors were encountered: