OSDN Git Service

init.sh: disable offlining of non-boot CPU of Teclast X80 Power
authorValentin Manea <valentin.manea@gmail.com>
Fri, 12 Apr 2019 08:46:41 +0000 (16:46 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 12 Apr 2019 08:51:00 +0000 (16:51 +0800)
This fixes the suspend/resume issue of the device.

init.sh

diff --git a/init.sh b/init.sh
index 11ac812..c8a42d6 100644 (file)
--- a/init.sh
+++ b/init.sh
@@ -440,6 +440,9 @@ function do_bootcomplete()
                Surface*Go)
                        echo on > /sys/devices/pci0000:00/0000:00:15.1/i2c_designware.1/power/control
                        ;;
+               X80*Power)
+                       set_property power.nonboot-cpu-off 1
+                       ;;
                *)
                        ;;
        esac