From 838d0fd3d5f890e986c631eda2a4945b0c661d19 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Tue, 9 Aug 2022 18:08:24 +0200 Subject: [PATCH 1/3] hwdb: analyzers: Clarify the type of devices we want listed --- hwdb.d/70-analyzers.hwdb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hwdb.d/70-analyzers.hwdb b/hwdb.d/70-analyzers.hwdb index 0a1911507a..7f31ca3ea3 100644 --- a/hwdb.d/70-analyzers.hwdb +++ b/hwdb.d/70-analyzers.hwdb @@ -1,8 +1,9 @@ # This file is part of systemd. # # Database for signal analyzers (protocol analyzers, logic analyzers, -# oscilloscopes, multimeters, bench power supplies, etc.) that should -# be accessible to the seat owner. +# oscilloscopes, multimeters, bench power supplies, etc.) or just +# anything that has to do with electronics and that should be +# accessible to the seat owner. # # Permitted keys: # Specify if a device is a signal analyzer From 9cb1dcae8cd9e3e50b4436e0d0f9f6aaab8b3631 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Tue, 9 Aug 2022 18:09:32 +0200 Subject: [PATCH 2/3] hwdb: Allow users access to USB serial for analysers Allow users at the console access to the USB serial interface for USB analysers. See 9e2dbfef479060ed850ccdd9cd82d3f0cda2b5c0 --- rules.d/70-uaccess.rules.in | 1 + 1 file changed, 1 insertion(+) diff --git a/rules.d/70-uaccess.rules.in b/rules.d/70-uaccess.rules.in index a3301be1bc..b82ce04a39 100644 --- a/rules.d/70-uaccess.rules.in +++ b/rules.d/70-uaccess.rules.in @@ -83,6 +83,7 @@ ENV{ID_MAKER_TOOL}=="?*", TAG+="uaccess" # Protocol analyzers ENV{ID_SIGNAL_ANALYZER}=="?*", ENV{DEVTYPE}=="usb_device", TAG+="uaccess" +ENV{ID_SIGNAL_ANALYZER}=="?*", KERNEL=="ttyACM[0-9]*", TAG+="uaccess" # rfkill / radio killswitches KERNEL=="rfkill", SUBSYSTEM=="misc", TAG+="uaccess" From 9ab755dce50bfb6f1f614f57fe3a8b65b570b5b9 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 21 Apr 2022 11:11:22 +0200 Subject: [PATCH 3/3] hwdb: Add Greaseweazle "drives" to the list of analyzers They're floppy disk flux readers and writers used in digital preservation and can be broadly considered to be "analyzers" of magnetic fluxes. This will have the intended side-effect of giving access to the device to users at the console, obsoleting: https://github.com/keirf/greaseweazle/blob/master/scripts/49-greaseweazle.rules --- hwdb.d/70-analyzers.hwdb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hwdb.d/70-analyzers.hwdb b/hwdb.d/70-analyzers.hwdb index 7f31ca3ea3..821ebcb1ca 100644 --- a/hwdb.d/70-analyzers.hwdb +++ b/hwdb.d/70-analyzers.hwdb @@ -9,6 +9,13 @@ # Specify if a device is a signal analyzer # ID_SIGNAL_ANALYZER=1|0 +########################################################### +# Greaseweazle +########################################################### +# Greaseweazle +usb:v1209p4D69* + ID_SIGNAL_ANALYZER=1 + ########################################################### # Total Phase ###########################################################