[LG Optimus 4X HD] Arne_B:
Background and explanation

Some of our phones and firmware have a bad implementation of the fast dormancy (a function that actually should save us battery). The phone will always check the network status when the phone has a low signal or when calling/texting. This to know when to idle the network connection.

The wake-ups prevent a phone from a long deep sleep and may cause bad battery life. It also polls the network frequently when the screen is on, probably consuming extra battery life. So fixing this might improve your battery life.

I found this thread for the Optimus G: http://xdaforums.com/showthread.php?t=2018894

And got some info out of, tried to apply some of the tips over there myself and I think I found out how to do it for any network provider on any LG phone.

First let me talk about the results; I used to have 300+ wake-ups in 20 minutes from com.android.phone. This in areas where the mobile signal was weak. Now after applying this setting I had only 3 wake-ups in 25 minutes. I was still able to text, call and receive calls, use mobile data, 2G and 3G mode. So after applying this, the phone should still work normally.

Hope this helps for preventing the com.android.phone wake-ups.

It could be that your network is incompatible with these specific settings.

This is currently for

STOCK ROM ONLY

Tutorial how to edit manually

Here are the steps, this is for rooted phones only:

- First, know what your mobile network provider is!

- To know this, refer to this list: http://en.wikipedia.org/wiki/Mobile_Network_Code

- From this list, get your MCC and MNC code, make sure it's your country and your mobile network provider.

- Download or use a root file explorer, I use ES File Explorer.

- In the file explorer go to /data/data/com.android.providers.telephony/databases

- Copy the telephony.db file as a backup to your /sdcard or /sdcard/external_sdcard

- Download these 2 apps: aShell and aSQLiteManager

- Start the aShell app.

- Check the 'Root' box.

- Tap 'File Explorer'.

- Tap 'data', then again 'data', then 'com.android.provider.telephony', then 'databases'.

- Tap the 'telephony.db' file.

- Tap 'Yes'.

- Tap 'aSQLiteManager' to open the 'telephony.db' file.

- Tap 'dcm_settings'.

- Tap 'Data'.

- Now search in the list (by tapping 'PgUp or 'PgDn') or you can find your mobile network 'numeric' number. This is the MCC code followed by the MNC code.

For example:

MCC is 206, MNC is 20, look for the 'numeric' 20620.

- Is it already in the list? Good let's continue. Is it not? We'll get onto that later (see step 'Now if your...').

- Tap 'Edit' on the line where your 'numeric' is listed.

- Edit the following field: 'fastdormancy'.

- Set this value to '0'. *

- Was it already value '0'? Unfortunately this fix is already applied (doesn't apply) or won't make any difference for you.

- Tap 'OK'.

- Now, if your 'numeric' isn't listed, we will add it our-self. If it was, skip this part.

- Tap 'New'.

- Leave this field open (unedited): '_id'

- Fill in these values in the following fields: 'extraid' set the value '0', 'fastdormancy' set the value '0' *, 'ipmtu' set the value '0', 'mpdp' set the value '1'.

- Add your personal mobile network related 'numeric' number in the 'numeric' field.

- Tap 'OK'.

- Go back and save the 'telephoney.db' copy by tapping 'Yes'.

- Reboot your phone!

This is it!

Restore

If you encounter problems with your network, undo the settings or replace the 'telephony.db' with the file that you backed up. Reboot.

Other ways to edit

Thanks to ircalf we have a more simple way to edit this database file:

See his post:

*Use different options for fast dormancy

The member ircalf pointed this out. I already tried a few.

This means you could use these other settings for the 'fast dormancy' table:

- 0 (this one I recommend, it's the easiest solution but has some drawbacks that I experienced, read the red text below)

- 1 (I don't recommend this setting -> the phone never goes into deep sleep with data enabled and battery usage is abnormally high, cause a high amount of Partial wake lock's for the RILJ wake lock)

- 1,0,0,1000,5000,420000,5000,5000,1,1,1

- 1,0,0,1000,5000,10000,5000,5000,1,0,1

- 1,0,0,1000,5000,60000,5000,5000,1,1,1

- 1,0,0,1000,5000,300000,5000,5000,1,1,1

Try them out and see what works best for you ;)

I'm going to try custom numbers also to see if that makes any difference.

More details about these numbers thanks to bullghost:

!Known issues!

IMPORTANT!

- Like said above, this could cause problems. Use with caution:

Already known issues for some network providers/users (not all experience these problems! So this fix might work perfectly for you):

- Sygic can't calculate routes: 'Route calculation has failed: discontinuous network [1].' Fixed in Sygic 12.2.2!

- Browsing the internet is sluggish, lags, ... I was able to get this resolved with browser updates and maybe setting the 'extraid' value to '0'.

- When the battery is below 10-5% it looks like the modem has a hard time to 'lock' a mobile signal, this after a reboot and entering the pincode. This doesn't occur that often when not edited.

- When ending a call or rebooting the phone it might give you this message more often. This when trying to call, text or use mobile data: 'Reorganizing internal processes. Please try again after a short while.'

- Phone sometime looses mobile network signal randomly. This happens when you are in an area with not that many antennas.