RK3288_Android7.1接eDP屏休眠之后led状态灯没有亮红色

主要是/sys/class/leds/standby/brightness和/sys/class/backlight/backlight/brightness这两个节点的选择操作。

--- a/services/core/java/com/android/server/power/PowerManagerService.java
+++ b/services/core/java/com/android/server/power/PowerManagerService.java
@@ -1257,7 +1257,8 @@ public final class PowerManagerService extends SystemService
                     Slog.i(TAG, "Waking up from dozing (uid " + reasonUid +")...");
                     break;
             }
-            if("LVDS".equals(SystemProperties.get("sys.hwc.device.primary",  "HDMI-A")))
+            if("LVDS".equals(SystemProperties.get("sys.hwc.device.primary",  "HDMI-A")) ||
+               "eDP".equals(SystemProperties.get("sys.hwc.device.primary",  "HDMI-A")))
                 writeSysfs("/sys/class/leds/standby/brightness","255");//added for ctl led
             else
                 writeSysfs("/sys/class/backlight/backlight/brightness","255");
@@ -1344,7 +1345,8 @@ public final class PowerManagerService extends SystemService
                     break;
             }

-            if("LVDS".equals(SystemProperties.get("sys.hwc.device.primary",  "HDMI-A")))
+            if("LVDS".equals(SystemProperties.get("sys.hwc.device.primary",  "HDMI-A")) ||
+               "eDP".equals(SystemProperties.get("sys.hwc.device.primary",  "HDMI-A")))
                 writeSysfs("/sys/class/leds/standby/brightness","0");//addedfor ctl led
             else
                 writeSysfs("/sys/class/backlight/backlight/brightness","0");

编译更新:

caizd@ubt144c:/work/czd/rk3288_7.1_mid$ mmm frameworks/base/services/

然后替换out/target/product/rk3399_mid/system/framework/services.jar到以下jar包即可:
rk3288:/ # ls -l system/framework/services.jar
-rw-r–r-- 1 root root 3160502 2019-10-23 03:56 system/framework/services.jar

你可能感兴趣的:(RK系列驱动开发)