Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support auto keyboard backlight based on light sensor #3363

Open
2 tasks done
yinyue200 opened this issue Nov 11, 2024 · 1 comment
Open
2 tasks done

Support auto keyboard backlight based on light sensor #3363

yinyue200 opened this issue Nov 11, 2024 · 1 comment
Labels
question Further information is requested

Comments

@yinyue200
Copy link
Contributor

Rules

  • I made myself familiar with the Readme, FAQ and Troubleshooting.
  • I understand that, if insufficient information will be provided, my issue will be closed without an answer.

Is your feature request related to a problem? Please describe

The keyboard backlight can be automatically turned on or off when the ambient light is bright

Describe the solution you'd like

follow to similar logic https://github.com/danieleds/Asus-Zenbook-Ambient-Light-Sensor-Controller
maybe we can use cswinrt lib for "Windows.Devices.Sensors" to access light sensor.

Describe alternatives you've considered

No response

Device and Model

Zenbook

Additional information.

No response

@seerge
Copy link
Owner

seerge commented Nov 11, 2024

@yinyue200 hello,

That's interesting idea, but honestly, I have don't know how to read backlight sensor data as my device(s) don't even have it.
I see that the linux tool you linked seem to read it from /sys/bus/acpi/devices/ACPI0008:00/ali

https://github.com/danieleds/Asus-Zenbook-Ambient-Light-Sensor-Controller/blob/2b9a795e3cf6d1e0665e63e6bb47394e0b1fa43c/service/main.cpp#L205

I'm not sure what would be an equivalent in windows. Since you have a sensor, may be you can experiment and check if it returns something by doing it a way app currently accesses ATKACPI driver ?

public void Control(uint dwIoControlCode, byte[] lpInBuffer, byte[] lpOutBuffer)

@seerge seerge added the question Further information is requested label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants