[SMALL FIX] Increase Wifi TX power ("signal strenght")

zdzihu

Retired Recognized Developer
Sep 28, 2008
651
5,141
0
Hi, I noticed that our wifi driver can be controlled via iwconfig to increase TX power. It's not too impressive change (from default 14dbm to max 15dbm), but still it's a ~25% transmission power increase considering miliwatts (25mW->32mW) :)

Please remember it will slightly improve your wifi connection, but also increase the power consumption!

HOWTO:
Use the file everytime you switch on the wifi (or create a relevant script):
Code:
iwconfig wlan0 txpower 15

Download: iwconfig


Cheers,
z
 

rshui

Senior Member
Mar 22, 2011
68
0
0
kuching
hi, sorry for asking stupid Q.
can any tell me how to open it?
just simply press on it? but it asked to open with ..(text viewer/ SQlite database viewer and so on... )
 

Hzu

Senior Member
Nov 13, 2010
1,682
575
0
To use this script, execute it from the terminal. Copy it to anywhere into your memory card. Open up Terminal Emulator, cd to /sdcard/location/of/the/file/ (e.g. /sdcard/download) and enter the command from the first post.

Here's a simple script that might work. I haven't tested it yet:
Code:
#!/system/bin/sh

/system/bin/iwconfig wlan0 txpower 15
Save as whateveryouwanttonameit.sh in anywhere you want (a folder for scripts in sdcard is recommended). You need to copy the 'iwconfig' file into /system/bin for this to work and run this script from Script Manager or Gscript or anything that can run the script (including Terminal Emulator). If I'm not mistaken, you can create a simple widget for scripts using Script Manager.

Hope it works. Thanks zdzihu for this great find.
 
Last edited:

rapatu2010

Senior Member
Aug 12, 2010
104
19
0
The alternative suggested to Zdzihu's does not work

Here you can find an app for better controlling that setting http://4pda.ru/forum/index.php?showtopic=220775. Settings are changed by tapping on a widget.
Nobody has found the widget suggested in this link as an alternative to work! English translation of the Russian thread. Its battery draining effect however persists. Take care!:mad:
 
Last edited:

creage

Senior Member
Jan 9, 2009
186
33
0
@rapatu2010
well man, I'm using it quite OK, and don't experience any drains at all. It works great for me as well as for many other users. If you can't install it, then don't complain to app.
 

Hzu

Senior Member
Nov 13, 2010
1,682
575
0
when im typing /system/bin/iwconfig wlan0 txpower 15

Error for wireless request "Set Tx Power" (8B26) :
SET failed on device wlan0 ; Operation not permitted.
You need to be in root mode first. If you're on Terminal Emulator, you need to execute the command su first to be in root mode and you're good to go.