From ca3e1ac1c9d73ae9f92d18c17681cdbe438b73fa Mon Sep 17 00:00:00 2001 From: Michael Ossmann Date: Thu, 4 Jul 2024 16:11:08 -0400 Subject: [PATCH] Update udev rules - Remove legacy VID/PIDs - Remove pid.codes test PIDs supplied by LUNA - Add pid.codes test PIDs unique to Cynthion - Update symlink names - Move to cynthion/python/assets --- cynthion/python/assets/54-cynthion.rules | 16 ++++++++++++++++ util/54-cynthion.rules | 24 ------------------------ util/README.md | 0 3 files changed, 16 insertions(+), 24 deletions(-) create mode 100644 cynthion/python/assets/54-cynthion.rules delete mode 100644 util/54-cynthion.rules delete mode 100644 util/README.md diff --git a/cynthion/python/assets/54-cynthion.rules b/cynthion/python/assets/54-cynthion.rules new file mode 100644 index 00000000..6da10542 --- /dev/null +++ b/cynthion/python/assets/54-cynthion.rules @@ -0,0 +1,16 @@ +# Configures Linux to allow access to Cynthion hardware for anyone logged into the physical terminal. +# +# # install udev rules +# sudo cp 54-cynthion.rules /etc/udev/rules.d +# +# # reload udev rules +# sudo udevadm control --reload +# +# # apply udev rules to any devices that are already plugged in +# sudo udevadm trigger + +SUBSYSTEM=="usb", ATTR{idVendor}=="1d50", ATTR{idProduct}=="615b", SYMLINK+="cynthion-%k", TAG+="uaccess" +SUBSYSTEM=="usb", ATTR{idVendor}=="1d50", ATTR{idProduct}=="615c", SYMLINK+="cynthion-apollo-%k", TAG+="uaccess" + +SUBSYSTEM=="usb", ATTR{idVendor}=="1209", ATTR{idProduct}=="000a", SYMLINK+="cynthion-test-%k", TAG+="uaccess" +SUBSYSTEM=="usb", ATTR{idVendor}=="1209", ATTR{idProduct}=="000e", SYMLINK+="cynthion-example-%k", TAG+="uaccess" diff --git a/util/54-cynthion.rules b/util/54-cynthion.rules deleted file mode 100644 index f6fce2de..00000000 --- a/util/54-cynthion.rules +++ /dev/null @@ -1,24 +0,0 @@ -# Configures Linux to allow access to Cynthion hardware for anyone logged into the physical terminal. -# -# # install udev rules -# sudo cp 54-cynthion.rules /etc/udev/rules.d -# -# # reload udev rules -# sudo udevadm control --reload -# -# # apply udev rules to any devices that are already plugged in -# sudo udevadm trigger - -SUBSYSTEM=="usb", ATTR{idVendor}=="1d50", ATTR{idProduct}=="615c", SYMLINK+="apollo%k", TAG+="uaccess" -SUBSYSTEM=="usb", ATTR{idVendor}=="1d50", ATTR{idProduct}=="615b", SYMLINK+="cynthion%k", TAG+="uaccess" - -# legacy revisions -SUBSYSTEM=="usb", ATTR{idVendor}=="16d0", ATTR{idProduct}=="05a5", SYMLINK+="cynthion%k", TAG+="uaccess" -SUBSYSTEM=="usb", ATTR{idVendor}=="16d0", ATTR{idProduct}=="0f3b", SYMLINK+="cynthiontarget%k", TAG+="uaccess" - -# pid.codes test id's -SUBSYSTEM=="usb", ATTR{idVendor}=="1209", ATTR{idProduct}=="0001", SYMLINK+="cynthion-test1-%k", TAG+="uaccess" -SUBSYSTEM=="usb", ATTR{idVendor}=="1209", ATTR{idProduct}=="0002", SYMLINK+="cynthion-test2-%k", TAG+="uaccess" -SUBSYSTEM=="usb", ATTR{idVendor}=="1209", ATTR{idProduct}=="0003", SYMLINK+="cynthion-test3-%k", TAG+="uaccess" -SUBSYSTEM=="usb", ATTR{idVendor}=="1209", ATTR{idProduct}=="0004", SYMLINK+="cynthion-test4-%k", TAG+="uaccess" -SUBSYSTEM=="usb", ATTR{idVendor}=="1209", ATTR{idProduct}=="0005", SYMLINK+="cynthion-test5-%k", TAG+="uaccess" diff --git a/util/README.md b/util/README.md deleted file mode 100644 index e69de29b..00000000