DEPENDS = "zenity dbus"
RDEPENDS = "zenity dbus"
-PR = "r107"
+PR = "r108"
SRC_URI = " \
file://op_paths.sh \
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 \
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/
#!/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