backlight: add support for manual brightness

This commit is contained in:
2026-09-27 13:28:03 +02:00
parent 88fdeb326c
commit c8419e37e1
4 changed files with 30 additions and 0 deletions
+3
View File
@@ -37,6 +37,9 @@ BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth
USE_CUSTOM_AUDIO_POLICY := 1 USE_CUSTOM_AUDIO_POLICY := 1
USE_XML_AUDIO_POLICY_CONF := 1 USE_XML_AUDIO_POLICY_CONF := 1
# Lights
TARGET_SPECIFIC_HEADER_PATH := $(DEVICE_PATH)/include
# Radio # Radio
BOARD_HAVE_QCOM_FM := true BOARD_HAVE_QCOM_FM := true
+14
View File
@@ -0,0 +1,14 @@
#ifndef SAMSUNG_LIGHTS_H
#define SAMSUNG_LIGHTS_H
/*
* Board specific nodes
*
* rubenslte exposes the panel backlight through the mdss_fb LED class
* device. There is no touchkey backlight or notification LED on this
* device.
*/
#define PANEL_BRIGHTNESS_NODE "/sys/class/leds/lcd-backlight/brightness"
#define PANEL_MAX_BRIGHTNESS_NODE "/sys/class/leds/lcd-backlight/max_brightness"
#endif // SAMSUNG_LIGHTS_H
+4
View File
@@ -21,6 +21,10 @@ PRODUCT_PACKAGES += fstab.qcom init.target.rc
# Vibrator # Vibrator
PRODUCT_PACKAGES += android.hardware.vibrator@1.0-impl PRODUCT_PACKAGES += android.hardware.vibrator@1.0-impl
# Lights
PRODUCT_PACKAGES += \
android.hardware.light@2.0-service.samsung
# Overlays # Overlays
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay-lineage DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay-lineage
+9
View File
@@ -1,4 +1,13 @@
<manifest version="1.0" type="device"> <manifest version="1.0" type="device">
<hal format="hidl">
<name>android.hardware.light</name>
<transport>hwbinder</transport>
<version>2.0</version>
<interface>
<name>ILight</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl"> <hal format="hidl">
<name>android.hardware.vibrator</name> <name>android.hardware.vibrator</name>
<transport arch="32">passthrough</transport> <transport arch="32">passthrough</transport>