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

[f5121] Xiaomi Redmi 5 Plus (vince) compatibility fixes #43

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

spiiroin
Copy link
Contributor

No description provided.

There is a hardcoded Sony XperiaX specific max_brightness workaround
in f5121 backend. This stops the backend from being usable with other
devices like vince.

To make f5121 backend more generic, add MaxBrightnessOverride
configuration option and use it for handling f5121 special needs.

Ad example Xiaomi Redmi 5 Plus (vince) configuration file.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jolla.com>
Changing values originating from sysfs files that have deliberately been
opened in read-only mode leads to journal spamming as write attempts fail.
Such value changes are expected when dealing with for example configuration
entries dealing with overriding max_brightness values.

Keep track in what kind of mode a file was opened. In case of read-only
mode, just update internally cache state and skip write attempt.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jolla.com>
@spiiroin spiiroin marked this pull request as draft November 29, 2024 10:20
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

Successfully merging this pull request may close these issues.

1 participant