Gentoo Archives: gentoo-user

From: "»Q«" <boxcars@×××.net>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: iwlwifi - problem with wireless radio being killed
Date: Tue, 22 Apr 2008 22:01:22
Message-Id: 20080422170044.2e3edcbc@bellgrove.remarqs.net
In Reply to: Re: [gentoo-user] Re: iwlwifi - problem with wireless radio being killed by Neil Bothwick
1 On Tue, 22 Apr 2008 11:30:26 +0100
2 Neil Bothwick <neil@××××××××××.uk> wrote:
3
4 > On Sun, 20 Apr 2008 16:42:41 -0500, »Q« wrote:
5 >
6 > > I wish I knew how to keep it from going off in the first place,
7 >
8 > It's probably a good thing, especially if your laptop's battery is as
9 > rubbish as mine
10
11 I guess so. I'm used to shutting it down with the hardware switch when
12 I'm on battery and not connected to the 'net, and I'd never considered
13 how nice it would be to have it handled automagically.
14
15 > > for now I'll just give an alias to
16 > > "/etc/init.d/net.wlan0 stop && iwconfig wlan0 txpower on
17 > > && /etc/init.d/net.wlan0 start"
18 >
19 > There's no need to mess around with aliases,
20
21 I was already using an alias to restart the interface, just to
22 save typing. But I certainly agree with you that configuring it to
23 power up is a cleaner way to handle it.
24
25 > the network scripts can
26 > handle this automatically. Add this to /etc/conf.d/net
27 >
28 > preup() {
29 > [[ ${IFACE} == "wlan0" ]] && iwconfig wlan0 txpower on
30 > return 0
31 > }
32
33 Thanks much. That works nicely. I had tried
34
35 iwconfig_wlan0="txpower on"
36
37 In /etc/conf.d/net, as the wireless.example file suggested that as a
38 way to use iwconfig commands, but it didn't work. The power would
39 be turned on, but the card couldn't successfully connect to an AP.
40 Maybe using preup() causes the power to be on sooner?
41
42
43 --
44 gentoo-user@l.g.o mailing list

Replies

Subject Author
[gentoo-user] Re: iwlwifi - problem with wireless radio being killed "»Q«" <boxcars@×××.net>