<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    I'm trying to get my Yubikey NEO to work with GPG in an archlinux VM
    on Qubes OS. Unfortunately, it seems that PCSCD is unable to work
    with my yubikey, it doesn't appear when running pcsc_scan.<br>
    <br>
    I started pcscd with `sudo LIBCCID_ifdLogLevel=0x000F pcscd
    --foreground --debug --apdu --color | tee log.txt` to get more info
    about where the problem could come from. The full logs are attached,
    but the interesting bits are here : <br>
    <br>
    ```<br>
    00000206 ccid_usb.c:621:OpenUSBByName() Found Vendor/Product:
    1050/0111 (Yubico Yubikey NEO OTP+CCID)<br>
    00000012 ccid_usb.c:623:OpenUSBByName() Using USB bus/device: 2/4<br>
    00000010 ccid_usb.c:680:OpenUSBByName() bNumDataRatesSupported is 0<br>
    00001997 ccid_usb.c:1244:InterruptRead() before (0)<br>
    00103904 ccid_usb.c:1290:InterruptRead() after (0) (2)<br>
    00000072 -> 000000 65 00 00 00 00 00 00 00 00 00 <br>
    00002614 <- 000000 81 00 00 00 00 00 00 00 00 00 <br>
    00000050 -> 000000 65 00 00 00 00 00 01 00 00 00 <br>
    00103063 ccid_usb.c:836:ReadUSB() read failed (2/4): -7
    LIBUSB_ERROR_TIMEOUT<br>
    00000224 -> 000000 65 00 00 00 00 00 02 00 00 00 <br>
    05002241 ccid_usb.c:797:WriteUSB() write failed (2/4): -7
    LIBUSB_ERROR_TIMEOUT<br>
    00000242 ifdhandler.c:188:CreateChannelByNameOrChannel() failed<br>
    00000159 ccid_usb.c:879:CloseUSB() Closing USB device: 2/4<br>
    00000151 ccid_usb.c:889:CloseUSB() Last slot closed. Release
    resources<br>
    00000240 ccid_usb.c:189:close_libusb_if_needed() libusb_exit<br>
    00000476 readerfactory.c:1110:RFInitializeReader() Open Port
    0x200000 Failed (usb:1050/0111:libudev:1:/dev/bus/usb/002/004)<br>
    00000161 readerfactory.c:375:RFAddReader() Yubico Yubikey NEO
    OTP+CCID init failed.<br>
    ```<br>
    <br>
    ReadUSB returns immediately with the TIMEOUT error (isn't that weird
    ?), while the WriteUSB times out after 5 seconds. I'm not sure what
    to do to further debug this. Any hint as to what I could do to
    figure out where the issue is coming from ?<br>
    <br>
    Additional info : <br>
    <br>
    # Versions<br>
    <br>
    - CCID driver version : 1.4.25<br>
    <br>
    - pcsc-lite version : 1.8.20<br>
    <br>
    - smart card reader : Yubico Yubikey NEO OTP+CCID<br>
    <br>
    - output of /usr/sbin/pcscd --version : <br>
    ```<br>
    pcsc-lite version 1.8.20.<br>
    Copyright (C) 1999-2002 by David Corcoran <a
      class="moz-txt-link-rfc2396E"
      href="mailto:corcoran@musclecard.com"><corcoran@musclecard.com></a>.<br>
    Copyright (C) 2001-2015 by Ludovic Rousseau <a
      class="moz-txt-link-rfc2396E"
      href="mailto:ludovic.rousseau@free.fr"><ludovic.rousseau@free.fr></a>.<br>
    Copyright (C) 2003-2004 by Damien Sauveron <a
      class="moz-txt-link-rfc2396E" href="mailto:sauveron@labri.fr"><sauveron@labri.fr></a>.<br>
    Report bugs to <a class="moz-txt-link-rfc2396E"
      href="mailto:pcsclite-muscle@lists.alioth.debian.org"><pcsclite-muscle@lists.alioth.debian.org></a>.<br>
    Enabled features: Linux x86_64-pc-linux-gnu serial usb libudev
    usbdropdir=/usr/lib/pcsc/drivers ipcdir=/run/pcscd
    configdir=/etc/reader.conf.d<br>
    ```<br>
    <br>
    - OS: ArchLinux in a VM, kernel version 4.4.38-11.pvops.qubes.x86_64<br>
  </body>
</html>