thermal: disable usbc protection for EVT1.0 and PROTO
We have USBC thermistor change after EVT1.0, so disable the throttling for earlier HW version to prevent false alarm. Bug: 197266814 Test: adb shell cat /dev/thermal/tz-by-name/usb_pwr_therm2/temp Change-Id: Ia829d6a16d8ac390ed213efe2c5e12e24aca4320
This commit is contained in:
parent
661b79346d
commit
bc7c206aaa
2 changed files with 17 additions and 0 deletions
|
@ -15,9 +15,16 @@ on property:persist.vendor.touch_sensitivity_mode=0 && property:sys.boot_complet
|
||||||
on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_completed=1
|
on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_completed=1
|
||||||
write /sys/class/spi_master/spi11/spi11.0/glove_mode 01
|
write /sys/class/spi_master/spi11/spi11.0/glove_mode 01
|
||||||
|
|
||||||
|
# Thermal
|
||||||
on late-init && property:ro.boot.hardware.revision=PROTO1.0
|
on late-init && property:ro.boot.hardware.revision=PROTO1.0
|
||||||
setprop vendor.thermal.config "thermal_info_config_WHI_A.json"
|
setprop vendor.thermal.config "thermal_info_config_WHI_A.json"
|
||||||
|
|
||||||
|
on late-init && property:ro.boot.hardware.revision=PROTO1.1
|
||||||
|
setprop vendor.disable.usb.overheat.mitigation.control 1
|
||||||
|
|
||||||
|
on late-init && property:ro.boot.hardware.revision=EVT1.0
|
||||||
|
setprop vendor.disable.usb.overheat.mitigation.control 1
|
||||||
|
|
||||||
# For Japan sku, always enforce camera shutter sound
|
# For Japan sku, always enforce camera shutter sound
|
||||||
# Since this property is read by the audio server in system service,
|
# Since this property is read by the audio server in system service,
|
||||||
# it should be written by the system init.
|
# it should be written by the system init.
|
||||||
|
|
|
@ -34,6 +34,16 @@ on property:graphics.display.kernel_idle_timer.enabled=true
|
||||||
on property:graphics.display.kernel_idle_timer.enabled=false
|
on property:graphics.display.kernel_idle_timer.enabled=false
|
||||||
write /sys/devices/platform/exynos-drm/primary-panel/panel_idle "0"
|
write /sys/devices/platform/exynos-drm/primary-panel/panel_idle "0"
|
||||||
|
|
||||||
|
# Thermal
|
||||||
|
on late-init && property:ro.boot.hardware.revision=PROTO1.0
|
||||||
|
setprop vendor.disable.usb.overheat.mitigation.control 1
|
||||||
|
|
||||||
|
on late-init && property:ro.boot.hardware.revision=PROTO1.1
|
||||||
|
setprop vendor.disable.usb.overheat.mitigation.control 1
|
||||||
|
|
||||||
|
on late-init && property:ro.boot.hardware.revision=EVT1.0
|
||||||
|
setprop vendor.disable.usb.overheat.mitigation.control 1
|
||||||
|
|
||||||
# Bluetooth
|
# Bluetooth
|
||||||
on post-fs-data
|
on post-fs-data
|
||||||
chown bluetooth system /proc/bluetooth/timesync
|
chown bluetooth system /proc/bluetooth/timesync
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue