LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to save changes with iwconfig permanently?? (https://www.linuxquestions.org/questions/linux-networking-3/how-to-save-changes-with-iwconfig-permanently-790476/)

marco18 02-20-2010 06:12 PM

How to save changes with iwconfig permanently??
 
Hi guys! I have a little question, since I am having some problems with my wireless card.
If I ping my pc with no activity on it, it just won't respond to the pings. But if I start pinging from the PC and then from somewhere else, everything works perfect. I found out this problem since my ftp service was not responding sometimes.
So looking for info and checking some parameters I found the "Power Management" option in the iwconfig command. It's value is "on" so I tried turning it off and It seemed to have solved the issue. The thing is that after a reboot, it returns to it's default value. Is there any way to make this parameter value permanent??

Thanks in advanceee!!! :D

MS3FGX 02-20-2010 07:15 PM

There is no way to do that with the actual iwconfig command, keeping those settings permanent would depend on your distribution's boot scripts.

tredegar 02-21-2010 08:52 AM

The lazy man's answer:

Put whatever command you need to turn power management off into the file /etc/rc.local
on the line before the final exit 0
Be sure to give the /full/path/to/command
That file is run (as root) after everything else has come up at boot time.

The proper answer: Find out where your distro is configuring wireless power management and turn it off there.

jschiwal 02-21-2010 09:03 AM

If your system uses an "ifcfg-wlan0" file to configure the device, there is a line for POWER, which you can set to no.
Try "man ifcfg" for starters. I don't use Ubuntu, so maybe a editing /etc/rc.local would make more sense in your case.

marco18 02-21-2010 12:58 PM

Quote:

Originally Posted by jschiwal (Post 3871440)
If your system uses an "ifcfg-wlan0" file to configure the device, there is a line for POWER, which you can set to no.
Try "man ifcfg" for starters. I don't use Ubuntu, so maybe a editing /etc/rc.local would make more sense in your case.

I couldn't find anything about it in ubuntu, maybe it's only available in Suse. I modified the rc.local file so I think that will do it. Thank you all guys for your timee! See ya! :)


All times are GMT -5. The time now is 06:51 AM.