From: Michael Mrozek Date: Tue, 16 Oct 2012 01:53:44 +0000 (+0200) Subject: rc.pandora-state: Added mbuttons_delay-Settings for nubs as well as X-Git-Tag: sz_152~19 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=openpandora.oe.git;a=commitdiff_plain;h=f1e8d90912d4a3ee34edd25ca54ac9f2c4a425db rc.pandora-state: Added mbuttons_delay-Settings for nubs as well as "simple" Gamma Settings --- diff --git a/recipes/pandora-system/pandora-state/rc.pandora-state b/recipes/pandora-system/pandora-state/rc.pandora-state index ef7f6d2..a76329b 100644 --- a/recipes/pandora-system/pandora-state/rc.pandora-state +++ b/recipes/pandora-system/pandora-state/rc.pandora-state @@ -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