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 for all devices under /sys/class/backlight #2

Open
bugabinga opened this issue Feb 18, 2019 · 0 comments
Open

Support for all devices under /sys/class/backlight #2

bugabinga opened this issue Feb 18, 2019 · 0 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@bugabinga
Copy link
Owner

If I understand the sysfs backlight API correctly, the various drivers expose their functionality under /sys/class/backlight/<device_name>/ {brightness,max_brightness}.

There are more files, but only brightness and max_brightness are relevant for kira.

kira should enumerate all devices into a vector.
If a human specifies a device, use that one, otherwise pick the first in the vector.
Devices can be specified by giving their name after the brightness value.

$ kira 44 <device_name>

The device name is fuzzily matched.
No match or an ambiguous match results in an error.

Assuming a machine with 3 backlight devices:

  1. /sys/class/backlight/intel_backlight/
  2. /sys/class/backlight/acpi_backlight/
  3. /sys/class/backlight/acpi_super_backlight/

kira 33 intel uses 1.
kira 33 acpi is an error.
kira 33 acpi_b uses 2.
kira 33 ab uses 2.
kira 33 abs uses 3.

Questions

  • Are the value ranges (min,max) consistent between drivers?
  • What does it mean when there are multiple devices under /sys/class/backlight?
  • Why have I never seen this functionality on desktops? Laptops only?
@bugabinga bugabinga changed the title Support for all devices undef /sys/class/backlight Support for all devices under /sys/class/backlight Feb 18, 2019
@bugabinga bugabinga added enhancement New feature or request question Further information is requested labels Feb 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant