From: Grazvydas Ignotas Date: Thu, 22 Mar 2012 22:35:53 +0000 (+0200) Subject: op_test_inputs: runscript should switch nub modes X-Git-Tag: sz_beta3~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9023f24cbecc554af0c6fd0b606325b1d5f47d15;p=pandora-misc.git op_test_inputs: runscript should switch nub modes --- diff --git a/scripts/op_test_inputs b/scripts/op_test_inputs index 38e5793..929e946 100755 --- a/scripts/op_test_inputs +++ b/scripts/op_test_inputs @@ -1,8 +1,15 @@ #!/bin/sh -OLDDEPTH=`fbset | grep geometry | awk '{ print $6 }'` +olddepth=`fbset | grep geometry | awk '{ print $6 }'` +nub0mode=`cat /proc/pandora/nub0/mode` +nub1mode=`cat /proc/pandora/nub1/mode` + +echo absolute > /proc/pandora/nub0/mode +echo absolute > /proc/pandora/nub1/mode fbset -depth 16 op_runfbapp op_test_inputs_bin -fbset -depth $OLDDEPTH +fbset -depth $olddepth +echo "$nub0mode" > /proc/pandora/nub0/mode +echo "$nub1mode" > /proc/pandora/nub1/mode