Summary: | backlight(8) gets confused on power change | ||
---|---|---|---|
Product: | Base System | Reporter: | Mason Loring Bliss <mason> |
Component: | kern | Assignee: | freebsd-bugs (Nobody) <bugs> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | CC: | bz, emaste, lwhsu, manu |
Priority: | --- | ||
Version: | 13.0-RELEASE | ||
Hardware: | Any | ||
OS: | Any |
Description
Mason Loring Bliss
2021-08-12 21:21:46 UTC
Sorry, forgot to add some relevant detail. FreeBSD 13, Thinkpad T420, drm-kmod-g20190710_1 and drm-fbsd13-kmod-5.4.92.g20210419 installed, i915kms loaded. Ok I can reproduce on my laptop too, I'll see how I can fix that. A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=e26ef41f79902991c772b59927c721aa7fa5fc64 commit e26ef41f79902991c772b59927c721aa7fa5fc64 Author: Emmanuel Vadot <manu@FreeBSD.org> AuthorDate: 2022-05-25 14:48:10 +0000 Commit: Emmanuel Vadot <manu@FreeBSD.org> CommitDate: 2022-05-25 14:50:25 +0000 backlight: Update cached value when getting the brightness External events can cause the backlight level to change (AC adapter plug/unplug for example) so cache the value there too. PR: 257796 Sponsored by: Beckhoff Automation GmbH & Co. KG MFC after: 1 week sys/dev/backlight/backlight.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) Sorry for the delay I had totally forgotten about this :( Everything should be fixed now. A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=b203d3de6b1a7ab38f0a1e3d944a1c4887e31a9b commit b203d3de6b1a7ab38f0a1e3d944a1c4887e31a9b Author: Emmanuel Vadot <manu@FreeBSD.org> AuthorDate: 2022-05-25 14:48:10 +0000 Commit: Emmanuel Vadot <manu@FreeBSD.org> CommitDate: 2022-06-01 07:12:18 +0000 backlight: Update cached value when getting the brightness External events can cause the backlight level to change (AC adapter plug/unplug for example) so cache the value there too. PR: 257796 Sponsored by: Beckhoff Automation GmbH & Co. KG MFC after: 1 week (cherry picked from commit e26ef41f79902991c772b59927c721aa7fa5fc64) sys/dev/backlight/backlight.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) |