|
|
@ -58,7 +58,7 @@ if [ "${current_cpufreq_gov}" != "interactive" ]; then
|
|
|
|
# but the code in the published H2O kernel sources actually does the reverse, and is commented out ;).
|
|
|
|
# but the code in the published H2O kernel sources actually does the reverse, and is commented out ;).
|
|
|
|
# It is now entirely handled by Nickel, right *before* loading/unloading that module.
|
|
|
|
# It is now entirely handled by Nickel, right *before* loading/unloading that module.
|
|
|
|
# (There's also a bug(?) where that behavior is inverted for the *first* Wi-Fi session after a cold boot...)
|
|
|
|
# (There's also a bug(?) where that behavior is inverted for the *first* Wi-Fi session after a cold boot...)
|
|
|
|
if grep -q "sdio_wifi_pwr" "/proc/modules"; then
|
|
|
|
if grep -q "^sdio_wifi_pwr" "/proc/modules"; then
|
|
|
|
# Wi-Fi is enabled, make sure DVFS is on
|
|
|
|
# Wi-Fi is enabled, make sure DVFS is on
|
|
|
|
echo "userspace" >"/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"
|
|
|
|
echo "userspace" >"/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"
|
|
|
|
echo "1" >"/sys/devices/platform/mxc_dvfs_core.0/enable"
|
|
|
|
echo "1" >"/sys/devices/platform/mxc_dvfs_core.0/enable"
|
|
|
@ -299,11 +299,14 @@ esac
|
|
|
|
|
|
|
|
|
|
|
|
# The actual swap is done in a function, because we can disable it in the Developer settings, and we want to honor it on restart.
|
|
|
|
# The actual swap is done in a function, because we can disable it in the Developer settings, and we want to honor it on restart.
|
|
|
|
ko_do_fbdepth() {
|
|
|
|
ko_do_fbdepth() {
|
|
|
|
# On sunxi, the fb state is meaningless, and the minimal disp fb doesn't actually support 8bpp anyway,
|
|
|
|
# On sunxi, the fb state is meaningless, and the minimal disp fb doesn't actually support 8bpp anyway...
|
|
|
|
# so just make sure we're set @ UR.
|
|
|
|
|
|
|
|
if [ "${PLATFORM}" = "b300-ntx" ]; then
|
|
|
|
if [ "${PLATFORM}" = "b300-ntx" ]; then
|
|
|
|
|
|
|
|
# NOTE: The fb state is *completely* meaningless on this platform.
|
|
|
|
|
|
|
|
# This is effectively a noop, we're just keeping it for logging purposes...
|
|
|
|
echo "Making sure that rotation is set to Portrait" >>crash.log 2>&1
|
|
|
|
echo "Making sure that rotation is set to Portrait" >>crash.log 2>&1
|
|
|
|
./fbdepth -d 32 -R UR >>crash.log 2>&1
|
|
|
|
./fbdepth -R UR >>crash.log 2>&1
|
|
|
|
|
|
|
|
# We haven't actually done anything, so don't do anything on exit either ;).
|
|
|
|
|
|
|
|
unset ORIG_FB_BPP
|
|
|
|
|
|
|
|
|
|
|
|
return
|
|
|
|
return
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|