Support for configuring screen backlight

Accelerant interface:
Introduce new hooks B_SET_BRIGHTNESS and B_GET_BRIGHTNESS. Brightness is
a float in the 0..1 range.

App_server:
Forward brightness things between BScreen and the accelerant.

intel_extreme:
Implement the hooks. Note that this only works for laptop panels, but
the driver will pretend to support it in other cases as well.

Screen preferences:
If the accelerant supports the B_GET_BRIGHTNESS hook, allow to set
brightness with a slider. Otherwise, the slidere is hidden and these
changes aren't visible.
This commit is contained in:
Adrien Destugues
2017-11-21 09:12:18 +01:00
parent c5f9934cd8
commit 3a2b67b5ae
28 changed files with 318 additions and 1 deletions
+3
View File
@@ -174,6 +174,9 @@ enum {
AS_GET_DPMS_STATE,
AS_GET_DPMS_CAPABILITIES,
AS_SCREEN_SET_BRIGHTNESS,
AS_SCREEN_GET_BRIGHTNESS,
// Misc stuff
AS_GET_ACCELERANT_PATH,
AS_GET_DRIVER_PATH,