While fighting with calibration slowing down the system startup, I
noticed that no calibration is done when the file
/etc/pointercal.xinput is missing. Isn't this what was intended
(rather than the old version)?

--- 89xTs_Calibrate_xinput_calibrator.orig
+++ 89xTs_Calibrate_xinput_calibrator
@@ -2,6 +2,8 @@

 if [ -e /usr/bin/xinput_calibrator_once.sh ] ; then
   if [ -e /etc/pointercal.xinput ] ; then
+      . /etc/pointercal.xinput # simply use existing calibration data
+  else
     if [ -e /usr/bin/fsoraw ] ; then
       # because ts tap to unblank will be used as first calibration
click and then store invalid calibration
       fsoraw -fr CPU,Display -- /usr/bin/xinput_calibrator_once.sh
_______________________________________________
Shr-devel mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-devel

Reply via email to