-
Notifications
You must be signed in to change notification settings - Fork 29
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
Turn off Backlight on Shutdown #103
Comments
It used to work on kernel 5.2 (backlight turned off on shutdown), but after upgrading to 5.7 it is no longer happening (in fact, it backlight turns of sometimes, but not always) |
Thanks again @kedder!
|
Hm, I believe |
Just asked perhaps you knew before trying.
I'm building the image. No errors so far. |
It did not help. |
I've discovered something funny in relation to this issue: The backlight power can be controlled by writing So, if you do However, this is not what happens on my openvario. The backlight turns off only sometimes. And the probability of it turning off seems to correlate with screen brightness itself: the higher the brightness, the less often screen goes dark when I write I assume, when system shuts down, it effectively does the same as writing This all feels like a bug, just not clear where exactly. |
It feels like the line, controlled by pwm stays in whatever state it was the moment backlight was turned down - either full 1 or 0. Even though the pwm backlight driver explicitly asks to set the duty cycle to 0: https://github.com/torvalds/linux/blob/master/drivers/video/backlight/pwm_bl.c#L81-L83 It might be that |
Great Andrey!
What do you think about writing 0 brightness with the shutdown script and
writing previous brightness at menu startup?
Would that impact Uboot backlight settings?
I know it is not the best solution. It would only be a patch.
…On Wed, Aug 26, 2020, 7:00 PM Andrey Lebedev ***@***.***> wrote:
It feels like the line, controlled by pwm stays in whatever state it was
the moment backlight was turned down - either full 1 or 0. Even though the
pwm backlight driver explicitly asks to set the duty cycle to 0:
https://github.com/torvalds/linux/blob/master/drivers/video/backlight/pwm_bl.c#L81-L83
It might be that pwm-sun4i module does not execute that instruction very
precisely. Sigh, where can I even discuss that? :(
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#103 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKZLFH7CUBJVHBIM6Z2NC73SCWAYPANCNFSM4PYX5G2A>
.
|
I'm not a huge fan of that, because one day the screen will simply not turn on (for whatever reason). I'd rather live with the screen that does not turn off on shutdown. But I still think this can be fixed or worked around somehow. |
You are right. I didn't think about that.
|
Submitted the bug report to linux devs: https://www.spinics.net/lists/linux-pwm/msg13689.html |
It looks like we have a fix for this: http://lists.infradead.org/pipermail/linux-arm-kernel/2020-September/597482.html, going to submit a PR soon |
Hi guys, Is there a way to turn off the backlight before the cubieboard shuts down?
My image shows a strange fading screen on shutdown. If the backlight was off it would not show.
It is something similar to what happened at satrtup before @kedder fixed the logo sequence.
Thanks!
The text was updated successfully, but these errors were encountered: