NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.28k stars 14.27k forks source link

PGP smartcard (yubikey) disappears after a while #340050

Open stevenroose opened 2 months ago

stevenroose commented 2 months ago

Describe the bug

I've been using a yubikey as a gpg smartcard for signing for a long time on my NixOS without an issue. Recently it started to often break and requiring a reboot for it to work again.

Steps To Reproduce

I have tried, but I can't pin it down. It might be related to

Expected behavior

Smart card always work. Instead, it works fine until some moment it says it is not connected and re-plugging it does not do anything.

Additional context

It's a USB type A connecting yubikey, but problem happens on in-laptop slot and on a USB hub. Laptop is Framework 14.

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.47, NixOS, 24.05 (Uakari), 24.05.4326.36bae4507766`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.5`
 - channels(root): `"nixos-24.05"`
 - nixpkgs: `/home/steven/.nix-defexpr/channels/nixpkgs`

Add a :+1: reaction to issues you find important.

sifmelcara commented 2 months ago

Sounds more likely to be a hardware issue, have you checked for usb related log in dmesg?