maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Disable wlan on boot (https://talk.maemo.org/showthread.php?t=58133)

thomasjfox 2010-07-09 20:13

Disable wlan on boot
 
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

hassan_badredin 2010-07-11 12:26

Re: Disable wlan on boot
 
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

nichos 2010-09-17 23:06

Re: Disable wlan on boot
 
bump...anyone??

jd4200 2010-09-17 23:38

Re: Disable wlan on boot
 
Why don't you just deactivate the wireless interface:
ifconfig wlan0 down

nichos 2010-09-18 01:32

Re: Disable wlan on boot
 
Quote:

Originally Posted by jd4200 (Post 819376)
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 2010-09-18 02:08

Re: Disable wlan on boot
 
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

Exact 2010-09-18 17:31

Re: Disable wlan on boot
 
Quick Q: does disabling the WLAN-module improve batterylife?

adhrie 2010-09-18 18:01

Re: Disable wlan on boot
 
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 2010-09-18 18:28

Re: Disable wlan on boot
 
Quote:

Originally Posted by Exact (Post 819928)
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.

zerocool2k 2010-09-24 23:47

Re: Disable wlan on boot
 
I want wifi switcher to do this too, like the SSH Status does, turning off SSH on boot.


All times are GMT. The time now is 11:50.

vBulletin® Version 3.8.8