new randr feature: brightness control #325
Replies: 4 comments 6 replies
-
@callmetango @cepelinas9000 @mikedld @josephcrowell @jonhermansen @probonopd @artist4xlibre @algrid @b-aaz |
Beta Was this translation helpful? Give feedback.
-
Let's just make sure that no Linux-isms creep in and that it'll work on e.g., the BSDs, too. |
Beta Was this translation helpful? Give feedback.
-
Looks like a good proposal! @metux what's the idea behind making those values 32bit, but limiting them by 65535 which is basically 16bit? Is it just some protocol nuance? |
Beta Was this translation helpful? Give feedback.
-
I really like the idea! Brightness control has always been "delicate", to put it very diplomatically. Backlight - ArchWiki lists many of the different solutions that may or may not work depending on the particular hardware. @metux Is it technically possible to unify all of this? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the idea
Add randr output properties to retrieve and control output brightness.
If monitors are properly calibrated (not in scope here), then:
The implementation can happen in each driver individually (they're already taking care of output properties on their own), so no extra support code needed. First driver implementation could be done in modesetting.
Usage advice:
It should be done because
Brightness control historically always been ugly: X11 has no common interface for this. Applications need to resort to different, OS specific (and so local-only) interfaces, which might even need root privileges. And it's complicated to match up xrandr outputs with the OS specific output device objects (eg. drm outputs)
Instead of various competing and heavily OS specific out-out-band mechanisms, X11 should have a OS agnostic standard protocol.
What are the alternatives?
No response
Additional context
Futher reading:
https://lore.kernel.org/dri-devel/[email protected]/
Extra fields
Beta Was this translation helpful? Give feedback.
All reactions