[Pcsclite-muscle] need to restart pcscd for USB after boot

Ludovic Rousseau ludovic.rousseau at gmail.com
Wed Aug 16 02:00:57 PDT 2023


Le mer. 16 août 2023 à 09:11, Johannes Berg
<johannes at sipsolutions.net> a écrit :
>
> Hi,

Hello,

> I've been using a yubikey for years now with pcscd to use gpg/ssh, and
> sadly this issue hasn't really been getting any better; if anything, it
> has gotten worse throughout time. Could be something kernel related too,
> I suppose.
>
> Anyway, almost every time I boot my machine, I need to manually restart
> pcscd before it will talk to my yubikey. Originally I thought maybe it's
> related to whether I have it plugged in while booting or not, but really
> it isn't, I normally don't have it plugged in, and yet it won't work
> until I've restarted pcscd. Which is then fine until I reboot again. For
> the record, this is with various recent versions of Fedora, and
>
> pcsc-lite version 1.9.9.
> Copyright (C) 1999-2002 by David Corcoran <corcoran at musclecard.com>.
> Copyright (C) 2001-2022 by Ludovic Rousseau <ludovic.rousseau at free.fr>.
> Copyright (C) 2003-2004 by Damien Sauveron <sauveron at labri.fr>.
> Report bugs to <pcsclite-muscle at lists.infradead.org>.
> Enabled features: Linux x86_64-redhat-linux-gnu libsystemd serial usb
> libudev usbdropdir=/usr/lib64/pcsc/drivers ipcdir=/run/pcscd filter
> configdir=/etc/reader.conf.d
> MAX_READERNAME: 128, PCSCLITE_MAX_READERS_CONTEXTS: 16
>
>
> I'm not sure how I can generate the logs, certainly I couldn't run with
> --foreground since the issue only ever happens with the pcscd instance
> that starts during boot. Could also be something permissions related, I
> suppose, but I honestly don't even know where to start looking.
>
> Has anyone encountered such an issue before, or have any ideas where to
> start looking?

Without logs it is hard to know what is happening.
Have a look into /var/log/syslog or other files in /var/log/

Also read "GnuPG and PC/SC conflicts"
https://blog.apdu.fr/posts/2019/06/gnupg-and-pcsc-conflicts/

Bye

-- 
 Dr. Ludovic Rousseau



More information about the pcsclite-muscle mailing list