Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 880f5370 authored by Kent Persson's avatar Kent Persson Committed by Steve Kondik
Browse files

Light behind keyboard does not get turned off in sleep mode

Key LED does not turn off when entering into sleep mode at
the brightness allignment mode in setting.

1 Open the brightness allignment mode in setting
2 Enter sleep mode

Make sure that the keyboard light is turned off.

Change-Id: Ib0436954164bcd9f6cb8d4453304e645e6ff70f0
parent 8db8709d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1649,6 +1649,10 @@ class PowerManagerService extends IPowerManager.Stub
        EventLog.writeEvent(EventLogTags.POWER_SCREEN_STATE, 0, reason, mTotalTouchDownTime, mTouchCycles);
        mLastTouchDown = 0;
        int err = setScreenStateLocked(false);
        // Turn off the keyboard light aswell
        if (reason == WindowManagerPolicy.OFF_BECAUSE_OF_TIMEOUT) {
            setLightBrightness(LightsService.LIGHT_ID_KEYBOARD, LightsService.BRIGHTNESS_MODE_USER);
        }
        if (err == 0) {
            mScreenOffReason = reason;
            sendNotificationLocked(false, reason);