Merge branch 'master' of git://openpandora.org/openpandora.oe
authorMichael Mrozek <EvilDragon@openpandora.de>
Sun, 23 Jan 2011 11:22:06 +0000 (12:22 +0100)
committerMichael Mrozek <EvilDragon@openpandora.de>
Sun, 23 Jan 2011 11:22:06 +0000 (12:22 +0100)
recipes/branding/pandora-xfce-defaults.bb
recipes/branding/pandora-xfce-defaults/xfce4-conf.zip
recipes/pandora-system/pandora-libpnd.bb
recipes/pandora-system/pandora-scripts.bb
recipes/pandora-system/pandora-scripts/op_lcdsettings.sh
recipes/pandora-system/pandora-scripts/op_videofir.sh

index 7cd7806..e3486e7 100644 (file)
@@ -2,7 +2,7 @@ DESCRIPTION = "Default OpenPandora settings for Xfce4"
 HOMEPAGE = "http://www.openpandora.org"
 SECTION = "x11/xfce"
 
-PR = "r14"
+PR = "r15"
 
 SRC_URI = " \
   file://xfce4-conf.zip \
index 8232751..b38aa73 100644 (file)
Binary files a/recipes/branding/pandora-xfce-defaults/xfce4-conf.zip and b/recipes/branding/pandora-xfce-defaults/xfce4-conf.zip differ
index 3705e02..bf0179d 100755 (executable)
@@ -1,7 +1,7 @@
 DESCRIPTION = "Support for the PND format in Pandora images (lib, daemon, init script etc.)"
 LICENSE = "lGPL"
 
-PR = "r36"
+PR = "r37"
 
 PARALLEL_MAKE = ""
 
@@ -14,7 +14,7 @@ SRC_URI = " \
           file://op_pnd_run.desktop \
 "
 
-SRCREV = "23d9f33beb0ab00741f2fc1771ff8fe0811e00d4"
+SRCREV = "87cb80180edb9ed39ce606fb90d8ddb1b1956b1e"
 
 S = "${WORKDIR}/git"
 
index d30e58a..48d0049 100644 (file)
@@ -6,7 +6,7 @@ COMPATIBLE_MACHINE = "omap3-pandora"
 DEPENDS = "zenity dbus"
 RDEPENDS = "zenity dbus"
 
-PR = "r50"
+PR = "r51"
 
 SRC_URI = " \
           file://op_bright.sh \
index a30525d..593d44b 100755 (executable)
@@ -3,7 +3,7 @@
 # LCD-Settings, v1.0, 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.
 
-while mainsel=$(zenity --title="LCD-Settings" --width="300" --height="200" --list --column "id" --column "Please select" --hide-column=1 --text="What do you want to do?" "bright" "Change LCD Brightness" "gamma" "Manage LCD Gamma" "filter" "Select current video filter"); do
+while mainsel=$(zenity --title="LCD-Settings" --width="300" --height="200" --list --column "id" --column "Please select" --hide-column=1 --text="What do you want to do?" "bright" "Change LCD Brightness" "gamma" "Manage LCD Gamma" "filter" "Select current video filter" "filterdef" "Select default video filter"); do
 
 case $mainsel in
 
@@ -79,5 +79,12 @@ case $mainsel in
       sudo /usr/pandora/scripts/op_videofir.sh $videofilter
       zenity --info --title="Videofilter applied" --text "The videofilter has been applied." --timeout 6
     fi;;
+    
+    "filterdef")
+    if selection=$(head -1 /etc/pandora/conf/dss_fir/* | sed 's:==> ::' | sed 's: <==::' | sed '/^$/d' | zenity --width=700 --height=200 --title="Videofilter" --hide-column=1 --list --column "filter" --column "Videofilter" --text "Please select a videofilter which will automatically be set on startup" ); then
+      videofilter=$(basename $selection)
+      echo $videofilter > /etc/pandora/conf/filter.state
+      zenity --info --title="Default Videofilter set" --text "The default video filter has been set." --timeout 6
+    fi;;
 esac
 done
\ No newline at end of file
index 2461b0d..b63c6d7 100755 (executable)
@@ -16,6 +16,9 @@ fi
 apply_filter()
 {
        file="${1}"
+       if [ ! -f "$file" ]; then
+           file="${1}_up"
+       fi
        if [ -f "$file" ]; then
                # hardcode overlay for now.. We'll update this as needed
                echo "writing fir:"
@@ -23,6 +26,8 @@ apply_filter()
                sed -n 3,10p "$file" > "/sys/devices/platform/omapdss/overlay1/filter_coef_up_h"
                sed -n 12,19p "$file" > "/sys/devices/platform/omapdss/overlay1/filter_coef_up_v3"
                sed -n 21,28p "$file" > "/sys/devices/platform/omapdss/overlay1/filter_coef_up_v5"
+       else
+           echo "No filter with that name"
        fi
 }