From 49b7fc00d16022cd0306a0b979cf83b971c461bd Mon Sep 17 00:00:00 2001 From: Urja Rannikko Date: Sat, 24 Nov 2012 21:57:17 +0200 Subject: [PATCH] op_bluetooth_work: workaround BT freezes http://bugs.openpandora.org/index.php?do=details&task_id=304 --- recipes/pandora-system/pandora-scripts.bb | 2 +- recipes/pandora-system/pandora-scripts/op_bluetooth_work.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/recipes/pandora-system/pandora-scripts.bb b/recipes/pandora-system/pandora-scripts.bb index c41d4f7..98d3ad2 100644 --- a/recipes/pandora-system/pandora-scripts.bb +++ b/recipes/pandora-system/pandora-scripts.bb @@ -6,7 +6,7 @@ COMPATIBLE_MACHINE = "omap3-pandora" DEPENDS = "zenity dbus" RDEPENDS = "zenity dbus" -PR = "r124" +PR = "r125" SRC_URI = " \ file://op_paths.sh \ diff --git a/recipes/pandora-system/pandora-scripts/op_bluetooth_work.sh b/recipes/pandora-system/pandora-scripts/op_bluetooth_work.sh index 7c0f2af..26c5e5c 100755 --- a/recipes/pandora-system/pandora-scripts/op_bluetooth_work.sh +++ b/recipes/pandora-system/pandora-scripts/op_bluetooth_work.sh @@ -12,6 +12,7 @@ if [ "$1" = "1" ]; then sleep 0.2 echo out > /sys/class/gpio/gpio15/direction fi + echo 0 > /sys/devices/platform/omap_uart.0/sleep_timeout echo 1 > /sys/class/gpio/gpio15/value hciattach /dev/ttyO0 texasalt 3000000 INTERFACE="`hciconfig | grep "^hci" | cut -d ':' -f 1`" @@ -26,6 +27,7 @@ elif [ "$1" = "0" ]; then killall hciattach echo 0 > /sys/class/gpio/gpio15/value echo 0 > '/sys/class/leds/pandora::bluetooth/brightness' + echo 10 > /sys/devices/platform/omap_uart.0/sleep_timeout exit 0 else echo "invalid argument" -- 2.39.2