Skip to content

Inability to get auto-brightness by ambient light sensor on some devices (Surface Pro 8) #426

Description

@emoacht

I have been noticing that on some devices, namely Surface Pro 8, when auto-brightness by ambient light sensor is enabled, the actual adjusted brightness cannot be obtained by the functions currently available for desktop app (UWP is not included in desktop app).

I found that it can be obtained by BrightnessOverride.GetLevelForScenario method as shown below.

// using Windows.Graphics.Display;

BrightnessOverride bo = BrightnessOverride.GetForCurrentView();
double brightness = bo.GetLevelForScenario(DisplayBrightnessScenario.DefaultBrightness);

However, it requires GetForCurrentView method and it is clearly documented that it is not supported for desktop app and no alternative API is available.

Therefore, I don't think this issue can be solved in near future. Of cource, I would appreciate if anyone could provide a workable solution or workaround for this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions