Commit Graph

39 Commits

Author SHA1 Message Date
Tianjie
8276d54aba taimen: Use light boot animation on first boot only
Today, the dark boot follows the Dark Theme mode in Settings. Now
the UI team decide to always use dark boot after the device is
provisioned. So users will see fewer disturbances when a scheduled
update is taken at night

Bug: 181339788
Test: flash a Pixel -> boot -> dark theme is set;
      boot again -> observe dark boot
Change-Id: Id4989e4e78471bcefc2730ba7d9adc36f5ac9c75
2023-03-07 18:07:14 +08:00
Tianjie Xu
06ff813fcc Use more specific option to set dark mode
We have switch misc_writer to use more specific flags to set the dark mode.
Modify the caller as well.

Bug: 131775112
Test: set dark mode, check device boots with dark mode
Change-Id: Ic79a83f58c3b0ca09dd530f28e93da234ae4463a
2019-11-11 15:50:15 -08:00
Tao Bao
f3e4b070a1 Dark boot on dark theme.
Bug: 113028175
Bug: 134430124
Test: Build and flash taimen with the matching bootloader change. Toggle
      dark mode in Settings. Check serial log regarding the start of
      vendor.theme_{set,clear} services. Also read the value via `dd bs=1
      skip=2048 if=/dev/block/sda5 count=32 | xxd` to confirm the change.
Test: Trigger a factory reset via Settings. Check the value in /misc
      after the reset.
Change-Id: I3ae9ac41d689a4d0a9d5e0275de92c35dda068b7
2019-06-19 15:56:36 +00:00
Jaegeuk Kim
69aa817141 Revert "Boottime: remove all block-related tunes including readahead size"
This reverts commit b8c71b8caa.

Reason for revert: boottime regression found by b/126431810

Change-Id: Ib040f8e9b26b12f0767b2e37edf5688a3ba0a85d
2019-03-11 23:18:43 +00:00
Jaegeuk Kim
b8c71b8caa Boottime: remove all block-related tunes including readahead size
With a request size fix, 2MB-sized readahead would not be a way to gain
boottime.

taimen - PVT - Hynix 128GB - boot_complete timestamp (avg of 100 loop)
Base [1]      : 10.943
New  [2]      : 10.7495

taimen - PVT - Hynix 128GB - boot_complete timestamp + fastboot -w (avg of 100 loop)
Base [1]      : 32.5857
New  [2]      : 31.7474

[1] w/o this CL, revert commit 7c37954411e9 ("mm: readahead back to 128KB")
[2] w/  this CL, keep commit 7c37954411e9 ("mm: readahead back to 128KB")

Bug: 122246531
Bug: 120757803
Change-Id: I2c3236b0b0cd4f2a8610a1af64de694f8a4d7997
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2019-02-08 13:50:04 -08:00
Vincent Palomares
e8ba1ac975 Upgrading Taimen's thermal HAL version to 2.0.
Also increasing thermal-engine skin shutdown threshold to let the framework
shutdown gracefully (see b/119221890).

Bug: 118689758
Test: adb shell dumpsys hardware_properties
      adb shell su 0 lshal debug android.hardware.thermal@2.0::IThermal/default
      pts -m PtsThermalHalTestCases
      vts -m VtsHalThermalV1_0Target
      vts -m VtsHalThermalV2_0Target
Change-Id: I3614e66df05844a048fb3f387c8fa0c9e0e67a68
Signed-off-by: Vincent Palomares <paillon@google.com>
2018-12-10 11:20:57 -08:00
Wei Wang
d787af0b2a Set runtime readahead to 128KiB
Reduce readahead to 128KiB to reduce thrashing under memory pressure.

Bug: 110908295
Bug: 111855179
Test: Boot
Change-Id: Id46cf3675d27355e3cb494086d4d06923fe0989d
2018-07-26 21:16:06 +00:00
Tim Murray
af1cb8d0a2 Revert "Switch to deadline IO scheduler post boot."
This reverts commit 5e3069df10.

Test: boots
bug: 63630139
Change-Id: I39b0c46ac881e06c4ec276db1cb4c4d8cea53821
2018-06-05 15:23:34 -07:00
Thierry Strudel
4b1dfe1fb0 init-taimen.rc: map persist.vendor.charge.*.level to new driver nodes
Bug: 75301885
Change-Id: I670d595a57754597aa7bfd514064897ec5e497e8
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2018-04-03 16:21:11 -07:00
Mohan Srinivasan
5e3069df10 Switch to deadline IO scheduler post boot.
The deadline IO scheduler results in lower latency SD, and pulls in
latency outliers (especially when the flash starts getting fragmented).
Switch to deadline post boot.

Test: various workloads, both synthetic (fio) as well as actual
workloads (app launch, ioshark).

Bug: 63630139
Change-Id: I40baa222c92330757303ee9c2fd0e3f075dfac78
Signed-off-by: Mohan Srinivasan <srmohan@google.com>
2017-10-27 16:27:28 -07:00
Steve Pfetsch
63c1f3a3cc Revert "taimen: disable system-pc power management" am: 19f88e41b0
am: 5fe5391536

Change-Id: I0d802424ef6dd59eb023d1e842731739cfaebd83
2017-10-03 23:35:36 +00:00
Steve Pfetsch
19f88e41b0 Revert "taimen: disable system-pc power management"
This reverts commit 0260e9c113.

Bug: 67367944
Change-Id: I04d0e7c7c77a8c461423848992767f370f15b37c
2017-10-03 12:01:15 -07:00
Steve Pfetsch
aee479572e taimen: disable system-pc power management am: 0260e9c113
am: 03984a01b9

Change-Id: I95967d12bddd05654a98f370ff9f116fcfe4e320
2017-09-29 22:19:23 +00:00
Steve Pfetsch
0260e9c113 taimen: disable system-pc power management
Touch irqs can be handled late when power management is enabled.

Bug: 64141048
Change-Id: Iacef8cc340fcedb9326b694288fcb65b7a642f05
2017-09-27 14:57:33 -07:00
Thierry Strudel
634fcb340b Merge "Revert "Set the slot_suffix for backward compatibility"" into oc-mr1-dev am: 8f1213d03c
am: 2036b405e4

Change-Id: I68885ff7f33f970427e785284373e9d4f1ca173b
2017-09-24 19:59:19 +00:00
Devin Kim
bfbbe8646f Revert "Set the slot_suffix for backward compatibility"
This reverts commit c59cc61500.

Test: boot
Bug: 37663204
Change-Id: I5b1ff4261b3e4410a31eb0181686806f6589edec
2017-09-20 13:43:54 -07:00
Jaekyun Seok
90f8ebdc0d Add 'vendor.' prefix to a vendor HAL service name
To prevent property name collisions between properties of system and
vendor, 'vendor.' prefix must be added to a vendor HAL service name.
You can see the details in http://go/treble-sysprop-compatibility.

Test: succeeded building and tested on a taimen device.
Bug: 36796459
Change-Id: I1292f57b7ad27d0f96726f2073a5720b78281834
2017-08-31 12:50:30 +09:00
Wei Wang
bc36309dd9 Increase readahead for vendor partition
Taimen's vendor is on sde, this will make sure we have same tuning as walleye

Bug: 38000161
Test: check readahead
Change-Id: Ia2eaffa050804ee4e209e6263c91a8b9d67d736d
2017-08-10 15:41:10 -07:00
Steve Pfetsch
a749875aa0 sepolicy: Allow adb shell access to ftm4 autotune sysfs node
Bug: 63911898
Change-Id: Id39f48709253ce96ae7910f4e3157e2c2eda558a
2017-08-07 11:27:12 -07:00
Max Shi
f255ec1489 Revert "Revert "Clean up init script""
This reverts commit efce5fb8a0.

Reason for revert: moving this logic under wahoo init script

Bug: 64065874
Change-Id: I531d22c92456ebe4a95408407285867a54afeda5
2017-08-01 04:57:40 +00:00
Max Shi
efce5fb8a0 Revert "Clean up init script"
This reverts commit 8d0e6dca79.

Change-Id: I5777501d14ed2d551dba5bb314cdfcd5476b785d
reason: restore the folder if /persist/sensors is missing
Test: flash on a phone without /persist/sensors folder
Test: reboot and verify sensor regsitry is created
Test: and sensors are available to sensor service
Bug: 64065874
2017-07-28 21:58:27 -07:00
Maggie White
ce0ecde565 UFS-specific runtime I/O tuning
Tested 1/2x, 1x, 2x, and 4x the current readahead buffer and noop and
cfq I/O schedulers for /dev/block/sda, which contains /data. The most
consistent performance boost was seen across all UFS vendors and storage
sizes using cfq and a readahead buffer of 1024.
Note: testing was done on Walleye, not Taimen

Bug: 38000161
Test: Compared 1P app launch times using app-launcher for schedulers
(noop, cfq) and readahead buffer sizes (128,512,1024,2048)

Change-Id: I7551a4110ad025ec7975dd39301f048f0942f585
2017-07-21 22:41:28 +00:00
jiwon912.choi
614dc65297 display: Change low persistence mode brightness
Bug : 62663757

- Change low persistence(LP) mode brightness from 255 to 159
- If panel version is 2-1, Set LP mode brightness to 255

Change-Id: Ie3754ac9ab11347e4f4edf91a607a17fc6b776fc
2017-07-07 13:30:13 -07:00
TreeHugger Robot
50727d97e4 Merge "taimen: Add property of demo_mode for lge_battery" into oc-dr1-dev 2017-06-26 19:46:28 +00:00
eunsoo.na
dcbb8b232c taimen: Add property of demo_mode for lge_battery
Bug: 37263971
Bug: 38486620
Change-Id: I2c8617c56799d752c8ca18ea8ccc6d0a3eab0620
Signed-off-by: sodam89.kim <sodam89.kim@lge.com>
Signed-off-by: eunsoo.na <eunsoo.na@lge.com>
2017-06-26 10:40:53 -07:00
John Dias
11c3c975d3 Change i/o scheduler back to cfq
With noop scheduler, I see dramatic jank with an irritant i/o thread;
going back to cfq, which doesn't have nearly the same negative impact
on UX.

Bug: 62375787
Test: boot, scroll a lot
Change-Id: I6a544075a7ae71830e8ea9cb6a594dd062941f35
2017-06-20 17:15:28 -07:00
Junda Liu
90a13ffb70 Set build.hardware.revision property.
Bug: b/38167472
Test: make & check property
Change-Id: I5aab680dd83a04237448438d5a4d69450f89a844
2017-06-12 14:34:19 -07:00
Wei Wang
3f485235e3 init-taimen.rc: add boottime IO setting
Bug: 36780513
Test: Taimen boots
Change-Id: I09b41a7f4c511fd9c148a8139b1c8b28478dacfd
2017-06-02 22:29:10 -07:00
Vineeta Srivastava
8d0e6dca79 Clean up init script
Removed commands which were needed only for lunchbox.

Test: boot test on a device.
Change-Id: I1e9a24cb82eb7e1dfd8701c15e4cf4c84d856a1e
2017-05-22 18:15:41 -07:00
Andrew Lehmer
c6ad038b87 Revert ALS/prox recalibration init script
Bug: 38377320
Test: loaded on taimen
Change-Id: Ifce25901117afe295055074863ae3993651e27db
2017-05-22 12:48:38 -07:00
Andrew Lehmer
e04fdcf53a Overwrite EVT1 ALS/prox registry after boot
Bug: 38066490
Test: loaded on Taimen and checked registry
Change-Id: I30e50e7feba183ad5d4cbaa22fd78972c3fec61e
2017-05-19 08:50:13 -07:00
Andrew Lehmer
ffbe89e90e Fix ALS/prox calibration at init if needed
Bug: 38066490
Test: loaded on taimen and verified behavior and registry
Change-Id: I08c27bd3f62dcad90854815e70be49fb21294db9
2017-05-17 16:18:47 -07:00
Kyunam.jo
ebc2f9428a Taimen: fixed to loading touch driver loadable modules
Directly using 'insmod' operation to init process is not permitted.
Therefore modified to use init.insmod.sh

Bug: 37914698
Test: booted device, touch works

Change-Id: I57ba8a86a6c508a66a805bacaf014640c6b49254
2017-05-03 09:27:33 -07:00
Devin Kim
c59cc61500 Set the slot_suffix for backward compatibility
Bug: 37663204
Test: boot
Change-Id: Ic134f489bc5dcf4d67dabd18a4fa86ba04da8bf0
2017-04-26 09:57:54 -07:00
Max Shi
45f2d042a4 init: update firmware after driver is loaded
Test: flash & boot
Bug: 37581765

Change-Id: I5120c06e966e395e8166c2624319709c65014a1d
2017-04-24 11:39:49 -07:00
Patrick Tjin
b4eb9148c3 Taimen: add touch driver loadable modules
Bug: 36655680
Test: booted device, touch works
Change-Id: Ic8f40bf208a770530357f069c08caceeb23aaaa7
2017-04-18 14:58:39 -07:00
jonghyun26.kim
755b8affab Support touch firmware update
Change-Id: I61cde0e1e77ff774992d9d87a26f51c7c7dd8e15
2017-03-21 09:13:26 -07:00
Devin Kim
107ec99a19 sensors: Enable QC sensors
Test: build and verified on taimen
Change-Id: Ie9ffa17021c30ad7f9cd5f986de802c2b7532438
2017-03-09 12:15:39 -08:00
Devin Kim
9f8698237a Disable fps_hal service on lunchbox LCD
FPC IRQ conflicts with Touch SPI of LunchBox LCD. So fpc is disabled
in kernel on rev-0 only.

Stop the fps_hal service to avoid being continually re-loaded.

Test: built and verified on a device
Bug: 36076258
Change-Id: If77591bac111514470759d0e72fdc65b21c58f2b
2017-03-09 10:59:11 -08:00