summaryrefslogtreecommitdiff
path: root/recipes-graphics/xinput-calibrator
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-graphics/xinput-calibrator')
-rw-r--r--recipes-graphics/xinput-calibrator/xinput-calibrator/xinput-calibrator.service11
-rw-r--r--recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bbappend10
2 files changed, 21 insertions, 0 deletions
diff --git a/recipes-graphics/xinput-calibrator/xinput-calibrator/xinput-calibrator.service b/recipes-graphics/xinput-calibrator/xinput-calibrator/xinput-calibrator.service
new file mode 100644
index 0000000..6ccbbf6
--- /dev/null
+++ b/recipes-graphics/xinput-calibrator/xinput-calibrator/xinput-calibrator.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Loads xinput calibration data
+ConditionPathExists=/etc/pointercal.xinput
+Requires=lxdm.service
+After=lxdm.service
+
+[Service]
+ExecStart=/usr/bin/xinput_calibrator_once.sh
+
+[Install]
+WantedBy=multi-user.target
diff --git a/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bbappend b/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bbappend
new file mode 100644
index 0000000..e12abec
--- /dev/null
+++ b/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bbappend
@@ -0,0 +1,10 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+PRINC := "${@int(PRINC) + 1}"
+
+inherit systemd
+
+SRC_URI += "file://xinput-calibrator.service"
+
+SYSTEMD_PACKAGES = "${PN}-systemd"
+SYSTEMD_SERVICE = "${PN}.service"