diff --git a/projects/WeTek_Play/filesystem/usr/lib/systemd/sleep.conf.d/sleep.conf b/projects/WeTek_Play/filesystem/usr/lib/systemd/sleep.conf.d/sleep.conf new file mode 100644 index 0000000000..4ca7168beb --- /dev/null +++ b/projects/WeTek_Play/filesystem/usr/lib/systemd/sleep.conf.d/sleep.conf @@ -0,0 +1,3 @@ +[Sleep] +SuspendMode=false +HibernateMode=false diff --git a/projects/WeTek_Play/patches/linux/020-meson6_emulate_poweroff.patch b/projects/WeTek_Play/patches/linux/020-meson6_emulate_poweroff.patch new file mode 100644 index 0000000000..df66e9ac7d --- /dev/null +++ b/projects/WeTek_Play/patches/linux/020-meson6_emulate_poweroff.patch @@ -0,0 +1,12 @@ +diff --git a/arch/arm/mach-meson6/pm.c b/arch/arm/mach-meson6/pm.c +index 45c0500968f..c5de8f8ca3e 100755 +--- a/arch/arm/mach-meson6/pm.c ++++ b/arch/arm/mach-meson6/pm.c +@@ -1143,6 +1143,7 @@ static struct platform_driver meson_pm_driver = { + static int __init meson_pm_init(void) + { + printk("enter %s\n",__func__); ++ pm_power_off = meson_pm_suspend; + return platform_driver_probe(&meson_pm_driver, meson_pm_probe); + } + late_initcall(meson_pm_init);