Java Mailing List Archive

http://www.redhatconfig.com/

Home » Gentoo Linux »

[gentoo-user] Re: iwlwifi - problem with wireless radio being killed

»Q«

2008-04-22

Replies: Find Java Web Hosting

Author LoginPost Reply
On Tue, 22 Apr 2008 11:30:26 +0100
Neil Bothwick <neil@(protected):

> On Sun, 20 Apr 2008 16:42:41 -0500, »Q« wrote:
>
> > I wish I knew how to keep it from going off in the first place,
>
> It's probably a good thing, especially if your laptop's battery is as
> rubbish as mine

I guess so. I'm used to shutting it down with the hardware switch when
I'm on battery and not connected to the 'net, and I'd never considered
how nice it would be to have it handled automagically.

> > for now I'll just give an alias to
> > "/etc/init.d/net.wlan0 stop && iwconfig wlan0 txpower on
> > && /etc/init.d/net.wlan0 start"
>
> There's no need to mess around with aliases,

I was already using an alias to restart the interface, just to
save typing. But I certainly agree with you that configuring it to
power up is a cleaner way to handle it.

> the network scripts can
> handle this automatically. Add this to /etc/conf.d/net
>
> preup() {
>   [[ ${IFACE} == "wlan0" ]] && iwconfig wlan0 txpower on
>   return 0
> }

Thanks much. That works nicely. I had tried

iwconfig_wlan0="txpower on"

In /etc/conf.d/net, as the wireless.example file suggested that as a
way to use iwconfig commands, but it didn't work. The power would
be turned on, but the card couldn't successfully connect to an AP.
Maybe using preup() causes the power to be on sooner?


--
gentoo-user@(protected)

©2008 redhatconfig.com - Jax Systems, LLC, U.S.A.