pandora-scripts: Added a touchscreen-reinitialization scripts, so that a restart...
authorMichael Mrozek <EvilDragon@openpandora.de>
Tue, 3 Jul 2012 08:13:45 +0000 (10:13 +0200)
committerMichael Mrozek <EvilDragon@openpandora.de>
Tue, 3 Jul 2012 08:13:45 +0000 (10:13 +0200)
recipes/pandora-system/pandora-scripts.bb
recipes/pandora-system/pandora-scripts/op_calibrate.sh
recipes/pandora-system/pandora-scripts/op_touchinit.sh [new file with mode: 0644]

index 2a742c6..fc98337 100644 (file)
@@ -6,7 +6,7 @@ COMPATIBLE_MACHINE = "omap3-pandora"
 DEPENDS = "zenity dbus"
 RDEPENDS = "zenity dbus"
 
-PR = "r107"
+PR = "r108"
 
 SRC_URI = " \
           file://op_paths.sh \
@@ -49,6 +49,7 @@ SRC_URI = " \
          file://op_nubchange.sh \
          file://op_lidsettings.pnd \
          file://op_lidsettings.sh \
+         file://op_touchinit.sh \
           file://op_tvout.sh \
          file://op_tvout.pnd \
          file://ConfigModel.py \
@@ -112,6 +113,7 @@ do_install() {
          install -m 0755 ${WORKDIR}/op_lid.sh ${D}${prefix}/pandora/scripts/
          install -m 0755 ${WORKDIR}/op_power.sh ${D}${prefix}/pandora/scripts/
          install -m 0755 ${WORKDIR}/op_battlow.sh ${D}${prefix}/pandora/scripts/ 
+         install -m 0755 ${WORKDIR}/op_touchinit.sh ${D}${prefix}/pandora/scripts/ 
          install -m 0755 ${WORKDIR}/op_bright_up.sh ${D}${prefix}/pandora/scripts/  
          install -m 0755 ${WORKDIR}/op_menu.sh ${D}${prefix}/pandora/scripts/ 
          install -m 0755 ${WORKDIR}/op_xfcemenu.sh ${D}${prefix}/pandora/scripts/ 
index 99a3ff2..0999028 100755 (executable)
@@ -1,3 +1,7 @@
 #!/bin/bash
 TSLIB_CONSOLEDEVICE=none op_runfbapp ts_calibrate
-zenity --info --title="Calibration" --text "The touchscreen has been calibrated. To activate the new settings, you have to reboot your unit."
\ No newline at end of file
+sudo /usr/pandora/scripts/op_touchinit.sh
+while ! zenity --question --title="Check Calibration" --text="Your new calibration setting has been applied.\n\nPlease check if the touchscreen is now working properly.\nIf not, you might want to try a recalibration.\n\n(Hint: use the nubs to press the button if the touchscreen is way off)" --ok-label="The touchscreen is fine" --cancel-label="Recalibrate"; do
+      TSLIB_CONSOLEDEVICE=none op_runfbapp ts_calibrate
+      sudo /usr/pandora/scripts/op_touchinit.sh  
+done
\ No newline at end of file
diff --git a/recipes/pandora-system/pandora-scripts/op_touchinit.sh b/recipes/pandora-system/pandora-scripts/op_touchinit.sh
new file mode 100644 (file)
index 0000000..ca57a50
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash
+rmmod ads7846
+modprobe ads7848
\ No newline at end of file