• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1on late-fs
2    # boot time fs tune
3    write /sys/block/sda/queue/iostats 0
4    write /sys/block/sda/queue/scheduler cfq
5    write /sys/block/sda/queue/iosched/slice_idle 0
6    write /sys/block/sda/queue/read_ahead_kb 2048
7    write /sys/block/sda/queue/nr_requests 256
8    write /sys/block/sde/queue/iostats 0
9    write /sys/block/sde/queue/scheduler cfq
10    write /sys/block/sde/queue/iosched/slice_idle 0
11    write /sys/block/sde/queue/read_ahead_kb 2048
12    write /sys/block/sde/queue/nr_requests 256
13    write /sys/block/dm-0/queue/read_ahead_kb 2048
14    write /sys/block/dm-1/queue/read_ahead_kb 2048
15
16on property:sys.boot_completed=1
17    # end boot time fs tune
18    write /sys/block/sda/queue/read_ahead_kb 1024
19    write /sys/block/sda/queue/nr_requests 128
20    write /sys/block/sda/queue/iostats 1
21    write /sys/block/sde/queue/read_ahead_kb 1024
22    write /sys/block/sde/queue/nr_requests 128
23    write /sys/block/sde/queue/iostats 1
24    write /sys/block/dm-0/queue/read_ahead_kb 512
25    write /sys/block/dm-1/queue/read_ahead_kb 512
26
27on boot
28    # Allow ftm4 autotune from adb shell
29    chown system shell /sys/devices/virtual/input/ftm4_touch/autotune
30
31on init && property:ro.boot.revision=*
32    setprop ro.boot.hardware.revision ${ro.boot.revision}
33
34on property:init.svc.fps_hal=running && property:ro.boot.revision=rev_0
35    stop fps_hal
36
37on property:sys.all.modules.ready=1
38    # Update touch firmware if required
39    write /sys/devices/virtual/input/ftm4_touch/check_fw 1
40
41on property:sys.retaildemo.enabled=* && property:sys.all.modules.ready=1
42    write /sys/module/lge_battery/parameters/demo_mode ${sys.retaildemo.enabled}
43
44on property:ro.boot.hardware.display=2-1
45    setprop sys.display.low_persistence_mode_brightness 255
46