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

bionic and droid 3: add ts-buttons light to mce now that the kernel c… #28

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 15 additions & 1 deletion leste-config-bionic/etc/mce/mce.ini.d/70-bionic.ini.leste
Expand Up @@ -4,13 +4,27 @@

[Modules]

ModulesDevice=led-sw;led-dbus;iio-accelerometer;iio-als;evdevvibrator;iio-proximity;quirks-mapphone;battery-guard
ModulesDevice=led-sw;led-dbus;button-backlight;iio-accelerometer;iio-als;evdevvibrator;iio-proximity;quirks-mapphone;battery-guard

[IioAls]

# bionic als reports lux but the values are very wrong corrected here
CalScale = 25

[Backlights]

# A list of all sysfs led names that should be configured
ConfiguredLights=button-backlight

# format =
# hidden by slider ;
# backlight is of main keyboard ;
# led stays on when display is dimmed ;
# led is locked to initial als state ;
# fade time (ms) ;
# als brightness profile to be used
button-backlight=0;0;0;0;0;1

[LEDGenericSoftware]

RedSysfs=status-led:red
Expand Down
21 changes: 17 additions & 4 deletions leste-config-droid3/etc/mce/mce.ini.d/70-droid3.ini.leste
@@ -1,17 +1,30 @@
# MCE configuration for droid bionic xt875
# MCE configuration for droid 4 xt862 xt860
# DO NOT EDIT THIS FILE!!
# Copy keys you want to change to 99-user.ini and edit them there

[Modules]

ModulesDevice=led-sw;led-dbus;iio-accelerometer;iio-als;evdevvibrator;iio-proximity
ModulesDevice=led-sw;led-dbus;button-backlight;iio-accelerometer;iio-als;evdevvibrator;iio-proximity;quirks-mapphone;battery-guard

[IioAls]

# bionic als reports lux but the values are very wrong corrected here
# XXX: let's check if this is also true for the droid3
# droid 3 als reports lux but the values are very wrong corrected here
CalScale = 25

[Backlights]

# A list of all sysfs led names that should be configured
ConfiguredLights=button-backlight

# format =
# hidden by slider ;
# backlight is of main keyboard ;
# led stays on when display is dimmed ;
# led is locked to initial als state ;
# fade time (ms) ;
# als brightness profile to be used
button-backlight=0;0;0;0;0;1

[LEDGenericSoftware]

RedSysfs=status-led:red
Expand Down