From 17cab4cb0c61bb511e395ae39dc5db0122387e7c Mon Sep 17 00:00:00 2001 From: Matthew Allum <mallum@openedhand.com> Date: Mon, 3 Oct 2005 18:13:53 +0000 Subject: Hack up the handler some more so it roughly works git-svn-id: https://svn.o-hand.com/repos/poky@108 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- openembedded/packages/chkhinge26/chkhinge26_0.0.bb | 2 +- openembedded/packages/chkhinge26/files/hinge-handler | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/openembedded/packages/chkhinge26/chkhinge26_0.0.bb b/openembedded/packages/chkhinge26/chkhinge26_0.0.bb index 4ea9ebab3a..adf1bf0313 100755 --- a/openembedded/packages/chkhinge26/chkhinge26_0.0.bb +++ b/openembedded/packages/chkhinge26/chkhinge26_0.0.bb @@ -14,5 +14,5 @@ do_install_append () { install -m 0755 ${WORKDIR}/hinge-handler ${D}/${bindir}/ } -FILES_${PN} += "${BINDIR}/hinge-handler" +FILES_${PN} += "${bindir}/hinge-handler" diff --git a/openembedded/packages/chkhinge26/files/hinge-handler b/openembedded/packages/chkhinge26/files/hinge-handler index 12d0172e42..d8100e9b2e 100755 --- a/openembedded/packages/chkhinge26/files/hinge-handler +++ b/openembedded/packages/chkhinge26/files/hinge-handler @@ -21,13 +21,18 @@ fi if [ $STATE = "0" ]; then echo "lanscape" killall mbinputmgr - xrand -o normal +# urg mbinputmgr should kill below + killall matchbox-keyboard + killall matchbox-stroke + xrandr -o normal exit 0 fi if [ $STATE = "2" ]; then echo "portrait" + xrandr -o left +# just to be extra safe + sleep 1 mbinputmgr & - xrandr -o left exit 0 fi \ No newline at end of file -- cgit v1.2.3