Repository navigation
brightness: let users choose which devices the shell controls - #4286
yevhen-sychov wants to merge 1 commit into
Conversation
Backport of duxlabs-dev#4286 onto v2.1.2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
/claude review |
Claude reviewOne UI issue in the device list's fallback state. The rest looks good.
|
|
hello
merged suggested by claude code
created pr, pls check as well |
064a26b to
196ea89
Compare
|
Please rebase |
196ea89 to
b0388e6
Compare
done |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
b0388e6 to
1cfb8e4
Compare
|
/claude review |
Claude reviewNo issues found. The earlier fallback-row finding is fixed, and dux-docs#211 is now linked. |
|
The pinned brightness devices largely already deal with this, so I wonder if we can solve the issue by just making pins also control which output an OSD displays on? Rather than adding more settings and such |
#4415 yeah it may be, and probably a better placemenen overall. this can be closed if 4415 is ok |
Description
On my MacBook Pro 16 (T2) there are two backlight devices:
gmux_backlightfor the screen andappletb_backlightfor the Touch Bar. tiny-dfr dims the Touch Bar when idle and brings it back on touch, and every time it does that DMS shows the brightness OSD. So the OSD pops up constantly. DMS also picks the Touch Bar as the default device, so the brightness keys change the Touch Bar instead of the screen. There's no way to tell DMS to ignore a device right now.This adds a "Brightness" card to the Displays settings page. "Control all devices" is on by default, so nothing changes for existing users. If you turn it off, you get a toggle for each device and DMS only controls the ones you leave on. Unchecked devices don't show the OSD, aren't in the control center slider, can't be picked as the default device and are ignored by IPC.
It's stored as
brightnessControlledDevicesin session.json, next to the other per-device brightness settings. The filtering happens in one place in BrightnessService, so nothing else had to change. QML only, no changes to core or the socket protocol.A few things that might come up in review:
lastBrightnessDevicealready work the same way.The code was written with Claude. I reviewed it and tested it on my machine.
Type of change
Related issues
Screenshots / video
Checklist
I18n.tr()with translator context, reusing existing terms where possiblemake fmt, added/updated tests,make testpasses, andgo mod tidyis cleanmake lint-qmlwith no new warningsTested on v2.1.2 + this patch: with the Touch Bar unchecked the OSD no longer pops up and the brightness keys control the screen.
make test-qmland the pre-commit hooks pass.