|
|
594167 |
From 125cb47adf05421d00e25aee4a143ef2c473aeb9 Mon Sep 17 00:00:00 2001
|
|
|
594167 |
From: Davide Cavalca <davide@cavalca.name>
|
|
|
594167 |
Date: Sun, 30 Jan 2022 09:28:52 -0800
|
|
|
594167 |
Subject: [PATCH] hwdb: add new database file for PDA devices
|
|
|
594167 |
|
|
|
594167 |
Add a new database for handhelds (PDAs, calculators, etc.) that should be
|
|
|
594167 |
accessible the seat owner.
|
|
|
594167 |
|
|
|
594167 |
The database is initially populated with Texas Instruments calculators
|
|
|
594167 |
and linking cables, which removes the need to installing dedicated udev
|
|
|
594167 |
rules for them.
|
|
|
594167 |
|
|
|
594167 |
(cherry picked from commit 7d75376e1f0a83dba76d3a08edbb50923e02e3d3)
|
|
|
594167 |
|
|
|
594167 |
Related: #2087778
|
|
|
594167 |
---
|
|
|
594167 |
hwdb.d/70-pda.hwdb | 39 +++++++++++++++++++++++++++++++++++++++
|
|
|
594167 |
hwdb.d/meson.build | 1 +
|
|
|
594167 |
hwdb.d/parse_hwdb.py | 1 +
|
|
|
594167 |
3 files changed, 41 insertions(+)
|
|
|
594167 |
create mode 100644 hwdb.d/70-pda.hwdb
|
|
|
594167 |
|
|
|
594167 |
diff --git a/hwdb.d/70-pda.hwdb b/hwdb.d/70-pda.hwdb
|
|
|
594167 |
new file mode 100644
|
|
|
594167 |
index 0000000000..e122acca6f
|
|
|
594167 |
--- /dev/null
|
|
|
594167 |
+++ b/hwdb.d/70-pda.hwdb
|
|
|
594167 |
@@ -0,0 +1,39 @@
|
|
|
594167 |
+# This file is part of systemd.
|
|
|
594167 |
+#
|
|
|
594167 |
+# Database for handhelds (PDAs, calculators, etc.) that should be accessible
|
|
|
594167 |
+# the seat owner.
|
|
|
594167 |
+#
|
|
|
594167 |
+# Permitted keys:
|
|
|
594167 |
+# Specify if a device is a signal analyzer
|
|
|
594167 |
+# ID_PDA=1|0
|
|
|
594167 |
+
|
|
|
594167 |
+###########################################################
|
|
|
594167 |
+# Texas Instruments
|
|
|
594167 |
+###########################################################
|
|
|
594167 |
+# SilverLink
|
|
|
594167 |
+usb:v0451pE001*
|
|
|
594167 |
+ ID_PDA=1
|
|
|
594167 |
+
|
|
|
594167 |
+# TI-84 Plus DirectLink
|
|
|
594167 |
+usb:v0451pE003*
|
|
|
594167 |
+ ID_PDA=1
|
|
|
594167 |
+
|
|
|
594167 |
+# TI-89 Titanium DirectLink
|
|
|
594167 |
+usb:v0451pE004*
|
|
|
594167 |
+ ID_PDA=1
|
|
|
594167 |
+
|
|
|
594167 |
+# TI-84 Plus Silver Edition DirectLink
|
|
|
594167 |
+usb:v0451pE008*
|
|
|
594167 |
+ ID_PDA=1
|
|
|
594167 |
+
|
|
|
594167 |
+# TI-Nspire DirectLink
|
|
|
594167 |
+usb:v0451pE012*
|
|
|
594167 |
+ ID_PDA=1
|
|
|
594167 |
+
|
|
|
594167 |
+# TI-Nspire Lab Cradle
|
|
|
594167 |
+usb:v0451pE01C*
|
|
|
594167 |
+ ID_PDA=1
|
|
|
594167 |
+
|
|
|
594167 |
+# TI-Nspire CX II DirectLink
|
|
|
594167 |
+usb:v0451pE022*
|
|
|
594167 |
+ ID_PDA=1
|
|
|
594167 |
diff --git a/hwdb.d/meson.build b/hwdb.d/meson.build
|
|
|
594167 |
index 8ff044131c..fc72ebb2bd 100644
|
|
|
594167 |
--- a/hwdb.d/meson.build
|
|
|
594167 |
+++ b/hwdb.d/meson.build
|
|
|
594167 |
@@ -31,6 +31,7 @@ hwdb_files_test = files('''
|
|
|
594167 |
70-cameras.hwdb
|
|
|
594167 |
70-joystick.hwdb
|
|
|
594167 |
70-mouse.hwdb
|
|
|
594167 |
+ 70-pda.hwdb
|
|
|
594167 |
70-pointingstick.hwdb
|
|
|
594167 |
70-touchpad.hwdb
|
|
|
594167 |
80-ieee1394-unit-function.hwdb
|
|
|
594167 |
diff --git a/hwdb.d/parse_hwdb.py b/hwdb.d/parse_hwdb.py
|
|
|
594167 |
index aef0331ace..194a71ac08 100755
|
|
|
594167 |
--- a/hwdb.d/parse_hwdb.py
|
|
|
594167 |
+++ b/hwdb.d/parse_hwdb.py
|
|
|
594167 |
@@ -136,6 +136,7 @@ def property_grammar():
|
|
|
594167 |
('MOUSE_WHEEL_CLICK_COUNT_HORIZONTAL', INTEGER),
|
|
|
594167 |
('ID_AUTOSUSPEND', Or((Literal('0'), Literal('1')))),
|
|
|
594167 |
('ID_PERSIST', Or((Literal('0'), Literal('1')))),
|
|
|
594167 |
+ ('ID_PDA', Or((Literal('0'), Literal('1')))),
|
|
|
594167 |
('ID_INPUT', Or((Literal('0'), Literal('1')))),
|
|
|
594167 |
('ID_INPUT_ACCELEROMETER', Or((Literal('0'), Literal('1')))),
|
|
|
594167 |
('ID_INPUT_JOYSTICK', Or((Literal('0'), Literal('1')))),
|