![]() |
2011-09-07
, 12:15
|
Posts: 356 |
Thanked: 69 times |
Joined on Jan 2010
@ Poland
|
#2111
|
![]() |
2011-09-07
, 12:20
|
Banned |
Posts: 695 |
Thanked: 308 times |
Joined on Apr 2011
@ originally pakistan ,now in china
|
#2112
|
![]() |
2011-09-07
, 13:22
|
Posts: 856 |
Thanked: 1,681 times |
Joined on Apr 2010
@ Aleppo ,Syria
|
#2113
|
That is correct (about the battery). Now for your next trick, adjusting wifi power...
When I am on my home wifi, I am always near the access point. Thus I do not need the full 100mW of wifi power. I can use just 10mW and still have perfect connection. Similarly, at work I am in the middle of 3 dd-wrt routers all cranking out 250mW of power, I can get away with just 2mW of wifi power there. Adjusting wifi power by the 'connections' settings is a pain in the testicles and cannot be done for each network separately...
In maemo (an most linux's) there is is a directory called /etc/network/if-up.d. Any scripts in this folder will be run as root whenever I 'connect'...
So, you create a file called:
Containing:Code:/etc/network/if-up.d/50_wifiscripts
This means when I connect to qwerty12 (home) or work the power is reduced appropriatley.Code:#!/bin/sh essid=$(iwgetid -s) if [ "$essid" == "qwerty12" ]; then iwconfig wlan0 txpower 7 echo $essid elif [ "$essid" == "work" ]; then iwconfig wlan0 txpower 3 fi
Similarly, at the other end:
Containing:Code:/etc/network/if-down.d/50_wifiscripts
To put power back to max when I disconnect (so you can still connect to other networks).Code:#!/bin/sh iwconfig wlan0 txpower 20
You can stick other stuff in these directories too. For example, switch to work profile when I connect to work wifi.
This lets me stay connected to wifi all day without even batting an eyelid!
![]() |
2011-09-07
, 13:35
|
|
Posts: 939 |
Thanked: 366 times |
Joined on Dec 2010
@ U.K.
|
#2114
|
![]() |
2011-09-07
, 14:20
|
Posts: 169 |
Thanked: 71 times |
Joined on Aug 2010
@ Spain
|
#2115
|
![]() |
2011-09-07
, 14:42
|
Posts: 561 |
Thanked: 75 times |
Joined on Jan 2010
@ Spain
|
#2116
|
![]() |
2011-09-07
, 14:46
|
Posts: 856 |
Thanked: 1,681 times |
Joined on Apr 2010
@ Aleppo ,Syria
|
#2117
|
The Following User Says Thank You to karam For This Useful Post: | ||
![]() |
2011-09-07
, 14:51
|
Posts: 561 |
Thanked: 75 times |
Joined on Jan 2010
@ Spain
|
#2118
|
![]() |
2011-09-07
, 15:06
|
Posts: 536 |
Thanked: 81 times |
Joined on May 2011
@ Russia
|
#2119
|
![]() |
2011-09-07
, 15:11
|
Posts: 266 |
Thanked: 156 times |
Joined on Jun 2011
@ India
|
#2120
|
hey karam. i just updated the battery patch via fapman and i got 4 reboots while on standby. after turning on it said unexpected reboot occured and the custom kernel settings were not loaded. can u please help me with this and fix the unexpected reboots? if u dont know about it then can u please tell me that how to revert back the the previous version of the batterypatch? because my phone is idle n i see it reboot again n again
![]() |
Tags |
autobrick, awesome-script, do no install, f***epitaph, install it now, perfect_ n900, script-a-brick, very safe |
|