j4velin / WiFi-Automatic

Automatically turn off WiFi if you don't need it
https://play.google.com/store/apps/details?id=de.j4velin.wifiAutoOff
Apache License 2.0
71 stars 32 forks source link

feature idea: txpower #3

Closed dalb8 closed 10 years ago

dalb8 commented 10 years ago

This idea is kind of wild, but if you had root you could set the wifi txpower via /sys/devices/... Why would you want this? Well, no other FOSS GUI apps do this and custom ROMs frequently have the value above legal limits; you could save battery with a lower value of about 12dBm for some access points. To achieve the latter you might want a weak/strong value for each access point, altering the UI somewhat or you could guess the value based on signal strength. Perhaps this is beyond the scope of the app.

dalb8 commented 10 years ago

The interface probably isn't avaiable widely. Another way of doing it is with iwconfig, but I think that's deprecated anyway and would be hard to build from source; maybe this can do it: https://github.com/servalproject/batphone/tree/development/jni

dalb8 commented 10 years ago

My custom kernel actually has it in /sys/kernel/wifi_pm/dbm.

dalb8 commented 10 years ago

I've asked around on this and the opinion is that the txpower values are probably wrong or not properly implemented by the OEM. Why they would be wrong when they should be set for each country to be in accordance with law is baffling. So I'll close this, being a matter which is too device specific.