Skip to content

Commit 8747faf

Browse files
committed
Add systemd service file activated from udev
Using the touch bar digitizer as device to trigger the start of the service. Signed-off-by: Janne Grunau <[email protected]>
1 parent df2867d commit 8747faf

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[Unit]
2+
Description=Tiny Apple silicon touch bar daemon
3+
After=systemd-user-sessions.service [email protected] plymouth-quit.service systemd-logind.service
4+
StartLimitIntervalSec=30
5+
StartLimitBurst=2
6+
ConditionFirmware=|device-tree-compatible(apple,j293)
7+
ConditionFirmware=|device-tree-compatible(apple,j493)
8+
9+
[Service]
10+
ExecStart=/usr/bin/tiny-dfr
11+
Restart=always
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
SUBSYSTEM=="input", ATTR{name}=="MacBookPro17,1 Touch Bar", TAG+="systemd", ENV{SYSTEMD_WANTS}="tiny-dfr.service"
2+
SUBSYSTEM=="input", ATTR{name}=="Mac14,7 Touch Bar", TAG+="systemd", ENV{SYSTEMD_WANTS}="tiny-dfr.service"

0 commit comments

Comments
 (0)