From 8c103be5c06f489c33836dedd3b4d161977fda22 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Mon, 7 Jan 2019 19:47:01 +0100 Subject: [PATCH 1/3] Udev rules related docs update Signed-off-by: Szczepan Zalega --- docs/solo/udev.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/solo/udev.md b/docs/solo/udev.md index 4959b13..eb0dee4 100644 --- a/docs/solo/udev.md +++ b/docs/solo/udev.md @@ -1,6 +1,6 @@ # tl;dr -Create [`/etc/udev/99-solo.rules`](https://github.com/solokeys/solo/blob/master/99-solo.rules) and add the following (which assumes your user is in group `plugdev`): +Create [`/etc/udev/rules.d/99-solo.rules`](https://github.com/solokeys/solo/blob/master/99-solo.rules) and add the following (which assumes your user is in group `plugdev`): ``` # Solo @@ -13,7 +13,7 @@ KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="10c4", ATTRS{idProduct Then run ``` -udevadm trigger +sudo udevadm control --reload-rules && sudo udevadm trigger ``` # How do udev rules work and why are they needed From 4110434e33eb8a943b3f95ea9244274cdf42e0e9 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Wed, 9 Jan 2019 11:40:34 +0100 Subject: [PATCH 2/3] Add Udev symlink for Solo's serial port Signed-off-by: Szczepan Zalega --- 99-solo.rules | 2 ++ 1 file changed, 2 insertions(+) diff --git a/99-solo.rules b/99-solo.rules index e2f9a47..ce8cc8a 100644 --- a/99-solo.rules +++ b/99-solo.rules @@ -2,5 +2,7 @@ ATTRS{idVendor}=="0483", ATTRS{idProduct}=="a2ca", ATTRS{product}=="Solo", TAG+="uaccess", GROUP="plugdev", SYMLINK+="solokey" ATTRS{idVendor}=="0483", ATTRS{idProduct}=="a2ca", ATTRS{product}=="Solo HACKER (Unlocked)", TAG+="uaccess", GROUP="plugdev", SYMLINK+="solohacker" +SUBSYSTEM=="tty", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="a2ca", TAG+="uaccess", GROUP="plugdev", SYMLINK+="solokey-serial" + # U2F Zero KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="8acf", TAG+="uaccess", GROUP="plugdev", SYMLINK+="u2fzero" From 5806b25fd158188403fddf796be17c487faa59aa Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Wed, 9 Jan 2019 11:28:57 +0100 Subject: [PATCH 3/3] Prevent Solo's debug serial port use by ModemManager This Udev rule marks the device to be ignored by the MM. Otherwise using the CDC ACM serial port interface will not be possible, while its service is running. Tested on Fedora 29, with ModemManager enabled, using: $ solotool.py monitor /dev/solokey-serial Fixes https://github.com/solokeys/solo/issues/62 As provided by @yparitcher in: https://github.com/solokeys/solo/pull/60#issuecomment-452428432 Signed-off-by: Szczepan Zalega --- 99-solo.rules | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/99-solo.rules b/99-solo.rules index ce8cc8a..0c6450a 100644 --- a/99-solo.rules +++ b/99-solo.rules @@ -1,3 +1,12 @@ +# Notify ModemManager this device should be ignored +ACTION!="add|change|move", GOTO="mm_usb_device_blacklist_end" +SUBSYSTEM!="usb", GOTO="mm_usb_device_blacklist_end" +ENV{DEVTYPE}!="usb_device", GOTO="mm_usb_device_blacklist_end" + +ATTRS{idVendor}=="0483", ATTRS{idProduct}=="a2ca", ENV{ID_MM_DEVICE_IGNORE}="1" + +LABEL="mm_usb_device_blacklist_end" + # Solo ATTRS{idVendor}=="0483", ATTRS{idProduct}=="a2ca", ATTRS{product}=="Solo", TAG+="uaccess", GROUP="plugdev", SYMLINK+="solokey" ATTRS{idVendor}=="0483", ATTRS{idProduct}=="a2ca", ATTRS{product}=="Solo HACKER (Unlocked)", TAG+="uaccess", GROUP="plugdev", SYMLINK+="solohacker"