OSDN Git Service

init.sh: disable sleep on T100
authorChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 8 Jun 2017 03:05:49 +0000 (11:05 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 8 Jun 2017 03:05:49 +0000 (11:05 +0800)
Currently T100 can't resume after suspend. Disable it until
we have a proper solution.

init.sh

diff --git a/init.sh b/init.sh
index e955a8f..736d176 100644 (file)
--- a/init.sh
+++ b/init.sh
@@ -49,6 +49,7 @@ function init_hal_bluetooth()
                T10*TA|HP*Omni*)
                        BTUART_PORT=/dev/ttyS1
                        set_property hal.bluetooth.uart.proto bcm
+                       [ -z "$(getprop sleep.state)" ] && set_property sleep.state none
                        ;;
                MacBookPro8*)
                        rmmod b43