op_test_inputs: runscript should switch nub modes
authorGrazvydas Ignotas <notasas@gmail.com>
Thu, 22 Mar 2012 22:35:53 +0000 (00:35 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Thu, 22 Mar 2012 22:46:08 +0000 (00:46 +0200)
scripts/op_test_inputs

index 38e5793..929e946 100755 (executable)
@@ -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