Skip to content
This repository has been archived by the owner on Mar 7, 2021. It is now read-only.

Commit

Permalink
begonia: init: Fix backlight on charger
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentFabulous authored and theimpulson committed Aug 24, 2020
1 parent dc99efc commit 3c42ae5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rootdir/etc/init.mt6785.rc
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ on late-init
# mount different fs start

on charger
# Turn backlight on and switch to backlight trigger
write /sys/class/leds/lcd-backlight/brightness "1000"
write /sys/class/leds/lcd-backlight/trigger "backlight"

exec /system/bin/e2fsck -f -p /dev/block/platform/bootdevice/by-name/cache
mount ext4 /dev/block/platform/bootdevice/by-name/cache /cache rw wait
chmod 0660 /dev/spm
Expand Down

0 comments on commit 3c42ae5

Please sign in to comment.