atheros wireless- how to turn it off
atheros wireless- how to turn it off
Hi,
I have a t43p with a atheros wireless andI am trying to find a safe way to turn off the wireless card. I have found this script that puts 3 to the power state and turn it off (I think..):
#!/bin/bash
# Find and enable/disable wireless devices
for DEVICE in /sys/class/net/*; do
if [ -d $DEVICE/wireless ]; then
# $DEVICE is a wireless device. Check if it's powered on:
if [ `cat $DEVICE/device/power/state` = 0 ]; then
# It's powered on. Switch it off.
ifdown ath0
echo -n 3 > $DEVICE/device/power/state;
else
# It's powered off. Switch it on.
echo -n 0 > $DEVICE/device/power/state;
fi
fi
done
Or another alternative is to remove ath modules. But I don't know if I remove them (ath_pci, ath_rate_onoe and wlan) the card is turned off.
Do anyone uses atheros wireless and how you turn it off??
Thanks....
I have a t43p with a atheros wireless andI am trying to find a safe way to turn off the wireless card. I have found this script that puts 3 to the power state and turn it off (I think..):
#!/bin/bash
# Find and enable/disable wireless devices
for DEVICE in /sys/class/net/*; do
if [ -d $DEVICE/wireless ]; then
# $DEVICE is a wireless device. Check if it's powered on:
if [ `cat $DEVICE/device/power/state` = 0 ]; then
# It's powered on. Switch it off.
ifdown ath0
echo -n 3 > $DEVICE/device/power/state;
else
# It's powered off. Switch it on.
echo -n 0 > $DEVICE/device/power/state;
fi
fi
done
Or another alternative is to remove ath modules. But I don't know if I remove them (ath_pci, ath_rate_onoe and wlan) the card is turned off.
Do anyone uses atheros wireless and how you turn it off??
Thanks....
Seems like for everone else but me Fn F5 controls BT. I don't know why. Kaiser and I went around about this in another post awhile back. My wireless light goes out when I ifdown ath0. But that may not mean squat. Seems the battery last much longer though...
magneto wrote:Fn F5 doesn't work for wireless (for me). It only switch on/off bluetooth. And ifdown turns off only the interface not the card. The card still consumes energy even the interface is shutted down.
-
- Similar Topics
- Replies
- Views
- Last post
-
-
ThinkPad T43/p in T41p casing - cannot turn back on after shutdown with charger left plugged
by kfzhu1229 » Wed Feb 01, 2017 1:38 am » in ThinkPad T4x Series - 2 Replies
- 1316 Views
-
Last post by kfzhu1229
Wed Feb 01, 2017 8:20 am
-
-
-
Any pcb designs/kits to turn X40 keyboard+TP into USB or PS/2?
by abvgdee » Wed Apr 12, 2017 2:50 am » in ThinkPad X2/X3/X4x Series incl. X41 Tablet - 3 Replies
- 427 Views
-
Last post by axur-delmeria
Thu Apr 13, 2017 5:54 am
-
-
-
ThinkPad X1 Carbon 1st gen wont turn on
by servis_null » Tue May 30, 2017 3:51 pm » in ThinkPad X1/X1C - 7 Replies
- 327 Views
-
Last post by Thinkpad4by3
Mon Jun 05, 2017 9:41 pm
-
-
-
X1 Carbon Gen 2 keyboard lights flashing when turn on
by yoavnn » Fri Jun 02, 2017 6:08 pm » in ThinkPad X1/X1C - 3 Replies
- 180 Views
-
Last post by Brad
Sun Jun 04, 2017 3:11 am
-
Who is online
Users browsing this forum: No registered users and 1 guest



