+46
−53
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
We now support pulsing ("breathing") as well as flashing
effect for the notification LED at the top. Since the Android
framework does not differentiate between
pulsing and flashing LEDs we activate breathing for the
pair of (on,off) durations equal to (1000ms,1000ms). This corresponds
to the "Normal/Normal" setting in the UI Settings and is
the only mode used on the device until now. For other pulse duration
time combinations we now activate flashing. To test this, go to
"Settings/Apps & notifications/Notifications/Advanced/Notification light"
and try changing settings for "Default" or individual apps.
Note that the kernel driver code does not support breathing
or flashing with less than full brightness, hence
we cannot support all colors for these modes but
compromise based on the brightness components instead to at least
produce all 2**3 possible color combinations for pulsing or flashing.
Controlling the start or light flash phase for RGB components appears
to be a challenge, thus changing lights rapidly can occasionally
lead to odd effects such as LED alternatingly flashing red and green
rather than flashing yellow. Setting normal constant colors is
possible with any brightness between 0 and 255 for all three
components, thus allowing all color combinations.
While at it, also put a stop to the log spam
"Light requested not available on this device. 2" (Buttons)
by simply ignoring the request rather than returning an
error condition.
Change-Id: I218be98d78d4629c111a25cfc4f68ad18cc758cf