Skip to content

Commit

Permalink
Explicitly set the touchscreen device for ts_calibrate
Browse files Browse the repository at this point in the history
Newer versions of ts_calibrate cannot autodectect the am335x touchscreen
anymore but need to have the device specified via the TSLIB_TSDEVICE
environment variable.

Fixes #120
  • Loading branch information
rkunze committed Jun 2, 2018
1 parent 936b4cb commit 63af3b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## Permissions for ftc access to programs required
## for changing display settings

Defaults!/usr/bin/ts_calibrate env_keep=TSLIB_TSDEVICE
ftc ALL = NOPASSWD: /usr/bin/ts_calibrate, /etc/init.d/S90launcher restart
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def on_calibrate_touchscreen(self):
self.mainWindow = TouchBaseWidget()
self.mainWindow.show()
old_window.close()
subprocess.run(["sudo", "/usr/bin/ts_calibrate"])
subprocess.run(["sudo", "TSLIB_TSDEVICE=/dev/input/event0", "/usr/bin/ts_calibrate"])
self.restart_launcher(QCoreApplication.translate("main", "Activating new touchscreen calibration..."))

def on_change_orientation(self, index):
Expand Down

0 comments on commit 63af3b3

Please sign in to comment.