OSDN Git Service

init.sh: let touchscreen never suspend on Surface Go
authorChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 29 Oct 2018 06:57:05 +0000 (14:57 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 29 Oct 2018 06:57:05 +0000 (14:57 +0800)
Tested-by: Jim <a0910115172@gmail.com>
init.sh

diff --git a/init.sh b/init.sh
index 7b205f9..d6257ac 100644 (file)
--- a/init.sh
+++ b/init.sh
@@ -421,6 +421,9 @@ function do_bootcomplete()
                        setkeycodes 0x66 172
                        setkeycodes 0x6b 127
                        ;;
+               Surface*Go)
+                       echo on > /sys/devices/pci0000:00/0000:00:15.1/i2c_designware.1/power/control
+                       ;;
                *)
                        ;;
        esac