Reply
Thread Tools
Posts: 99 | Thanked: 325 times | Joined on Jul 2010
#1
Hello,

I'm a fresh N900 owner and quite happy with it. I've installed the famous wifi-switcher and wanted to disable wlan on boot per default as I don't use it very much.

My first try to was to write an upstart event to "start after started wlancond" and then call wifi-switcher's "wifi.sh" to disabled it.

wlancond is not happy with that and respawns quite often until it is blocked by upstart's respawn protection. Adding a "sleep 10" (...) before calling wifi.sh worked around the issue.

So I found another way to do this:
- echo "blacklist wl12xx" >>/etc/modprobe.d/blacklist
- edit "/etc/event.d/wlancond" and comment out the
"start on started hildon-desktop" line. No wlancond on boot
- edit "/etc/event.replace.d/wlancond" and comment out the
"start on started hildon-desktop" line. No wlancond on boot

-> wlan is now completly disabled on boot and can be enabled normally using the wifi-switcher.

Is the assumption correct that an unloaded wl12xx module
sucks less battery than just disabled wlan?
Atleast wifi-switcher also unloads the module.

Cheers,
Thomas
 
Posts: 150 | Thanked: 16 times | Joined on Jun 2010
#2
hi
i would like to do that too
the question is how?
i mean i dont understand exactly what you did
could you explain it further like for a total linux noob?
thanks
 
Posts: 23 | Thanked: 3 times | Joined on Jan 2010
#3
bump...anyone??
 
jd4200's Avatar
Posts: 451 | Thanked: 424 times | Joined on Apr 2010 @ England
#4
Why don't you just deactivate the wireless interface:
ifconfig wlan0 down
__________________
BTC:
19ePiXZUdxqNAq9tStLzZV4dduSQeGPJzj
 
Posts: 23 | Thanked: 3 times | Joined on Jan 2010
#5
Originally Posted by jd4200 View Post
Why don't you just deactivate the wireless interface:
ifconfig wlan0 down
I'll give that a try. Hopefully that will stick between boots.
 
PathFinder@9GS's Avatar
Posts: 164 | Thanked: 79 times | Joined on Jul 2010
#6
I think it will come back up on the reboot....
if you have qbw, add this command on startup..

PS : you probab need to sudo it
 
Posts: 72 | Thanked: 5 times | Joined on Apr 2010 @ Finland
#7
Quick Q: does disabling the WLAN-module improve batterylife?
 
Posts: 118 | Thanked: 39 times | Joined on Apr 2010 @ Jakarta, Indonesia
#8
if you want a command started each boot why dont you write a script for that command and put it in the /etc/event.d

just like the swappolube application you have to insert a line

start on started hildon-desktop

to make it start everytime you reboot

i'm just saying this based on my little knowledge of linux, sorry if this may not help
 
ndi's Avatar
Posts: 2,050 | Thanked: 1,425 times | Joined on Dec 2009 @ Bucharest
#9
Originally Posted by Exact View Post
Quick Q: does disabling the WLAN-module improve batterylife?
Unlikely, methinks. This is a mobile chip and it's likely it draws as little power as possible if not in use. With auto-search for WLAN off there should be no visible improvement.

Besides, whet you do is unload the module, not powering down the chip. The chip shouldn't know the module is down unless loading it activates it somehow and keeps it up. It would be a bad thing to do on a battery powered device.
__________________
N900 dead and Nokia no longer replaces them. Thanks for all the fish.

Keep the forums clean: use "Thanks" button instead of the thank you post.
 
Posts: 219 | Thanked: 40 times | Joined on Sep 2010
#10
I want wifi switcher to do this too, like the SSH Status does, turning off SSH on boot.
 
Reply


 
Forum Jump


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