Skip to content

Minimum light setting limited by vendor blobs #64

@Flamefire

Description

@Flamefire

I've seen lilac devices setting the minimum brightness to 34 not to 1 as it should.

Following that is quite hard, enabling some debug output I got this:

01-08 13:50:47.946  1440  1904 V LightsService: setLight #0: color=#ff030303: brightnessMode=0)
01-08 13:50:47.948   869   869 D illumination-service: 'backlight': Color ff030303, BrMode 0, OnMS 0, OffMS 0, Mode 0
01-08 13:50:47.948     0     0 D qpnp_wled_set_level: brightness=48 level=48
01-08 13:50:47.949     0     0 D level   : 48
01-08 13:50:48.328  1440  1904 V LightsService: setLight #0: color=#ff020202: brightnessMode=0)
01-08 13:50:48.330   869   869 D illumination-service: 'backlight': Color ff020202, BrMode 0, OnMS 0, OffMS 0, Mode 0
01-08 13:50:48.329     0     0 D qpnp_wled_set_level: brightness=34 level=34
01-08 13:50:48.331     0     0 D level   : 34
01-08 13:50:49.109  1440  1904 V LightsService: setLight #0: color=#ff010101: brightnessMode=0)
01-08 13:50:49.111   869   869 D illumination-service: 'backlight': Color ff010101, BrMode 0, OnMS 0, OffMS 0, Mode 0

I.e. a color of #ff020202 still works, but yields a brightness level of 34 while the lowest possible brightness color gets stuck in the illumination-service. That is extracted from stock at https://github.com/whatawurst/android_device_sony_lilac/blob/920e87e6d8a212246d22ec51c3cde15d984d9b6d/proprietary-files-vendor.txt#L828

Why do we copy that and lights.default.so from stock instead of using e.g. the module at https://github.com/whatawurst/android_device_sony_yoshino-common/blob/lineage-18.1/hardware/qcom-caf/display/liblight/lights.c or use a HIDL service implementation such as https://github.com/sonyxperiadev/device-sony-common/tree/fc6d709db9b4f44e8bfb410d8c7e7e67ca292a6a/hardware/liblights ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions