2020-03-20 14:52:22 -04:00
|
|
|
on late-fs
|
|
|
|
write /sys/block/sda/queue/iostats 0
|
|
|
|
write /sys/block/sda/queue/scheduler cfq
|
|
|
|
write /sys/block/sda/queue/read_ahead_kb 2048
|
|
|
|
write /sys/block/sda/queue/nr_requests 256
|
|
|
|
write /sys/block/dm-0/queue/read_ahead_kb 2048
|
|
|
|
write /sys/block/dm-1/queue/read_ahead_kb 2048
|
|
|
|
|
|
|
|
on property:sys.boot_completed=1
|
|
|
|
write /sys/block/sda/queue/iostats 1
|
|
|
|
write /sys/block/sda/queue/scheduler noop
|
|
|
|
write /sys/block/sda/queue/read_ahead_kb 512
|
|
|
|
write /sys/block/sda/queue/nr_requests 128
|
|
|
|
write /sys/block/dm-0/queue/read_ahead_kb 512
|
|
|
|
write /sys/block/dm-1/queue/read_ahead_kb 512
|
2020-03-27 08:58:52 -04:00
|
|
|
write /dev/blkio/blkio.weight 1000
|
|
|
|
write /dev/blkio/background/blkio.weight 200
|
|
|
|
write /dev/blkio/blkio.group_idle 2000
|
|
|
|
write /dev/blkio/background/blkio.group_idle 0
|
2020-03-20 14:52:22 -04:00
|
|
|
|
2019-08-29 05:37:42 -04:00
|
|
|
on boot
|
|
|
|
# Touchscreen
|
2020-04-10 13:08:03 -04:00
|
|
|
chown system system /sys/class/touch/tp_dev/gesture_on
|
|
|
|
chown 0660 /sys/class/touch/tp_dev/gesture_on
|
2019-08-29 05:37:42 -04:00
|
|
|
|
2020-05-07 04:13:57 -04:00
|
|
|
# Light HAL
|
|
|
|
chown system system /sys/class/leds/wled/brightness
|
|
|
|
chown system system /sys/class/leds/wled/max_brightness
|
|
|
|
chown system system /sys/class/leds/red/breath
|
|
|
|
chown system system /sys/class/leds/red/brightness
|
|
|
|
chown system system /sys/class/leds/red/delay_on
|
|
|
|
chown system system /sys/class/leds/red/delay_off
|
|
|
|
chown system system /sys/class/leds/green/breath
|
|
|
|
chown system system /sys/class/leds/green/brightness
|
|
|
|
chown system system /sys/class/leds/green/delay_on
|
|
|
|
chown system system /sys/class/leds/green/delay_off
|
|
|
|
chown system system /sys/class/leds/blue/breath
|
|
|
|
chown system system /sys/class/leds/blue/brightness
|
|
|
|
chown system system /sys/class/leds/blue/delay_on
|
|
|
|
chown system system /sys/class/leds/blue/delay_off
|
|
|
|
|
|
|
|
chmod 0644 /sys/class/leds/wled/brightness
|
|
|
|
chmod 0644 /sys/class/leds/wled/max_brightness
|
|
|
|
chmod 0644 /sys/class/leds/red/breath
|
|
|
|
chmod 0644 /sys/class/leds/red/brightness
|
|
|
|
chmod 0644 /sys/class/leds/red/delay_on
|
|
|
|
chmod 0644 /sys/class/leds/red/delay_off
|
|
|
|
chmod 0644 /sys/class/leds/green/breath
|
|
|
|
chmod 0644 /sys/class/leds/green/brightness
|
|
|
|
chmod 0644 /sys/class/leds/green/delay_on
|
|
|
|
chmod 0644 /sys/class/leds/green/delay_off
|
|
|
|
chmod 0644 /sys/class/leds/blue/breath
|
|
|
|
chmod 0644 /sys/class/leds/blue/brightness
|
|
|
|
chmod 0644 /sys/class/leds/blue/delay_on
|
|
|
|
chmod 0644 /sys/class/leds/blue/delay_off
|
|
|
|
|
|
|
|
service vendor.light-hal-2-0 /vendor/bin/hw/android.hardware.light@2.0-service
|
|
|
|
interface android.hardware.light@2.0::ILight default
|
|
|
|
class hal
|
|
|
|
user system
|
|
|
|
group system
|
|
|
|
# shutting off lights while powering-off
|
|
|
|
shutdown critical
|
|
|
|
|
|
|
|
|
2019-11-05 20:01:16 -05:00
|
|
|
service cvphalservice /system/bin/true
|
|
|
|
disabled
|
|
|
|
|
2020-03-22 06:08:45 -04:00
|
|
|
service vendor.power-hal-1-0 /system/bin/true
|
|
|
|
disabled
|