From 8d21a84c878174b0de4eeee969df91fc6d44d466 Mon Sep 17 00:00:00 2001 From: Michael Mrozek Date: Sun, 20 Oct 2013 18:57:11 +0200 Subject: [PATCH] pandora-first-run-wizard: Add enable / disable TV Out on Startup-Dialog --- recipes/pandora-system/pandora-first-run-wizard.bb | 2 +- .../pandora-first-run-wizard/first-run-wizard.sh | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/recipes/pandora-system/pandora-first-run-wizard.bb b/recipes/pandora-system/pandora-first-run-wizard.bb index 401d005..01bc68a 100755 --- a/recipes/pandora-system/pandora-first-run-wizard.bb +++ b/recipes/pandora-system/pandora-first-run-wizard.bb @@ -6,7 +6,7 @@ RDEPENDS = "hsetroot zenity dbus pandora-wallpaper-official tslib tslib-calibrat COMPATIBLE_MACHINE = "omap3-pandora" -PR = "r49" +PR = "r50" SRC_URI = " \ file://first-run-wizard.sh \ diff --git a/recipes/pandora-system/pandora-first-run-wizard/first-run-wizard.sh b/recipes/pandora-system/pandora-first-run-wizard/first-run-wizard.sh index 7cb2868..fa80d02 100755 --- a/recipes/pandora-system/pandora-first-run-wizard/first-run-wizard.sh +++ b/recipes/pandora-system/pandora-first-run-wizard/first-run-wizard.sh @@ -295,6 +295,19 @@ if [ "$pnd_version" == "1GHz" ]; then esac +#Enable / Disable TV Out on Startup + +if zenity --question --title="TV Out on startup" --text="Do you want to enable the TV Output on startup?\n(Note: This needs a bit more power)" --ok-label="Enable TV Out" --cancel-label="Disable TV Out"; then + touch /etc/pandora/conf/tvout.state + zenity --info --title="TV Out" --text "TV Out will be switched on with the last saved settings on bootup." --timeout 6 + else + /usr/pandora/scripts/op_tvout.sh -d + if [ -f /etc/pandora/conf/tvout.state ]; then + rm /etc/pandora/conf/tvout.state + fi + zenity --info --title="TV Out" --text "TV Out will not be switched on on bootup." --timeout 6 +fi + # ---- # NOTE: This is just a temporary fix! These daemons should be removed from startup in the OE recipes. Until the time is found, we'll do it from here. -- 2.39.2