if (user_level == 0 && panel->backlight.enabled) {
intel_panel_disable_backlight(connector);} else if (!panel->backlight.enabled) { intel_panel_enable_backlight(connector);}
Hello everyone!
Hello everyone!
I had to disable suspend in build.prop because it caused freezes. Device enters suspend normally and can't leave it.
Hello everyone!
Tried "echo freeze > /sys/power/state" on 4.12 a minute ago.
At first time it did nothing. dmesg wrote this: "PM: Wakeup pending, aborting suspend" (see dmesg.1.txt for full log).
I executed it again and device entered suspend (screen turned off). I tried to wake it back without any success. Had to hold the power button for hard reset.
After reboot I executed this command one more time and device rebooted immediately.
Three different results at the same device...
Test command: cat /proc/kmsg & echo freeze > /sys/power/state
1. jwrdegoede/linux-sunxi v4.12-footrail
CONFIG_PMIC_OPREGION=yCONFIG_CRC_PMIC_OPREGION=yCONFIG_XPOWER_PMIC_OPREGION=yCONFIG_BXT_WC_PMIC_OPREGION=yCONFIG_CHT_WC_PMIC_OPREGION=y
Result: instant reboot
--
2. Revert RTC patch a1e23a42f1bdc00e32fc4869caef12e4e6272f26
Result: complete freeze after "PM: Preparing system for sleep (freeze)"
--
3. sdhci-acpi
#!/system/bin/sh# Wifiecho "on" > /sys/bus/platform/drivers/sdhci-acpi/INT33BB:00/power/control# eMMCecho "on" > /sys/bus/platform/drivers/sdhci-acpi/80860F14:00/power/controlecho "on" > /sys/bus/platform/drivers/sdhci-acpi/80860F14:01/power/control# MicroSD
echo "on" > /sys/bus/platform/drivers/sdhci-acpi/80860F14:02/power/control # No such file or directory
Result: instant reboot
--
4. Combine 2 and 3
Result: instant reboot