pmaports/device/device-samsung-klte/cpufreq.start
Alexey Min 40c93fde19
samsung-klte: downstream: add audio support, reorganize deps (!967)
* move msm-fb-refresher dependency to downstream kernel package,
  it is useless on mainline

* disable msm-fb-refresher service when using libhybris
  adaptation, it is only required for downstream kernel *without*
  libhybris. It interferes with qcom kgsl-adreno driver badly
  (causes screen flickering)

* set CPU governor to conservative on system startup (it lowers
  CPU frequency in idle state from initial 2.4 Ghz to 300 MHz)

* add hybris_pulse subpackage that gets installed only when
  device-samsung-klte-hybris AND pulseaudio are installed. It
  pulls in pulseaudio-modules-droid-7.1-caf and alsa integration

* add system.img symlink to lxc-android installation. With this
  you can have Android container successfully running already
  at the first boot without need to do it manually. Halium
  installation process puts your system.img to /data partition
  by default, so follow their recommendation. We can use a
  symlink to save some space on /system partition.

[ci:skip-build]: already built successfully in CI
2020-02-22 21:49:48 +01:00

4 lines
133 B
Bash

#!/bin/sh
# Configure conservative CPU governor on system startup
for CORE in 0 1 2 3; do cpufreq-set -c$CORE -g conservative; done