Fixing hanging Crypto Stick (and other USB peripherals) problems

As you may or may not know, we use the Crypto Stick as our SSH authentication mechanism. Lately, some of us are experiencing ‘hanging’ every now-and-again. Yesterday, I found a blogpost on Ludovic Rousseau’s blog, detailing that this problem stems from a race condition in libusb. This problem is fixed in an experimental branch of libusb. As a full upgrade of libusb (from an experimental branch no less) is out of the question, I backported the patch to Ubuntu 11.04 (natty) and 11.11 (oneiric). These packages indeed solve the problem of the ‘hanging’ Crypto Stick (and probably every other ‘hanging’ USB device). Binary and source packages are available here in our repository. Or, you can add our repo to your sources.list:

  • Natty: deb natty-kumina main
  • Oneiric: deb oneiric-kumina main
*Image source:

Tags: , , , , , , ,

5 Responses to “Fixing hanging Crypto Stick (and other USB peripherals) problems”

  1. Mike Huijerjans says:

    Thanks. Just reinstalled my laptop with Natty and I ran into this problem. Thanks again 🙂

  2. Graham Leggett says:

    Is the patch itself available anywhere? Was it ever included in v1.0.9 released in April 2012, or does it still have to be patched manually?

    • Tim Stoop says:

      The patch is available in the source package which is also available on our repos. I don’t think it’s needed anymore, though, I’ve reinstalled my desktop a few times since and haven’t installed the package from our repo.

  3. Debian provides libusb-1.0.9-RC3 (including the fix) in testing and unstable

    Ubuntu provides the same version in precise

    Backporting the fix to Natty and Oneiric is a good idea.

  4. Tim Stoop says:

    The Oneiric package works great on Linux Mint 12 as well, for those interested.

Kumina designs, builds, operates and supports Kubernetes solutions that help companies thrive online. As Certified Kubernetes Service Partner, we know how to build real solutions.