trustcrypto / OnlyKey-Firmware

The OnlyKey Firmware runs on the OnlyKey itself and provides the core functionality of OnlyKey.
https://docs.crp.to/firmware.html
212 stars 40 forks source link

udev rules prevent the Onlykey.deb app to recognize the device #131

Closed droid192 closed 2 years ago

droid192 commented 2 years ago

uncommenting the RUN instructions in the udev file, prevents the regular https://docs.crp.to/command-line.html#debian-install-with-dependencies app recognizing the key. if commented app recognizes. goal: have totp autoset upon connect but the app recognize the key as well. i do not use the cli for anything else.

ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", ENV{ID_MM_DEVICE_IGNORE}="1"
ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", ENV{MTP_NO_PROBE}="1"

SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", MODE:="0666"#, RUN+="/usr/local/bin/onlykey-cli settime"
KERNEL=="ttyACM*", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", MODE:="0666"#, RUN+="/usr/local/bin/onlykey-cli settime"
onlykey commented 2 years ago

I believe someone else had a similar goal and issue was resolved by having the UDEV rule delay before running settime using the sleep command (2 seconds should be enough).

droid192 commented 2 years ago

you:" sth sth running condition." please fix this! following https://docs.crp.to/linux.html i now have the app stuck in red popup 'Working... \n Please wait' for what? Meanwhile the 'Unlock keyring pops up' (debian11) FIX: remove the gnome-keyring related stuff/daemons and restart