ubports / ubuntu-touch

Ubuntu Touch's issue inbox is now migrated to GitLab.
https://gitlab.com/ubports/ubuntu-touch
1.28k stars 110 forks source link

Auto brightness stopped working #1747

Closed jonnius closed 3 years ago

jonnius commented 3 years ago

Steps to reproduce

Enable auto brightness (it doesn't matter whether this is done via system settings or the pulldown menu). Expose the device to light or to darkness.

Expected behavior

The brightness adapts to the environmental brightness.

Actual behavior

The brightness does not change at all.

Logfiles and additional information

After a sudo stop repowerd && sudo env REPOWERD_LOG=console repowerd:

On enabling auto brightness:

[2021-06-12 01:08:59.277885] DefaultStateMachine[c1]: handle_user_activity_extending_power_state
[2021-06-12 01:08:59.405772] UnityScreenService: dbus_userAutobrightnessEnable(enable)
[2021-06-12 01:08:59.408785] DefaultStateMachine[c1]: enable_autobrightness

Then no further log messages.

ruedigerkupper commented 3 years ago

Confirming the problem and the logs as described above. Device: Sony Xperia X (suzu)

lduboeuf commented 3 years ago

confirmed N5 devel

wilfridd commented 3 years ago

Hi, same issue on Meizu PRO5 and MX4 Best, W.

MenmuirMark commented 3 years ago

Same issue on OPO, rc.

Openanonwriter commented 3 years ago

Confirmed with pixel 3a, RC 2021-W24

MenmuirMark commented 3 years ago

Same issue on OPO, rc.

and on my N5, rc

UniversalSuperBox commented 3 years ago

I can confirm this issue. This now blocks the release of Ubuntu Touch OTA-18. It must be resolved for the release to continue.

Flohack74 commented 3 years ago

Yes please do not post "still not working" messages, we will notify here when it can be tested again...

Openanonwriter commented 3 years ago

Yes please do not post "still not working" messages, we will notify here when it can be tested again...

I removed my message, I do apologize, about that. .

UniversalSuperBox commented 3 years ago

Fixed by https://gitlab.com/ubports/core/repowerd/-/merge_requests/31

ruedigerkupper commented 3 years ago

Yeah! Thank you!

terrorzelle77 commented 3 years ago

Hello, since some weeks auto brightness on Volla Phone isn't working further. Reboot not helps.

So much months everything was ok. I think it's since version 443 on the DEV-Channel.

Is this problem known? Someone works on a fix?

Best regards

stekalb commented 3 years ago

I can confirm it's an issue again on current volla dev images

stekalb commented 3 years ago

It seems to be no issue on mx4, bq e4.5 (both on dev) and opo on halium-dev. In some tg-chat an other user mentioned he is also affected on a different halium9/64bit device. [https://t.me/ubports/355769]

The auto brightness didn't work on my Pixel 2 XL either.

mattbel10 commented 3 years ago

It doesn't work either on my Pixel 3a, Halium 9 device, devel channel.

stekalb commented 3 years ago

According to sensorsstaus app light sensor works on dev

Flohack74 commented 3 years ago

@stekalb a) proximity sensor is different to light sensor and b) Its not sufficient to test if it works with sensorsstatus app, you must do a call and see if the display goes black when you come closer with your face or palm of your hand :) I reopen this.

stekalb commented 3 years ago

Also got a confirmation on TG for not working in OP 6T either.

UniversalSuperBox commented 3 years ago

Should be fixed by a force-push to https://gitlab.com/ubports/core/repowerd/-/commits/ubports/xenial_-_android9 (old version was https://gitlab.com/ubports/core/repowerd/-/commits/ubports/xenial_-_android9-before-aug-2021-rebase). Will take another day before it lands in images.