View previous topic :: View next topic |
Author |
Message |
himpierre l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Quake3/quake3_sarge.gif)
Joined: 31 Aug 2002 Posts: 867 Location: Berlin
|
Posted: Fri Dec 31, 2010 1:25 pm Post subject: iwconfig eth1 power off (trying to set that at boot time) |
|
|
Hello.
I noticed a huge network perfomance degration on my asus eee 1215n. Figured out that the reason was the powermanagement. Well, i can disable powermanagement with "iwconfig eth1 power down". Now i have full speed again. But how do i disable powermanagement permanently? There is something in /usr/lib/pm-utils/power.d but it doesn't seem to work if i adjust the wireless settings there. I know i can put this command in some startup script but i don't like that. Someone has an idea?
cheers
h. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
The Doctor Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
![](images/avatars/1476831409504021698f994.jpg)
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Sat Jan 01, 2011 3:38 am Post subject: |
|
|
you could write a bash script and add that to the boot run level
I am NOT an expert at writing a bash script at all. This script MIGHT be very bad for your system, but I think that you want something like this: Code: |
#!/bin/bash
# important stuff...
iwconfig eth1 power down
|
or something better... like I said I am NOT very familiar with bash, use at you own risk, etc.
put that in /etc/init.d/<filename>. set the permissions to 'executable'. then Code: | rc-update add <filename> boot |
There might be a better way, but I don't know it. I hope that helps! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Sadako Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/2074682074aea79062b33b.jpg)
Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Sat Jan 01, 2011 5:24 pm Post subject: |
|
|
This depends on how you have networking setup/managed in the first place, but iwconfig_eth1="power down" in /etc/conf.d/net looks like the right place for this to me... _________________ "You have to invite me in" |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
himpierre l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Quake3/quake3_sarge.gif)
Joined: 31 Aug 2002 Posts: 867 Location: Berlin
|
Posted: Mon Jan 03, 2011 7:54 am Post subject: |
|
|
Thank you Sadako. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|