Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
iwconfig eth1 power off (trying to set that at boot time)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
himpierre
l33t
l33t


Joined: 31 Aug 2002
Posts: 867
Location: Berlin

PostPosted: Fri Dec 31, 2010 1:25 pm    Post subject: iwconfig eth1 power off (trying to set that at boot time) Reply with quote

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
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Sat Jan 01, 2011 3:38 am    Post subject: Reply with quote

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
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Sat Jan 01, 2011 5:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
himpierre
l33t
l33t


Joined: 31 Aug 2002
Posts: 867
Location: Berlin

PostPosted: Mon Jan 03, 2011 7:54 am    Post subject: Reply with quote

Thank you Sadako.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum