有没有办法禁用无线接口的硬件开/关开关?

ave*_*vee 8 hardware wireless

我有一台HP 520并且正在运行最新的 Ubuntu 11.10。硬件在 Ubuntu 上运行良好,但有一个例外:该设备有一个用于打开和关闭 wifi 的硬件开关。每次通过硬件开关禁用 wi-fi 时,我都无法再次打开它。网络弹出窗口上的消息将是device not ready

我正在寻找的是一种完全禁用硬件开关的方法,这样当用户不小心按下按钮时,wifi 就不会被禁用。

  • BIOS 中没有禁用开关的设置。

硬件信息来自lspci -nn

00:00.0 Host bridge [0600]: Intel Corporation Mobile 945GME Express Memory Controller Hub [8086:27ac] (rev 03)
00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile 945GME Express Integrated Graphics Controller [8086:27ae] (rev 03)
00:02.1 Display controller [0380]: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller [8086:27a6] (rev 03)
00:1b.0 Audio device [0403]: Intel Corporation N10/ICH 7 Family High Definition Audio Controller [8086:27d8] (rev 01)
00:1c.0 PCI bridge [0604]: Intel Corporation N10/ICH 7 Family PCI Express Port 1 [8086:27d0] (rev 01)
00:1c.1 PCI bridge [0604]: Intel Corporation N10/ICH 7 Family PCI Express Port 2 [8086:27d2] (rev 01)
00:1d.0 USB Controller [0c03]: Intel Corporation N10/ICH 7 Family USB UHCI Controller #1 [8086:27c8] (rev 01)
00:1d.7 USB Controller [0c03]: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller [8086:27cc] (rev 01)
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 Mobile PCI Bridge [8086:2448] (rev e1)
00:1f.0 ISA bridge [0601]: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge [8086:27b9] (rev 01)
00:1f.2 IDE interface [0101]: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA IDE Controller [8086:27c4] (rev 01)
02:06.0 CardBus bridge [0607]: ENE Technology Inc CB1410 Cardbus Controller [1524:1410] (rev 01)
02:08.0 Ethernet controller [0200]: Intel Corporation 82562ET/EZ/GT/GZ - PRO/100 VE (LOM) Ethernet Controller Mobile [8086:1068] (rev 01)
10:00.0 Network controller [0280]: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection [8086:4222] (rev 02)
Run Code Online (Sandbox Code Playgroud)

输出lsmod | grep iwl

iwl3945                73329  0 
iwl_legacy             71499  1 iwl3945
mac80211              272785  2 iwl3945,iwl_legacy
cfg80211              172392  3 iwl3945,iwl_legacy,mac80211
Run Code Online (Sandbox Code Playgroud)

Rob*_*ans 2

你不能。要禁用它,您可以物理阻止或删除硬件开关。如果 rfkill 显示硬阻止,则无法覆盖硬件禁用按钮,这对大多数人来说都是可行的。

当您解锁它时,如果它陷入某种不一致的状态,您最好的选择是:
sudo modprobe -r iwl3945 && sudo modprobe iwl3945
我有一台 hpdv7,无线 a) 使用相同的驱动程序,b) 硬件切换对我有用。


tom*_*chi 0

既然是硬件,那就是硬件。如果您确实希望将其“固定”在一个位置,请使用胶水。