Skip to content

Commit

Permalink
add razr support
Browse files Browse the repository at this point in the history
  • Loading branch information
IMbackK committed Dec 4, 2022
1 parent cd7c34b commit 655180f
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 0 deletions.
10 changes: 10 additions & 0 deletions debian/control
Expand Up @@ -63,6 +63,16 @@ Description: Maemo Leste configurations - Droid Bionic
This package contains configuration files for Maemo
Leste on the Motorola Bionic.

Package: leste-config-razr
Architecture: all
Section: droid4
Depends: ${misc:Depends}, leste-config-common
Provides: ${diverted-files}
Conflicts: ${diverted-files}
Description: Maemo Leste configurations - Razr
This package contains configuration files for Maemo
Leste on the Motorola Razr and Droid Razr.

Package: leste-config-pinephone
Architecture: all
Section: pinephone
Expand Down
2 changes: 2 additions & 0 deletions debian/leste-config-razr.displace
@@ -0,0 +1,2 @@
/etc/mce/mce.ini.d/70-razr.ini.leste
/lib/udev/rules.d/50-iio-sensors.rules.leste
1 change: 1 addition & 0 deletions debian/leste-config-razr.install
@@ -0,0 +1 @@
leste-config-razr/* /
40 changes: 40 additions & 0 deletions leste-config-razr/etc/mce/mce.ini.d/70-razr.ini.leste
@@ -0,0 +1,40 @@
# MCE configuration for razr xt910 xt912
# 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;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
GreenSysfs=status-led:green
BlueSysfs=status-led:blue

# hardcoded in cpcap-charger.ko, so disabled here
PatternBatteryCharging=50;3;0;0;0;0;0;0
PatternBatteryFull=40;3;0;0;0;0;0;0

[Battery]
CriticalVoltage=3350

2 changes: 2 additions & 0 deletions leste-config-razr/lib/udev/rules.d/50-iio-sensors.rules.leste
@@ -0,0 +1,2 @@
SUBSYSTEM=="iio", ENV{OF_NAME}=="isl29030", ENV{PROXIMITY_NEAR_LEVEL}+="200"
SUBSYSTEM=="iio", ENV{OF_NAME}=="accelerometer", ENV{ACCEL_MOUNT_MATRIX}="-1, 0, 0; 0, -1, 0; 0, 0, 1"

0 comments on commit 655180f

Please sign in to comment.