summarylogtreecommitdiffstats
path: root/80-spectrometer.rules
diff options
context:
space:
mode:
authorGrey Christoforo2018-04-12 13:42:13 +0100
committerGrey Christoforo2018-04-12 13:48:47 +0100
commit82595db7dfcc1e6c4ec46d0868d48c2bde5fa489 (patch)
tree3e40a612aac0ef83b84273e96229c054031b0468 /80-spectrometer.rules
downloadaur-82595db7dfcc1e6c4ec46d0868d48c2bde5fa489.tar.gz
initial commit
fix typo fix .srcinfo name
Diffstat (limited to '80-spectrometer.rules')
-rw-r--r--80-spectrometer.rules20
1 files changed, 20 insertions, 0 deletions
diff --git a/80-spectrometer.rules b/80-spectrometer.rules
new file mode 100644
index 000000000000..2a4bbfa80a0a
--- /dev/null
+++ b/80-spectrometer.rules
@@ -0,0 +1,20 @@
+# Thor SPx and CCS spectrometers
+ACTION!="add", GOTO="thor_rules_end"
+ATTR{idVendor}!="1313", GOTO="thor_rules_end"
+
+# Thor CCS spectrometers need a firmware upload before they renumerate as the real device
+ATTR{idProduct}=="8080", RUN+="/usr/bin/fxload -t fx2lp -I /lib/firmware/CCS100_2.ihx -D %N"
+ATTR{idProduct}=="8082", RUN+="/usr/bin/fxload -t fx2lp -I /lib/firmware/CCS125_2.ihx -D %N"
+ATTR{idProduct}=="8084", RUN+="/usr/bin/fxload -t fx2lp -I /lib/firmware/CCS150_2.ihx -D %N"
+ATTR{idProduct}=="8086", RUN+="/usr/bin/fxload -t fx2lp -I /lib/firmware/CCS175_2.ihx -D %N"
+ATTR{idProduct}=="8088", RUN+="/usr/bin/fxload -t fx2lp -I /lib/firmware/CCS200_2.ihx -D %N"
+
+# Need libusb to have access for all users
+ATTR{idProduct}=="0111", MODE="0666"
+ATTR{idProduct}=="8081", MODE="0666"
+ATTR{idProduct}=="8083", MODE="0666"
+ATTR{idProduct}=="8085", MODE="0666"
+ATTR{idProduct}=="8087", MODE="0666"
+ATTR{idProduct}=="8089", MODE="0666"
+
+LABEL="thor_rules_end"