Open melontini opened 1 year ago
Give the result of adb shell dumpsys sensorservice
and of adb shell lshal
Le lun. 22 mai 2023 à 06:24, melontini @.***> a écrit :
Current Behavior:
Light sensor in realme 8 pro [RMX3081] isn't detected. To Reproduce
- Open any "sensor test" app
- Choose light sensor -> no data
Expected behavior
Light sensor & auto-brightness working. Smartphone (please complete the following information):
- Device: [Realme 8 pro (RMX3081)]
- Build Flavor: [ProjectElixir-3.7-gsi-13.0-20230423-1327-OFFICIAL.img.xz]
Additional context
This message is logged every time light sensor is accessed. I/LightSensorActivity(): LIGHT sensor not found
— Reply to this email directly, view it on GitHub https://github.com/TrebleDroid/treble_experimentations/issues/32, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAA4OSI3ZMC6KM22YO52SDXHLTAZANCNFSM6AAAAAAYJ3ZGBU . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Ok so for some reason the light sensor isn't called android.sensor.light but qti.sensor.wise_light
0x000007ef) stk32600 wise Light Sensor Non-wakeup | oplus |
ver: 1 | type: qti.sensor.wise_light(33171103) | perm: n/a | flags:
0x00000002
on-change | maxDelay=0us | minDelay=0us | FIFO (max,reserved)
= (10000, 0) events | non-wakeUp |
Can you see it in some sensor test app? If you can, please check that
it is working properly (value should increase when brightness
increase)
If you can't, go in treble settings => misc => debug sensors, then
select the sensor, then from computer run:
adb logcat -s PHH
You'll see lines with Got event [xxxx]
, check that xxx contains only
one value, and that xxxx increases when brightness increase
Le lun. 22 mai 2023 à 11:38, melontini @.***> a écrit :
sensorservice.txt lshal.txt
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
It gets detected by AIDA and DevCheck.
With logcat I got
Got event [1150.0, 160.0, 146.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
Only the first three values seem to change.
Ok so that means it's definitely possible to fix, just requires to redirect qti.sensor.wise_light to android.lights.sensor. The sensor is reporting a vector too big while lights should only be of dimension 1, but that has already been taken care of for Xiaomi 13
Current Behavior:
Light sensor in realme 8 pro [RMX3081] isn't detected. ### To Reproduce 1. Open any "sensor test" app 2. Choose light sensor -> no data ### Expected behavior Light sensor & auto-brightness working. ### Smartphone (please complete the following information): - Device: [Realme 8 pro (RMX3081)] - Build Flavor: [ProjectElixir-3.7-gsi-13.0-20230423-1327-OFFICIAL.img.xz] ### Additional context This message is logged every time light sensor is accessed. `I/LightSensorActivity(): LIGHT sensor not found`