summaryrefslogtreecommitdiff
path: root/recipes-graphics
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2012-10-17 19:11:04 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2012-10-18 20:32:58 +0200
commit0d12fcb5a33463f701873b41acfc01922171b519 (patch)
tree0bc83fa39b6fe4be3e66917b7450a8d124d43f76 /recipes-graphics
parent39a5d0424eb6b506f4f9ce4eb8c49e04093d5221 (diff)
xinput-calibrator: make this depending on lxdm, not no-display-manager
Diffstat (limited to 'recipes-graphics')
-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"