fix: YAB-2152: Spaces filter, new initialization via udev

This commit is contained in:
2024-02-20 22:28:27 +03:00
parent b5367338d2
commit 36d5996318
7 changed files with 60 additions and 48 deletions
+20 -12
View File
@@ -1,15 +1,23 @@
yablochkov-keyboard-reader (0.1.2) release; urgency=low
[ Alexander Terekhin ]
* Ignore space option
* Add udev rules
-- Alexander Terekhin <alex@bearns> Sun, 20 Feb 2024 13:03:00 +0300
yablochkov-keyboard-reader (0.1.1) release; urgency=low
[ Alexander Terekhin ]
* Group chars before sending
* Docker build bugfixes
* Change serial to model
-- Alexander Terekhin <alex@bearns> Sun, 04 Dec 2023 12:35:00 +0300
yablochkov-keyboard-reader (0.1.0) release; urgency=low
[ Alexander Terekhin ]
* Initial version
[ Alexander Terekhin ]
* Initial version
-- Alexander Terekhin <alex@bearns> Sun, 03 Dec 2023 17:01:00 +0600
yablochkov-keyboard-reader (0.1.1) release; urgency=low
[ Alexander Terekhin ]
* Group chars before sending
* Docker build bugfixes
* Change serial to model
-- Alexander Terekhin <alex@bearns> Sun, 04 Dec 2023 12:35:00 +0300
-- Alexander Terekhin <alex@bearns> Sun, 03 Dec 2023 17:01:00 +0600
+1 -2
View File
@@ -2,10 +2,9 @@ Source: yablochkov-keyboard-reader
Section: misc
Priority: optional
Maintainer: Alexander Terekhin <alex@bearns.me>
Standards-Version: 0.1.2
Package: yablochkov-keyboard-reader
Version: 0.1.1
Architecture: amd64
Installed-Size: 5008848
Description: Yablochkov keyboard reader
+1 -1
View File
@@ -1,2 +1,2 @@
chmod +x /opt/ocppc/bin/keyboard-reader
systemctl enable keyboard-reader --now
udevadm control --reload
@@ -1,15 +1,17 @@
[Unit]
Description=Yablochkov keyboard reader
Description=Yablochkov keyboard reader %i
[Service]
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=keyboard-reader
SyslogIdentifier=keyboard-reader-%i
WorkingDirectory=/opt/ocppc
EnvironmentFile=/opt/conf/configuration_vars.env
EnvironmentFile=/opt/conf/configuration_vars_model.env
EnvironmentFile=/opt/conf/configuration_vars_personal.env
ExecStart=/opt/ocppc/bin/keyboard-reader --model=TWN4_B1.64_NKF4.64_STD2.04
ExecStart=/opt/ocppc/bin/keyboard-reader --nospace --dev=/dev/input/event%i
Restart=on-failure
RestartSec=5s
User=debian
Group=input
ExecStop=/bin/kill -TERM $MAINPID
+5
View File
@@ -0,0 +1,5 @@
ACTION=="add", SUBSYSTEM=="input", ENV{ID_TYPE}=="hid", ENV{ID_MODEL}=="ACR1281_Dual_Reader", RUN+="/usr/bin/systemctl start keyboard-reader@%n"
ACTION=="add", SUBSYSTEM=="input", ENV{ID_TYPE}=="hid", ENV{ID_MODEL}=="TWN4_B1.64_NKF4.64_STD2.04", RUN+="/usr/bin/systemctl start keyboard-reader@%n"
ACTION=="remove", SUBSYSTEM=="input", ENV{ID_TYPE}=="hid", ENV{ID_MODEL}=="ACR1281_Dual_Reader", RUN+="/usr/bin/systemctl stop keyboard-reader@%n"
ACTION=="remove", SUBSYSTEM=="input", ENV{ID_TYPE}=="hid", ENV{ID_MODEL}=="TWN4_B1.64_NKF4.64_STD2.04", RUN+="/usr/bin/systemctl stop keyboard-reader@%n"