Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweak backlight control path configuration
A way to explicitly define for backlight brightness control paths has been implemented a long time ago. However it uses hard-coded key names that do not follow the conventions used in the rest of the mce code base. Fix configuration item naming and use constants instead of hard-coding. Warn if number of possible brightness control files differs from the number of possible maximum brightness files. Add an example configuration ini-file. [mce] Tweak backlight control path configuration. Fixes MER#977
- Loading branch information
Showing
3 changed files
with
65 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Configuration file for MCE - display brightness control paths | ||
# | ||
# Normally MCE locates display backlight control files by probing | ||
# few standard places under sysfs. In case the control files are | ||
# in non-standard directories or probing produces false positive | ||
# hits, a hardware adaptation specific configuration file should | ||
# be used to define alternative sets of paths to check before | ||
# generic probing. | ||
|
||
[Display] | ||
|
||
# Semicolon separated list of directories that contain writable | ||
# "brightness" and readable "max_brightness" files. | ||
#BrightnessDirectory=/sys/devices/i2c-0/0-0036/leds/lm3533-lcd-bl | ||
|
||
# In case the control files do not follow the "brightness" and | ||
# "max_brightness" pattern, semicolon separated list of full paths | ||
# can be defined. Note that BrightnessPath and MaxBrightnessPath | ||
# lists must have equal number of entries. | ||
#BrightnessPath=/sys/path/to/brightness_file | ||
#MaxBrightnessPath=/sys/path/to/max_brightness_file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters