rc.pandora-state: Added mbuttons_delay-Settings for nubs as well as
authorMichael Mrozek <EvilDragon@openpandora.org>
Tue, 16 Oct 2012 01:53:44 +0000 (03:53 +0200)
committerMichael Mrozek <EvilDragon@openpandora.org>
Tue, 16 Oct 2012 03:12:01 +0000 (05:12 +0200)
"simple" Gamma Settings

recipes/pandora-system/pandora-state/rc.pandora-state

index ef7f6d2..a76329b 100644 (file)
@@ -33,6 +33,8 @@ d_stop() {
        cat -v /proc/pandora/nub1/scrolly_sensitivity | sed -n '1p' >> /etc/pandora/conf/nubs.state
        cat -v /proc/pandora/nub1/scroll_rate | sed -n '1p' >> /etc/pandora/conf/nubs.state
        cat -v /proc/pandora/nub1/mbutton_threshold | sed -n '1p' >> /etc/pandora/conf/nubs.state
+       cat -v /proc/pandora/nub0/mbutton_delay | sed -n '1p' >> /etc/pandora/conf/nubs.state
+       cat -v /proc/pandora/nub1/mbutton_delay | sed -n '1p' >> /etc/pandora/conf/nubs.state
 }
 
 d_start() {
@@ -43,6 +45,9 @@ d_start() {
        fi
        cat /etc/pandora/conf/dirty_expire_centisecs >  /proc/sys/vm/dirty_expire_centisecs
        cat /etc/pandora/conf/gamma.state > $SYSFS_GAMMA
+       dssgamma=$(cat /etc/pandora/conf/dssgamma.state)
+       dssgamma2=$(echo "scale=2;$dssgamma / 100" | bc)
+       sudo /usr/pandora/scripts/op_gamma.sh $dssgamma2
        if [ -f /etc/pandora/conf/filter.state ]; then
                filter=$(cat /etc/pandora/conf/filter.state)
                /usr/pandora/scripts/op_videofir.sh $filter 
@@ -71,6 +76,8 @@ d_start() {
        sed -n '10p' /etc/pandora/conf/nubs.state > /proc/pandora/nub1/scrolly_sensitivity
        sed -n '11p' /etc/pandora/conf/nubs.state > /proc/pandora/nub1/scroll_rate
        sed -n '12p' /etc/pandora/conf/nubs.state > /proc/pandora/nub1/mbutton_threshold
+       sed -n '13p' /etc/pandora/conf/nubs.state > /proc/pandora/nub0/mbutton_delay
+       sed -n '14p' /etc/pandora/conf/nubs.state > /proc/pandora/nub1/mbutton_delay
        echo "Enabling ZRAM Swap"
        mkswap /dev/zram0
        swapon -p 5 /dev/zram0