Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example of new Frontlight API in 3.4 firmware #108

Open
calin-darie opened this issue Sep 19, 2023 · 4 comments
Open

Example of new Frontlight API in 3.4 firmware #108

calin-darie opened this issue Sep 19, 2023 · 4 comments

Comments

@calin-darie
Copy link

Hi!

I have a few reports of people with Tab Ultra / Tab Ultra C / Palma devices, all on firmware 3.4, where the old CTMBrightness methods are failing.

Which API should I use?

calin-darie/gentle-glow-onyx-boox#19

calin-darie/gentle-glow-onyx-boox#20

calin-darie/gentle-glow-onyx-boox#21

@calin-darie
Copy link
Author

f52728c

Alright, found something

Is onyx.sdk.device 1.2.26 published?

@calin-darie
Copy link
Author

One thing I still can't figure out: what system properties are being changed by the new CTMBrightnessProvider and CTMTemperatureProvider

For the old API, the system properties used to be
content://settings/system/screen_cold_brightness
and
content://settings/system/screen_warm_brightness

I need these in order to react to changes outside my app. It's also a good way to know when changes made by my app have taken effect, without polling.

@calin-darie
Copy link
Author

Hi @Edward259 , can you please hellp?

@Edward259
Copy link
Contributor

You can monitor the changes in these values in CTM type, and I noticed that your app has been adjusted.
content://settings/system/screen_ctm_brightness
content://settings/system/screen_ctm_temperature
content://settings/system/ctm_brightness_state_key
content://settings/system/ctm_temperature_state_key

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants