Deepidle Guide
-
Upload
tunas-andiranto -
Category
Documents
-
view
216 -
download
2
description
Transcript of Deepidle Guide
PORTAL WIKI IPHONE FORUMS TODAY'SPOSTS
Register
Samsung Galaxy S I9000 Galaxy S I9000 Android Development[KERNEL] Semaphore ICS 0.9.1(0.9.5b)
User Name •••••••• Remember Me? Log in
Page 182 of 182 82 132 172 180 181 182
THREAD TOOLS SEARCH THIS THREAD DISPLAY MODES
[KERNEL] Semaphore ICS 0.9.1 (0.9.5b) Thread Tools:
Today, 07:58 PMZioGTSZioGTS # 1811
Originally Posted by mikiept
ROM: AOKP Milestone4Kernel: 0.9.5b
Tried Wipe and Cache format and still can't mount externalsd on pc. Only internal seems to be mounting. Any ideias?What am I missing?
Do you have USB debug active?
GT-i9000 / ICSSGS 4.2 / Semaphore 0.9.0
__________________ZioGTSSamsung Galaxy S GT-I9000
ROM: Team ICSSGS RC4.2Kernel: Semaphore ICS 0.9.0Tweaks: 120% LiveOC, NoOp scheduler
Thanks Meter 106
Senior Member
Posts: 354Join Date: Jun 2011
Location: Ferrara
Today, 08:07 PMsaszsebsaszseb # 1812
Originally Posted by purpleraintoxicity
If you can't use didle with music you lost the whole point of didke
Sent from my GT-I9000 using Tapatalk
...and maybe you won't get better battery life.
Sent from Slim_ICS_2.8, Semaphore_0.9.5b
__________________SGS GTI9000ROM - SLIM ICS_2.8
Thanks Meter 225
Senior Member
Posts: 1,899Join Date: Jan 2011
Location: Hungary, Gy-M-S.
Devices by OS or Manufacturer FIND YOUR DEVICE...
converted by Web2PDFConvert.com
ROM - SLIM ICS_2.8Kernel - Semaphore ICS 0.9.5bModem - XXJVU(If a think is worth doing at all it's worth doing well.)
Today, 08:22 PMcink40cink40 # 1813
On 0.9.5b, NStools not installed, so I suppose deep idle is not active: Playing music with Google music, whenscreen goes off, music start to stutter. Exact same settings on 0.9.1 and music plays fine...
sent from the Outer Space
Thanks Meter 42
Senior Member
Posts: 482Join Date: Nov 2010
Today, 08:36 PMstratoskstratosk # 1814
Deep Idle Guide and FAQ
This was really unexpected. Unfortunately I can't answer all these questions and comments. So I tried to writea guide and a FAQ for deep idle. Feel free for suggestions and corrections. Source: Samsung's SPV210 RISCMicroprocessor User's Manual. Hope it clarifies some things.
Deep Idle Guide and FAQ
When the phone has no actions to perform, because you leave it alone or for example contacts are notsynchronizing or gmail application is not fetching a new mail e.t.c., then the best thing that the phone has to dois to go to... sleep (suspend). In this state the phone consumes very little power.
There are also 5 other power schemes that the processor s5pv210 can use to reduce power consumption:Normal, Idle, Deep Idle, Stop and Deep Stop. We are interested in the first three states Idle and Deep Idle.
In Normal state the CPU is running, that is, some software is running.In Idle state the CPU core is idle, that is, the CPU core clock is disabled but the remaining parts of s5pv210 arerunning.In Deep Idle state the CPU core power is supplied but is powered off by the internal power switch. Theremaining parts of processor may become power gated except the Audio power domain for low power MP3playback. Samsung in gingerbread kernels used only the Idle scheme. Deep Idle was implemented in the kernel but it wasdisabled by default. All known GB custom kernels have enabled Deep Idle state.
With stock kernels only Normal, Idle and Sleep states are used. Examples of these states use:
Normal state: User uses browser, or reading emails, watching video etcIdle state: User listen to music and screen is off, no other software is running.Sleep state: No user activity, screen is off, no activity of background services and processes.
Kernel checks many times per second different factors and decides which power state to use.Deep Idle can be used as a better alternative of Idle state and the major benefit is when user listen to music.Then IF and only if all other conditions (factors) are satisfied the kernel decides to go to Deep Idle. That is, aswe mentioned, CPU powered off, TOP powered off and L2 cache is powered off. Only Audio is on and that's whywe have a major benefit. Another option of Deep Idle is the TOP=ON which means that the TOP module is stillpowered. This is used when bluetooth is enabled (powered).
FAQ
How to enable Deep Idle?a) Simply check the Deep Idle option in Semaphore Script Manager. b) use this command on a terminal emulatoror adb shell:echo 1 > /sys/devices/virtual/misc/deepidle/enabled
Thanks Meter 2800
Senior Member |OP|
Posts: 2,026Join Date: Mar 2011
Location: Thessaloniki
converted by Web2PDFConvert.com
How to enable Deep Idle Statistics?a) Simply check the Deep Idle Statistics option in Semaphore Script Manager. b) use this command on a terminalemulator or adb shell:echo 1 > /sys/devices/virtual/misc/deepidle/stats_enabled
Why statistics are not enabled by default? Simply for saving CPU cycles. Kernel checks for entering Deep Idle (or Idle) many thousand times per minute.So, disabling statistics we have less overhead in CPU. What is the difference? Not to much, but better littlethan nothing.
What is TOP?S5PV210 internal modules are grouped into 11 power domains based on their functions. One of these domain isthe TOP and it includes these modules: Clock Management Unit (CMU), GPIO(OFF), Bus components, VIC, TZIC,Internal memory (IROM and IRAM), NAND controller, OneNAND controller, CF controller, SRAM controller,Peripheral DMA, Memory DMA, CoreSight, JTAG, Modem interface, Security sub-system, TSI, HSMMC, USB HOST,USB OTG, DRAM controller, CHIPID, IEM_IEC, Security key, SPDIF, PCM, SPI, KEYIF, TSADC, I2C, I2S channel 1and 2, AC97, PCM, System timer, Watchdog timer, UART.So, Deep Idle with TOP=OFF power gates all the above modules.
How to check if Deep Idle works?Enable Deep Idle and Deep Idle statistics then run music player and select your favorite music (it must be yourfavorite song in order to deep idle work properly). Switch the screen off and wait few seconds (or wait untilyour favorite song is finished). Check with this command in a terminal emulator or adb shell deep idle statistics:cat /sys/devices/virtual/misc/deepidle/idle_stats
Alternatively you may just open the idle_stats file in the above directory using a root explorer like application.
I only get TOP=ON statisticsBluetooth or GPS or Vibrator is running
How to power down Bluetooth?Use this command:echo 1 > /sys/devices/platform/bt_rfkill/rfkill/rfkill0/softUnfortunately I didn't manage to find a way to enable it again. I tried an rfkil script but it doesn't work for me. Ifyou find a way, please let me know.
I only get Idle statistics (neither TOP=ON nor TOP=OFF)Something is preventing kernel to enter in deep idle state. This maybe normal. For example: LCD controller is enabledUSB is connectedTV encoder is workingG3D (GPU) is activeMFC (multi format codec) is activeSDMMC controller is activeetc.
How can I find what is preventing deep idle?That's why I implemented dflags in deep idle. Kernel check many factors to decide if it can enter deep idle. Allthese check are encoded in dflags. dflags is an integer number. If you read this number and decode it in binaryyou will get the results of the last check. Each check is a bit set in binary format. For example:dflag = 3 binary = 11. This means that LCD controller and camera are active. (Please note that I disabledcamera check for preventing kernel entering deep idle). The flags in dflags (most of the are self explanatory):0 S5PV210_PD_LCD1 S5PV210_PD_CAM2 S5PV210_PD_TV3 S5PV210_PD_MFC4 S5PV210_PD_G3D5 SND_S5P_RP6 S5P_CLKGATE_IP07 S5P_CLKGATE_IP18 S5P_CLKGATE_IP39 loop_sdmmc_check10 check_usbotg_op11 check_rtcint12 check_idmapos
You may enable debugging with echo 1 > /sys/devices/virtual/misc/deepidle/ddebug_enabled
The you may use this script to get the value of dflags every second.
converted by Web2PDFConvert.com
Previous Thread [KERNEL] Semaphore ICS 0.9.1 (0.9.5b) Next Thread
The Following 10 Users Say Thank You to stratosk For This Useful Post: Show/Hide
Code:
#!/system/xbin/busybox sh
while true; do cat /sys/devices/virtual/misc/deepidle/dflags
sleep 1done
Leave it to run and try to enter your phone in deep idle. The switch on the screen and read the last values andconvert the to binary. Values 0 or 1 lead to deep idle. Other values lead to Idle.
__________________www.semaphore.grLast edited by stratosk; Today at 08:41 PM.
Today, 09:03 PMHiKsFilesHiKsFiles # 1815
awesome!!
You should consider using the second post of this thread (the one reserved for future use ) to show this lastpiece of information ... quite usefull it is!
__________________Samung Galaxy S I9000mROM: Team ICSSGS RC4.2Kernel : Semaphore ICS 0.9.1Modem: UGKG3
Thanks Meter 13
Senior Member
Posts: 115Join Date: Aug 2010
Location: Québec city
Page 182 of 182 82 132 172 180 181 182
TagsTags
ics, semaphore
Posting RulesPosting Rules
You may not post new threadsYou may not post repliesYou may not post attachmentsYou may not edit your posts
BB code is OnSmilies are On[IMG] code is OnHTML code is Off Forum Rules
All times are GMT +1. The time now is 09:06 PM.
converted by Web2PDFConvert.com
-- XDA 2010
Copyright© xda-developers.
Follow us on Twitter - Contact Us - Are you a developer? XDA-Developers Home - View Forum Leaders - Legacy Devices -Top
converted by Web2PDFConvert.com