From 9023f24cbecc554af0c6fd0b606325b1d5f47d15 Mon Sep 17 00:00:00 2001 From: Grazvydas Ignotas Date: Fri, 23 Mar 2012 00:35:53 +0200 Subject: [PATCH] op_test_inputs: runscript should switch nub modes --- scripts/op_test_inputs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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 -- 2.39.5