LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-20-2010, 06:12 PM   #1
marco18
Member
 
Registered: Jul 2007
Location: Argentina
Distribution: Ubuntu 13.04 , Debian Lenny 5.0.7
Posts: 223

Rep: Reputation: 21
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!!!
 
Old 02-20-2010, 07:15 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
There is no way to do that with the actual iwconfig command, keeping those settings permanent would depend on your distribution's boot scripts.
 
Old 02-21-2010, 08:52 AM   #3
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
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.
 
Old 02-21-2010, 09:03 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
Old 02-21-2010, 12:58 PM   #5
marco18
Member
 
Registered: Jul 2007
Location: Argentina
Distribution: Ubuntu 13.04 , Debian Lenny 5.0.7
Posts: 223

Original Poster
Rep: Reputation: 21
Quote:
Originally Posted by jschiwal View Post
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables-save can't save settings Actionscript3 Linux - Software 4 01-29-2009 10:26 AM
how to save iptables firewall rules permanently sunlinux Linux - Security 3 12-07-2006 11:53 AM
edit value of PATH permanently rsumbeling Linux - General 2 12-13-2004 10:57 AM
iwconfig dosen't save settings... why? antis Linux - Wireless Networking 1 11-15-2004 10:01 AM
ADMTek 8211 - iwconfig won't save settings daz0r Linux - Wireless Networking 11 01-01-2004 02:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration