CPUFreq shenanigans on Kobo (#4114)
* Switch to ondemand CPUFreq governor on Kobo My H2O boots with the userspace (!!) governor... Note that the hardware appears to blissfully ignore any of this, because the stats still show the CPU changing state on its own...
This commit is contained in:
1 parent
c1965ea8a9
commit
b509e54a2a
2 files changed
+8
-1
No files matched your search
+1
-1
Submodule base updated: 7ab1e3b7c8...675ec212d0.
@@ -7,6 +7,10 @@ KOREADER_DIR="${0%/*}"
|
||||
# we're always starting from our working directory
|
||||
cd "${KOREADER_DIR}" || exit
|
||||
|
||||
# Switch to a sensible CPUFreq governor, even if the HW appears not to give an actual fuck about this...
|
||||
ORIG_CPUFREQ_GOV="$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)"
|
||||
echo "ondemand" >"/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"
|
||||
|
||||
# update to new version from OTA directory
|
||||
ko_update_check() {
|
||||
NEWUPDATE="${KOREADER_DIR}/ota/koreader.updated.tar"
|
||||
@@ -132,6 +136,9 @@ while [ $RETURN_VALUE -eq 85 ]; do
|
||||
RETURN_VALUE=$?
|
||||
done
|
||||
|
||||
# Restore original CPUFreq governor...
|
||||
echo "${ORIG_CPUFREQ_GOV}" >"/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"
|
||||
|
||||
if [ "${FROM_NICKEL}" = "true" ]; then
|
||||
if [ "${FROM_KFMON}" != "true" ]; then
|
||||
# start kobo software because it was running before koreader
|
||||
|
||||
Reference in new issue
Block a user