12487a1efa
The device is Xiaomi Redmi 1S, based on MSM8296 platform, with Qualcomm Snapdragon 400. The kernel is from lineageOS (3.4.0). Some additional patches are needed for successful compilation. The screen dimension is 720x1280. The touchscreen device name is ft5x06_i2c. Use this name for udev instead of hardcoded device path. Also add a workaround for red screen weston by setting weston_pixman to 2 The screen doesn't refresh. Enabling msm-fb-refresher as suggested. Add udev rule to indicate whether the device is in charging state. Green led indicates that the device is charging, whereas red light indicates that the device is discharging. For prima wlan module to work, an initialization procedure is needed ( echo 1 > /dev/wcnss_wlan ), before loading the prima wlan module (wlan.ko). Also build the prima wlan as module. Xiaomi Redmi 1S is using pronto wlan module, which needs some firmware to run. Add the required wifi firmware to enable the wifi interface. Add an openrc service to load wlan module after wcnss_service is initialized.
4 lines
133 B
Bash
4 lines
133 B
Bash
#!/bin/sh
|
|
logger "Battery is in charging state"
|
|
echo 0 > /sys/class/leds/red/brightness
|
|
echo 100 > /sys/class/leds/green/brightness
|