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

[Oppo Features] DC dimming path changed #106

Open
melontini opened this issue Mar 6, 2024 · 0 comments
Open

[Oppo Features] DC dimming path changed #106

melontini opened this issue Mar 6, 2024 · 0 comments

Comments

@melontini
Copy link

The new path is /sys/kernel/oplus_display/dimlayer_bl_en. I wrote a fix, but couldn't test due to, let's say, "various complications".

try {
    val oppoPath = File("/sys/kernel/oppo_display/dimlayer_bl_en ")//typo?
    if (oppoPath.exists()) oppoPath.writeText(value)
    else File("/sys/kernel/oplus_display/dimlayer_bl_en").writeText(value)
} catch(e: Exception) {
    Log.d("PHH", "Failed setting dc diming", e)
}

Did the old file also contain 0 0 or was it just 0?

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

1 participant