From: Michael Mrozek Date: Fri, 18 Oct 2013 00:56:51 +0000 (+0200) Subject: op_lcdsettings: Added possibility to enable TV Out on startup. Renamed to "Video... X-Git-Tag: sz_160~41 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=openpandora.oe.git;a=commitdiff_plain;h=9ffba64036dc31a96f00aae6647fcf2f612346c8 op_lcdsettings: Added possibility to enable TV Out on startup. Renamed to "Video Settings", as most settings are not LCD specific anymore --- diff --git a/recipes/pandora-system/pandora-scripts/op_lcdsettings.desktop b/recipes/pandora-system/pandora-scripts/op_lcdsettings.desktop index 5e22175..ea3e2c2 100644 --- a/recipes/pandora-system/pandora-scripts/op_lcdsettings.desktop +++ b/recipes/pandora-system/pandora-scripts/op_lcdsettings.desktop @@ -1,6 +1,6 @@ [Desktop Entry] -Name=LCD Settings -Comment=Manage LCD Gamma and Brightness. +Name=Video Settings +Comment=Manage Pandora Video Settings StartupNotify=false Exec=sudo /usr/pandora/scripts/op_lcdsettings.sh Icon=package_graphics diff --git a/recipes/pandora-system/pandora-scripts/op_lcdsettings.pnd b/recipes/pandora-system/pandora-scripts/op_lcdsettings.pnd index 3b2772e..7f51866 100644 Binary files a/recipes/pandora-system/pandora-scripts/op_lcdsettings.pnd and b/recipes/pandora-system/pandora-scripts/op_lcdsettings.pnd differ diff --git a/recipes/pandora-system/pandora-scripts/op_lcdsettings.sh b/recipes/pandora-system/pandora-scripts/op_lcdsettings.sh index 58cf5aa..f915cc5 100644 --- a/recipes/pandora-system/pandora-scripts/op_lcdsettings.sh +++ b/recipes/pandora-system/pandora-scripts/op_lcdsettings.sh @@ -1,11 +1,11 @@ #!/bin/bash # Released under the GPL -# LCD-Settings, v1.1, written by Michael Mrozek aka EvilDragon 2010. Brightness-Settings-Part written by vimacs. +# Video-Settings, v1.2, written by Michael Mrozek aka EvilDragon 2010. Brightness-Settings-Part written by vimacs. # This scripts allows you to create, load and save Gamma-Settings and to change the LCD Brightness. . /usr/pandora/scripts/op_paths.sh -while mainsel=$(zenity --title="LCD-Settings" --width="300" --height="370" --list --column "id" --column "Please select" --hide-column=1 --text="Welcome to the LCD-Settings-Dialogue.\n\nWhat do you want to do?\n" "bright" "Change LCD Brightness" "gammasimple" "Manage LCD Gamma (simple)" "gamma" "Manage LCD Gamma (Advanced)" "filter" "Select current video filter" "filterdef" "Select default video filter" "sblank" "Enable/disable screen blanking" "rightclickmode" "Select Right-Click-Mode for touchscreen" --ok-label="Change Setting" --cancel-label="Exit"); do +while mainsel=$(zenity --title="Video Settings" --width="300" --height="370" --list --column "id" --column "Please select" --hide-column=1 --text="Welcome to the Video Settings-Dialogue.\n\nWhat do you want to do?\n" "bright" "Change LCD Brightness" "gammasimple" "Manage Gamma (simple)" "gamma" "Manage Gamma (Advanced)" "filter" "Select current video filter" "filterdef" "Select default video filter" "sblank" "Enable/disable screen blanking" "rightclickmode" "Select Right-Click-Mode for touchscreen" "tvout" "Enable/disable TV Out on Startup" --ok-label="Change Setting" --cancel-label="Exit"); do case $mainsel in @@ -118,6 +118,17 @@ case $mainsel in echo 'mode = 0' > /home/$user/Applications/Settings/libgtkstylus.conf zenity --info --title="Right-Click" --text "To do a right-click with the stylus, press and hold the stylus on the screen.\n\nYou need to restart X to enable this." --timeout 6 fi;; + + "tvout") + if zenity --question --title="TV Out on startup" --text="Do you want to enable the TV Output on startup?" --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 + 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;; esac done