Cách ép xung bằng setcpu

Mình xin giới thiệu phần mềm và một số cách ép xung an toàn cho android, mình chỉ dịch phần nào cần thiết thôi

Link Download http://forum.xda-developers.com/attachment.php?attachmentid=355326&d=1278385677
SetCPU for Root Users cho phép người dung tùy chỉnh các thiết lập xung nhịp CPU cho các thiết bị chạy Android. Làm việc được hầu hết với các máy Android đã có root ngoài thị trường. Kết hợp với các profiles tùy chỉnh, SetCPU giúp người dùng thiết lập CPU của bạn tối ưu hiệu năng và thời lượng pin. Trên nhiều loại máy, với các custom kernels, SetCPU cũng có thể quản lý ép xung như các bản rom oficial. SetCPU có trên market và thu phí.
Chạy được trên các máy Android 1.5 cho đến Android 2.2, recommended trên Android 1.6. Nếu bạn đang xài máy HTC, có thể bạn cần disable perflock (xem mục 10) phụ thuộc vào nhân kernel của bạn.
Contents
1. Benefits
2. Main Tab and Basic Usage
3. Profiles

Quảng cáo
4. Advanced
5. System Info
6. About
7. CPU Scaling Governors
8. Custom Frequency Config
9. Task Managers
10.  Disabling Perflock
11. Changelog
1. Benefits
CPU có thể làm hao pin nếu chạy xung nhịp cao. Nếu vi xử lt chạy nhanh. Phone sẽ nhanh và đáp ứng tôt hơn nhưng pin sẽ mau cạn kiệt. Nếu vi xử lts chạy chậm hơn, phone sẽ có độ đáp ứng chậm hơn và chạy ứng dụng lâu hơn. Với SetCPU, bạn có thể thiết lập các profiles để quản lý tốt độ CPU dựa theo các điều kiện mà bạn định nghĩa.
2. Main Tab and Basic Usage
Để bắt đầu với  SetCPU, chạy app, đọc giới thiệu  và nhấn "autodetect frequencies." Nếu bạn cần truy cập lại màn hình này lần nữa thì nhấn nút Menu trong Main tab của SetCPU, sau đó chọn Device Selection.
Nếu kernel của bạn ko hỗ trợ autodetect, bạn sẽ không thấy nút autodetect frequency, lựa chọn tốt nhất lúc này là chọn tên thiết bị mà bạn đang xài từ list liệt kê có sẵn. Nếu bạn vừa qua được màn hình giới thiệu, bạn có thể nhận được  request từ Superuser Permissions để xác nhận quyền root cho ứng dụng. Phụ thuộc vào phiên bản Superuser Permissions, check  vào  "remember" và nhấn "allow" hoặc nhấn nút "always allow".
Các sliders ở đây sẽ cho phép bạn chỉnh tay giới hạn xung CPU. CPU frequency sẽ luôn nằm giữa 2 giá trị max và min frequencies dựa trên nhu cầu (based on need). Ngoài ra các  sliders cũng quản lý các "main" profile sẽ được giải thích bên dưới.
Dang sách sổ xuống "scaling" là một tính năng nâng cao cho phép bạn kiểm soát hành vi của  CPU. Xem hướng dẫn cho các những phần điều chỉnh See explanations for the different governors in the CPU Scaling Governors section.
SetCPU  cũng bao gồm một widget cho màn hình home screen. Thêm  SetCPU's widget bình thường như các widget khác:  long press trên home screen, chọn Widgets, chọn SetCPU widget. Mọt màn hình pop up hiện ra và bạn có thể chỉnh giao diện widget. Nếu bạn muốn thể hiện tốc độ CPU hiện tại, thiết lập  Active Refresh Interval hơn là để "Passive mặc dù khoảng thời gian refresh thụ động được recommended để tiết kiệm pin.

Quảng cáo
Đối với thiết bị HTC: Nếu the green "current" display không thay đổi khi bạn chuyển  sliders, có thể bạn đang dùng một nhân HTC kernel không tương thích với một driver gọi làd "perflock", có thể sẽ ngăn SetCPU thay đổi xung nhân. Để bật SetCPU, nhấn nút "Menu" SetCPU's main tab và chọn "disable perflock." Đọc thông báo và nhaatsn nút trong hộp thoại. Nếu thành công, bạn sẽ thay đổi được xung CPU. Nếu thất bại, vui long email đến developer  phát triển phiên bản kernel của bạn. Để biết them chi tiết về perflock đọc them bên dưới below.

Cách ép xung bằng setcpu



3. Profiles
Profiles cho phép bạn cài đặt tốc độ CPU theo những điều kiện cài đặt.  Điều này có lợi cho việc tiết kiệm pin. Để tạo profiles, check nút "Enable" trong Profiles tab và nhấn "Add Profile" để thêm profile.
Profile settings của bạn sẽ gây ra vấn đề nếu các condition mà bạn cài đặt bị chồng. Ví dụ bạn chọn "Screen Off," profile settings sẽ tác dụng khi màn hình tắt. Nếu ko có profiles nào chồng điều kiện, SetCPU sẽ đảo lại profile mặc định định nghĩa ở Main tab. Có một số các điều kiện:

Charging/Full  thiết lập khi phone được sạc pin từ bất kỳ nguồn nào và khi on đầy khi sạc.
Charging AC/Full Chỉ thiết lập khi phone được charging từ cục sạc (AC adapter) và khi pin đầy khi charging từ cục sạc.
Charging USB/Full tương tự, với nguồn charge là computer (USB port)
Screen Off  khi màn hình phone tắt.
Battery < - khi dung lượng pin xuống đến mức nhất định do bạn cài.

Quảng cáo
Temp > - khi nhiệt độ của hệ thống hay pin tang lên một mức do bạn cài. SetCPU sẽ báo (notification trên taskbar) bằng ringtone nếu bạn check the "Audible Warning".
CPU Temp > - giới hạn với một số phone  có hardware và kernels hỗ trợ. Cài khi nhiệt độ CPU tang lên mức do bạn cài. SetCPU sẽ báo bằng ringtone nếu bạn check the "Audible Warning".
Độ ưu tiên priority của mỗi profile sẽ được xem xét theo thứ tự. Nếu điều kiện của 2 profile đều mang giá trị true thì cái nào có độ ưu tiên cao sẽ có tác dụng. Ví dị, nếu bạn có một profile Screen Off và một profile Charging  và khi màn hình tatys trong khi được sạc pin, profile nào có độ ưu tiên cao hơn sẽ được cài.

Bạn có thể thêm nhiều profile nếu muốn và bật tắt các profile bằng các ô checkbox bên cạnh. Để edit profiles, click lên chúng và thay đổi các giá trị sau đó nhấn "save." Để bỏ  profiles, click lên nó để edit, nhấn "delete."

Chú ý: Đối với nhiều profile battery có mức khác nhau, nên cài tỷ lệ pin thấp có độ ưu tiên cao. Đối với các profile nhiệt độ có mức khác nhau nên thiết lập ưu tiên cao cho các profile có nhiệt độ cao hơn. Nói chung, các profile battery nên có ddoj ưu tiên thấp hơn các profile khác, và profile nhiệt độ nên để ưu tiên cao hơn.

Check "Notifications" để bật thong báo trên top bar thể hiện chính xác profile nào đang được active.

Cách ép xung bằng setcpu



4. Advanced Tab
The Advanced menu allows you to tweak the finer aspects of certain CPU governors. It is only activated when you choose the ondemand or conservative governors.
Sampling Rate - An interval (in microseconds) at which the governor will poll for updates. When this happens, the governor will decide whether to scale the CPU up or down.
Up Threshold - Defines a percentage from 1% to 100%. When the CPU load reaches this point, the governor will scale the CPU up.
Down Threshold (conservative only) - Defines a percentage from 1% to 100%. When the CPU load reaches this point, the governor will scale the CPU down.
Ignore Nice Load - If this value is "1," the system will ignore "Nice" processes when deciding to scale up or down.
Powersave Bias (ondemand only) - Setting this value higher will "bias" the governor toward lower frequencies. This is a percentage, where 1000 is 100%, 100 is 10%, and 0 is 0%. The ondemand governor will scale the CPU to a frequency lower than its "target" speed according to this value.
Freq Step (conservative only) - Defines how much (as a percentage of the maximum CPU speed) the conservative governor will increase the CPU speed by each time the CPU load reaches the Up Threshold.
Choose the "Set on Boot" checkbox to apply advanced settings when the phone boots. This option is completely independent of the similar option in the Main tab.

5. System Info
Xem thong tin về kernel, CPU, battery, phone, and memory status. Có một số tool để benchmark tốc độ phone.
The lower the benchmark score, the faster the phone is running. Keep in mind that this score can only be used to accurately compare different frequencies across the same ROM and kernel. The score may fluctuate between runs due to interference by background processes. For best results, use the "performance" governor.
There is also a "stress test" function. Stress testing allows you to test the stability of undervolted kernels or higher overclocks. The stress test will peg your CPU usage to 100% The phone may be somewhat unresponsive during this time. The stress test will continue forever, so you have to manually end it after some time. To do this, simply press the back button.
To copy the text of the System Info menu to the clipboard, press the Menu button on your device and press "Copy to Clipboard."

6. About
The About menu prints information about SetCPU, including the current version. You can change the theme of the Main tab from using the drop down box. Restart SetCPU to apply it.

7. CPU Scaling Governors
CPU governors kiểm soát phương thức  xung CPU chạy giữa 2 giá trị "max" and "min". Hầu hết kernels đều có "ondemand" and "performance." The availability
ondemand  xung CPU sẽ nhanh chóng tăng khi load nặng và giảm từ từ khi khong có nhu cầu.
conservative  tương tự ondemand governor, nhưng sẽ tăng giảm chạm hơn để phù hợp với nhu cầu, hệ thống sẽ phản hồi chậm hơn ondemand nhưng sẽ tiết kiệm pin hơn.
performance  giữ CPUlun chạy ở mức "max". Sẽ hiêu quả hơn nếu thiết lập mã và min cùng giá trị theo chế độ ondemand vì hệ thống sẽ ko phải tốn tài nguyên để quét tải CPU. Đượcrecommended  để benchmarking stable.
powersave  luôn chạy ở mức "min".
userspace- không nên dùng.

8. Custom Frequency Config
Đối với các kernel cũ không thể  autodetect tốc độ xung  hỗ trợ của kernel, bạn nên chỉnh tay, cần tìm hiểu thông tin về mức xung hỗ trợ min max theo kHz và tạo file text tên "setcpu.txt" và đặc vào (/sdcard/ or /system/sd/). Text files sẽ sắp xếp mức xung theo thứ tự cách bằng dấu phẩy. Ví dụ, dùng cho Motorola Droid kernels:
125000,250000,500000,550000,600000
To store the custom frequency list on your phone, save it as "setcpu" with no extension and put it in /data/local/. SetCPU reads from the SD card first and uses that text file if present, then tries to read from /data/local/.
To configure SetCPU to read your custom frequencies, go back to the device selection screen (in the Main tab, press Menu > Device Selection), choose "show other frequencies" if necessary, and choose the custom config option at the very bottom.

9. Task Managers
SetCPU không chạy nền trừ khi profiles hoặc widget được bật. Do làm việc đa nhiệm, hệ thống Android sẽ tự động tắt SetCPU nếu thiếu bộ nhớ.
Nếu profiles hay widget được bật SetCPU sẽ chạy nền, quan trọng nhất là bạn phải vào chương trình  task manager của bạn và add SetCPU vào  "ignore" list và ko nên vào task manager để tắt chương trình.

10. Disabling Perflock
On most stock HTC kernels and some custom kernels, HTC has enabled a driver called "perflock" that constantly resets SetCPU's Max and Min settings. This does not apply to mostly "Google experience" HTC devices such as the T-Mobile G1, the myTouch 3G, any Google development device, or the Nexus One. It does, however, apply to "HTC Sense" devices such as the HTC Hero, Droid Eris, HTC Desire, HTC Incredible, EVO 4G, and myTouch Slide. Non-HTC devices never have perflock enabled.
SetCPU can disable perflock on newer HTC kernels, giving you control of the Max and Min settings of the CPU. To do this, press the Menu button on your device in the Main tab and choose "Disable Perflock." Read through the notice and then press the button in the dialog. If successful, you should be able to change the frequency with SetCPU. If this process fails, please e-mail the developer with your kernel version and device so support can be added.
Keep in mind that disabling perflock does not enable overclocking, though some overclocked kernels may require perflock to be disabled. Overclocking, in most cases, requires a custom kernel.

---------- Post added at 06:04 PM ---------- Previous post was at 05:59 PM ----------

UNIVERSAL OVERCLOCK for ANY ROM

Đây là gói update overclock nhẹ cho máy g1

Đã test trên các ROM phổ biến Cyangenmod 5.0.7 / KingKlick's ERIS2G1 / ZXHero 1.5 / ZXHero 2.1 / KingKlick's Legend2G1 / NoSense 1.5 / HTC CLay's Superfast / ALL CSDI ROMS

INSTRUCTIONS
*Download và cài đặt app Setcpu.
*Chọn "auto detect " (kiểm tra xem đúng là đang cài ở mức 528mhz hay ko) check vào "set on boot" và "ondemand"
*Download và flash file update.zip up to 652mhz Stable hoặc stable 576mhz overclock  ngoài recovery và khởi động lại
*Vào lại setcpu... nhấn "menu" và chọn lại autodetect ...bạn sẽ để ý là xung sẽ lên tới 825mhz
*Thiết lập mức xung nhịp  min và max  mà bạn muốn(mình cài ở mức 652mhz ) (bạn cũng có thể vào add 1 sleep profile 245min/245max để giảm xung xuống thấp khi bạn ko dùng phone)
*Enjoy