WiFi Power Saving tweak

M

mrolp

Guest
I would like to share the results I got from tweaking (root needed) this registry:

File:
/system/etc/wifi/tiwlan.ini

Registry:

PowerSavePowerLevel = 1
#0 - ELP
#1 - PD
#2 - AWAKE

The default value was ELP, but that way my WiFi keeps disconnecting from WPA2 AES enabled Access points.

I changed to PD and problem solved.
First a made a copy of the file to backup if something went wrong, I used a text editor to change the "tiwlan.ini" and then rebooted the phone.

But now WiFi wastes more energy, can't have everything.
 
M

mrolp

Guest
Change to wpa1, I did it and solve all my wifi problems :D
But clearly this is Defy's problem, and WPA2 AES is very popular where I live, that is not praticable for me.

Or you can use programm wi-fi fixer
I'm going to give it a try. But tweaking powersave can be a solution to many problems, there should be an app to let users switch it easily.

EDIT:
best setting I found in the program is the option to disable wifilock:
http://developer.android.com/reference/android/net/wifi/WifiManager.WifiLock.html
http://code.google.com/p/android/issues/detail?id=9781

It is similar to change power saving...

EDIT:
Until now I haven't been able to reproduce the wifi disconnections after disabling lock using Wifi fixer and rebooting.

Same result as "Power Down" mode (PD), question is, what wastes more energy, if it is hardware mode PD
or software wifilock (not allowing turn off when the device is idle).

in progress
 
Last edited:

SpotTech

Senior Member
Mar 14, 2010
458
240
0
Liège
I would like to share the results I got from tweaking (root needed) this registry:

File:
/system/etc/wifi/tiwlan.ini

Registry:

PowerSavePowerLevel = 1
#0 - ELP
#1 - PD
#2 - AWAKE

The default value was ELP, but that way my WiFi keeps disconnecting from WPA2 AES enabled Access points.

I changed to PD and problem solved.
First a made a copy of the file to backup if something went wrong, I used a text editor to change the "tiwlan.ini" and then rebooted the phone.

But now WiFi wastes more energy, can't have everything.
Your tweak don't change anything, the wifi connectivity still don't better
 
M

mrolp

Guest
Your tweak don't change anything, the wifi connectivity still don't better
Your phone suffer from random disconnections (WPA2 AES enabled Acess Point) as mine did?
Are you sure the value of "PowerSavePowerLevel" in "tiwlan.ini" was successful changed from zero to one,
and you restart/reboot your Android after the change?

My ROM is stock Gingerbread -134 (2.3.4), what's yours?
 

SpotTech

Senior Member
Mar 14, 2010
458
240
0
Liège
Your phone suffer from random disconnections (WPA2 AES enabled Acess Point) as mine did?
Are you sure the value of "PowerSavePowerLevel" in "tiwlan.ini" was successful changed from zero to one,
and you restart/reboot your Android after the change?

My ROM is stock Gingerbread -134 (2.3.4), what's yours?
Yes, i have made a new zip update with this value in tiwlan.ini.
But i'm not disconnected, this the connectivity with the web.
The link still here, but no page or no dl is possible
my rom is MIUI 1.8.27

Sorry for my english
 
Last edited:

businessman9

Senior Member
Feb 14, 2011
88
14
0
my wifi is connected but cant get to internet when AES with buffalo hp-g300n,
I just changed to TKIP and wifi works without problems.

I tried changing powersaving , 802.11n on/off, dhcp/manual ip, and none of them worked fine.
 

SpotTech

Senior Member
Mar 14, 2010
458
240
0
Liège
my wifi is connected but cant get to internet when AES with buffalo hp-g300n,
I just changed to TKIP and wifi works without problems.

I tried changing powersaving , 802.11n on/off, dhcp/manual ip, and none of them worked fine.
I'am too, but in tkip my network aren't in optimal config for other stuff of my network!! :(
 

miscz

Senior Member
Jul 2, 2011
151
36
0
I would like to share the results I got from tweaking (root needed) this registry:
I have to test it more but it seems to fix my problem with WiFi.

My home network is using WPA2 with TKIP. Using CM7 and MIUI I have experienced disconnects while downloading larger files or watching Youtube. Regular browsing was ok but I couldn't really use Android Market. Stock ROMs were fine, even those based on leaked 2.3.4.
 
M

mrolp

Guest
I have to test it more but it seems to fix my problem with WiFi.

My home network is using WPA2 with TKIP. Using CM7 and MIUI I have experienced disconnects while downloading larger files or watching Youtube. Regular browsing was ok but I couldn't really use Android Market. Stock ROMs were fine, even those based on leaked 2.3.4.
Now we are 2 :). Hope it helps more people.



Yes, i have made a new zip update with this value in tiwlan.ini.
But i'm not disconnected, this the connectivity with the web.
The link still here, but no page or no dl is possible
my rom is MIUI 1.8.27

Sorry for my english
Your english is really good for me, it is not my native language too :p

I replaced mine the old way, using copy/paste with root access and the app ES Explorer.

I'm attaching to this post the original "tiwlan.ini" that came with my ROM (without the tweak), for you to check if it's equal to your ROM's original "tiwlan.ini".

My disconnection is the same, I only know it because I try to open a site or download and doesn't work, system keeps showing wireless connected.


You can try the program suggested by mainbord (Wifi Fixer), and in "preferences"/"Advanced Options" uncheck "Enable Wifi Lock". This is an alternative that solved my problem too.
 

Attachments

Last edited:

SpotTech

Senior Member
Mar 14, 2010
458
240
0
Liège
Now we are 2 :). Hope it helps more people.




Your english is really good for me, it is not my native language too :p

I replaced mine the old way, using copy/paste with root access and the app ES Explorer.

I'm attaching to this post the original "tiwlan.ini" that came with my ROM (without the tweak), for you to check if it's equal to your ROM's original "tiwlan.ini".

My disconnection is the same, I only know it because I try to open a site or download and doesn't work, system keeps showing wireless connected.


You can try the program suggested by mainbord (Wifi Fixer), and in "preferences"/"Advanced Options" uncheck "Enable Wifi Lock". This is an alternative that solved my problem too.
I can't open your tiwlan.ini... i have test wifi fixer, but i don't see any difference.. I think solve the problem whit any mod in wpa_supplicant...
but I'm not sur...
in the wpa supplicant del the option wpa2
 

romuleta

Senior Member
Jul 22, 2011
121
19
0
Brasília
I have experienced disconnects only with roms based on leaked 2.3.4. CM7 was OK. Now I'm using oficial Retail 2.2.1, with tiwlan.ini set with PowerSavePowerLevel = 0 (ELP) and everything is OK.

I'm going to install Motoginger Teaser v4 tonight and, if problem persist, I'll try this tiwlan.ini modification.

EDIT: Problem with Motoginger persists. Testing with option 1 set and no disconnection untill now.

Thanks for the trick.
 
Last edited:

geecko

Senior Member
Dec 27, 2010
129
6
18
Brussels
After using that trick, my phone can't connect to wifi (only tried my WPA AES) and (could be unrelated) can't use the SIM card. Data wipe doesn't fix it...
 
M

mrolp

Guest
@m!k3
I'm sorry that it does not work in your case.

@romuleta
now we are 3 :)

After using that trick, my phone can't connect to wifi (only tried my WPA AES) and (could be unrelated) can't use the SIM card. Data wipe doesn't fix it...
@geecko
What is the version of your ROM?
Do you have a backup of your original "/system/etc/wifi/tiwlan.ini"
to replace as suggested in the #1 post?

EDIT: I've found your thread describing it.
Hey

I recently flashed Miui English, latest version.

But I quickly faced the following issues :

- It didn't ask for my PIN.

- Wifi worked, but weird bugs occurred.

I found it weird, so I did what a topic advised : I edited /system/etc/wifi/tiwlan.ini
The modifications were only applied to the power saving setting.

I rebooted and I'm not sure if it happened immediately but eventually wifi didn't even work anymore. So I installed CM7, no changes.

Flashed back the 3.4.3-11 Blur .sbf and ... no changes ! Data and cache Wipe doesn't change anything either. Of course I also restored the tiwlan.ini .

So whatever the ROM it is I'm using, "Invalid Sim card" and wifi "connects, disconnects, scans, connects, disconnects" but never ever connects.

How do I fix this ? It seems to be software-side 'cause it appeared when I installed Miui.

It seems you already had strange problems with PIN and Wifi before making the tweak, and after the tweak (not sure if immediately) things got worse.
Hope someone can help you find exactly where the bug is.
 
Last edited: