---
title: "set cpu performance mode"
author: "standalone"
date: "2010-11-15T14:38:48Z"
tags: []
categories: ["非技术"]
slug: "set-cpu-performance-mode"
draft: false
lastmod: "2010-11-15T14:38:48Z"
id: 811748
url: "https://standalone.iteye.com/blog/811748"
---

A cheap/dirty little hack to increase idle CPU frequency and increase performance in general (don't blame me when your battery runs dry in about 3 hours):

(must have root first!)

cat /proc/cpuinfo (use this to see cpu speed, you will see at idle its 162.54mhz)

adb shell  
echo "performance" &gt; /sys/devices/system/cpu/cpu0/cpufreq/scaling\_governor

cat /proc/cpuinfo (now idling at 662.40mhz!)

If you want to switch back:

adb shell  
echo "ondemand" &gt; /sys/devices/system/cpu/cpu0/cpufreq/scaling\_governor