]> git.openpandora.org Git - openpandora.oe.git/commitdiff
op_lcdsettings: Added possibility to enable TV Out on startup. Renamed to "Video...
authorMichael Mrozek <EvilDragon@openpandora.org>
Fri, 18 Oct 2013 00:56:51 +0000 (02:56 +0200)
committerMichael Mrozek <EvilDragon@openpandora.org>
Fri, 18 Oct 2013 00:56:51 +0000 (02:56 +0200)
recipes/pandora-system/pandora-scripts/op_lcdsettings.desktop
recipes/pandora-system/pandora-scripts/op_lcdsettings.pnd
recipes/pandora-system/pandora-scripts/op_lcdsettings.sh

index 5e221756463e65c495a540323799ceae32eb272e..ea3e2c29cbd181fde2e2156d0e78e37dfa8ad637 100644 (file)
@@ -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
index 3b2772ef362b8fe7eeda82e623bdb4c69bc2f61e..7f518665c2dae3dd5e0b3eb6b6d1e27bb7587b99 100644 (file)
Binary files a/recipes/pandora-system/pandora-scripts/op_lcdsettings.pnd and b/recipes/pandora-system/pandora-scripts/op_lcdsettings.pnd differ
index 58cf5aa643eede0076d542fda81821c1c62e3bb8..f915cc5149a76adbc35e9507c72d4b6a8e73a250 100644 (file)
@@ -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