Skip to content

config: add min-brightness to backlight example#5209

Open
gitmpr wants to merge 1 commit into
Alexays:masterfrom
gitmpr:backlight-default-min-brightness
Open

config: add min-brightness to backlight example#5209
gitmpr wants to merge 1 commit into
Alexays:masterfrom
gitmpr:backlight-default-min-brightness

Conversation

@gitmpr

@gitmpr gitmpr commented Jul 18, 2026

Copy link
Copy Markdown

What does this PR do?
The backlight module has supported min-brightness since #3637, but the shipped config.jsonc doesn't set it. Without it, scrolling over the backlight widget can take the screen to full black. Adding "min-brightness": 1 to the example config means anyone copying it gets safe defaults out of the box.

Note: there is a related bug where a scroll step that crosses min-brightness isn't clamped (e.g. scrolling from 5% with scroll-step: 5 and min-brightness: 1 still reaches 0%). That is fixed separately in #5210. This PR and #5210 are complementary.

Related issues
Closes #2275

Checklist

  • Code is formatted with clang-format
  • Builds locally (ninja -C build)
  • Man page updated for any new/changed user-facing option (man/)
  • Tested against the affected module(s)

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.

[Feature request] add an option to put a minimum brightness for the backlight module

1 participant