Active Topics

 


Reply
Thread Tools
Posts: 393 | Thanked: 67 times | Joined on Feb 2010
#1
Is there any method to automatically switch the N900's wireless radio (WLAN) to full power (No Power Save) when it is charging?

The goal would be to normally have the Wi-Fi run on Power Save mode, but switch to Full Power when it is plugged in to a charger, and then switch back to Power Save when unplugged.

Perhaps even a method to automatically turn on Wi-Fi when it's charging and turn it off when it's on battery would be a good start.

Any thoughts are welcome.
 
hawaii's Avatar
Posts: 1,030 | Thanked: 792 times | Joined on Jun 2009
#2
You can pull this off using dbus-scripts. Something like;

* * com.nokia.bme.signal charger_charging_on will be your trigger event.

Get your Internet Access Point ID by using;

gconftool -R /system/osso/connectivity/IAP

and connect to, after replacing IAP_ID, using;

dbus-send --system --type=method_call --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:"IAP_ID" uint32:0

As for automatically changing the power, I'm sure there's a dbus call for it, but you can do so using

iwconfig wlan0 txpower 100mW or 10mW to adjust it up or down.

Last edited by hawaii; 2010-09-01 at 18:50.
 

The Following 3 Users Say Thank You to hawaii For This Useful Post:
Posts: 393 | Thanked: 67 times | Joined on Feb 2010
#3
Thanks for the detailed response, I'll give this a shot.
 
Reply


 
Forum Jump


All times are GMT. The time now is 20:09.