aboutsummaryrefslogtreecommitdiff
path: root/ems.sh
diff options
context:
space:
mode:
authorDonald Delmar Davis <don@suspectdevices.com>2017-10-20 10:46:30 -0700
committerDonald Delmar Davis <don@suspectdevices.com>2017-10-20 10:46:30 -0700
commit261ac02efc8361ac1e55d9be72cfab1c8ea55237 (patch)
tree4fbe0b23659cbd7c5f50c9e10f65d0441e6fee7c /ems.sh
Let's do this
Diffstat (limited to 'ems.sh')
-rwxr-xr-xems.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/ems.sh b/ems.sh
new file mode 100755
index 0000000..159ebbd
--- /dev/null
+++ b/ems.sh
@@ -0,0 +1,15 @@
+# sesh.sh - rpi startup script for ems
+# To Activate: 1) Edit the file ~/.config/lxsession/LXDE-pi/autostart
+# 2) Add the path to the script to the top of the file as in the line below:
+#
+# @/home/pi/ems/ems.sh
+#
+# 3) Save the file and restart
+#
+xinput --set-prop 'Microchip Technology Inc. AR1100 HID-MOUSE' 'Evdev Axes Swap' 0
+xinput --set-prop 'Microchip Technology Inc. AR1100 HID-MOUSE' 'Evdev Axis Inversion' 1 1
+
+
+cd /home/pi/ems
+export PYTHONPATH=/home/pi/ems:$PYTHONPATH
+python EMSConsole/EMSConsole.py >> /home/pi/ems/ems.log 2>&1 &