本周我升级到了 Ubuntu 12.04。我的无线网卡出现了一些问题。在按照 askubuntu 上的一些帖子操作后,我以一种奇怪的方式让它工作了:
当我启动笔记本电脑时没有以太网电缆,系统启动时,我卡在 Ubuntu“加载”屏幕上。它显示“等待网络配置”。然后它保持这种状态大约 2 分钟,当它最终启动时,我没有网络连接。
但是,如果我启动插入以太网电缆,它加载很快,并且我的无线网络工作正常!
我不知道该怎么办了,无论以太网电缆是否插入,我都希望无线网卡能够正常工作。所以我请求你的帮助。
以下是一些可能有用的命令的结果,如果您需要更多信息,请告诉我。
sudo lshw -C network
*-network
description: Ethernet interface
product: RTL8111/8168B PCI Express Gigabit Ethernet controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:02:00.0
logical name: eth0
version: 03
serial: c8:0a:a9:df:ff:ad
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list rom ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8168 driverversion=8.032.00-NAPI duplex=half ip=192.168.0.167 latency=0 link=no multicast=yes port=twisted pair
resources: irq:43 ioport:3000(size=256) memory:d0004000-d0004fff memory:d0000000-d0003fff memory:d0020000-d003ffff
*-network
description: Wireless interface
product: BCM4313 802.11b/g/n Wireless LAN Controller
vendor: Broadcom Corporation
physical id: 0
bus info: pci@0000:06:00.0
logical name: wlan0
version: 01
serial: 00:26:82:93:d6:c4
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=brcmsmac driverversion=3.2.0-29-generic-pae firmware=N/A ip=192.168.0.103 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn
resources: irq:17 memory:d2100000-d2103fff
rfkill list
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
1: hp-wifi: Wireless LAN
Soft blocked: no
Hard blocked: no
2: hp-bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no
3: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
sudo lspci
00:00.0 Host bridge: Advanced Micro Devices [AMD] RS880 Host Bridge
00:01.0 PCI bridge: Hewlett-Packard Company Device 9602
00:04.0 PCI bridge: Advanced Micro Devices [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 0)
00:07.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 3)
00:09.0 PCI bridge: Advanced Micro Devices [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 4)
00:11.0 SATA controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode]
00:12.0 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.2 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.2 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:14.0 SMBus: Advanced Micro Devices [AMD] nee ATI SBx00 SMBus Controller (rev 41)
00:14.2 Audio device: Advanced Micro Devices [AMD] nee ATI SBx00 Azalia (Intel HDA) (rev 40)
00:14.3 ISA bridge: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 LPC host controller (rev 40)
00:14.4 PCI bridge: Advanced Micro Devices [AMD] nee ATI SBx00 PCI to PCI Bridge (rev 40)
00:14.5 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
00:16.0 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:16.2 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor HyperTransport Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Miscellaneous Control
00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Link Control
01:05.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI RS880M [Mobility Radeon HD 4200 Series]
01:05.1 Audio device: Advanced Micro Devices [AMD] nee ATI RS880 HDMI Audio [Radeon HD 4200 Series]
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
06:00.0 Network controller: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller (rev 01)
我在两种情况下都运行了“nmcli dev list”。
这是我在没有以太网电缆的情况下运行时得到的结果(即无线不工作)
Error: NetworkManager is not running.
这是我在无线连接正常的情况下运行该程序得到的结果:
GENERAL.DEVICE: wlan0
GENERAL.TYPE: 802-11-wireless
GENERAL.VENDOR: Broadcom Corporation
GENERAL.PRODUCT: BCM4313 802.11b/g/n Wireless LAN Controller
GENERAL.DRIVER: brcmsmac
GENERAL.HWADDR: 00:26:82:93:D6:C4
GENERAL.STATE: 100 (connected)
GENERAL.REASON: 0 (No reason given)
GENERAL.UDI: /sys/devices/pci0000:00/0000:00:09.0/0000:06:00.0/net/wlan0
GENERAL.IP-IFACE: wlan0
GENERAL.NM-MANAGED: yes
GENERAL.FIRMWARE-MISSING: no
GENERAL.CONNECTION: /org/freedesktop/NetworkManager/ActiveConnection/0
CAPABILITIES.CARRIER-DETECT: no
CAPABILITIES.SPEED: 72 Mb/s
WIFI-PROPERTIES.WEP: yes
WIFI-PROPERTIES.WPA: yes
WIFI-PROPERTIES.WPA2: yes
WIFI-PROPERTIES.TKIP: yes
WIFI-PROPERTIES.CCMP: yes
AP1.SSID: 'Rep Kaxota'
AP1.BSSID: 00:19:5B:B4:F6:21
AP1.MODE: Infrastructure
AP1.FREQ: 2437 MHz
AP1.RATE: 54 MB/s
AP1.SIGNAL: 45
AP1.SECURITY: WPA WPA2
AP1.ACTIVE: no
AP2.SSID: 'RepAmnesia'
AP2.BSSID: C8:3A:35:08:88:D8
AP2.MODE: Infrastructure
AP2.FREQ: 2412 MHz
AP2.RATE: 54 MB/s
AP2.SIGNAL: 75
AP2.SECURITY: WEP
AP2.ACTIVE: no
AP3.SSID: 'Amnesia'
AP3.BSSID: 1C:7E:E5:C2:B6:B8
AP3.MODE: Infrastructure
AP3.FREQ: 2437 MHz
AP3.RATE: 54 MB/s
AP3.SIGNAL: 79
AP3.SECURITY: WEP
AP3.ACTIVE: yes
IP4.ADDRESS[1]: ip = 192.168.xxx.xxx/24, gw = 192.168.xxx.xxx
IP4.DNS[1]: 200.204.xxx.xxx
IP4.DNS[2]: 200.204.xxx.xxx
IP4.DNS[3]: 192.168.xxx.xxx
DHCP4.OPTION[1]: expiry = 1345748643
DHCP4.OPTION[2]: broadcast_address = 192.168.xxx.xxx
DHCP4.OPTION[3]: dhcp_message_type = 5
DHCP4.OPTION[4]: routers = 192.168.xxx.xxx
DHCP4.OPTION[5]: dhcp_lease_time = 604800
DHCP4.OPTION[6]: ip_address = 192.168.xxx.xxx
DHCP4.OPTION[7]: subnet_mask = 255.255.255.0
DHCP4.OPTION[8]: dhcp_renewal_time = 604780
DHCP4.OPTION[9]: domain_name_servers = 200.204.xxx.xxx 200.204.xxx.xxx 192.168.xxx.xxx
DHCP4.OPTION[10]: dhcp_rebinding_time = 604780
DHCP4.OPTION[11]: network_number = 192.168.0.0
DHCP4.OPTION[12]: dhcp_server_identifier = 192.168.xxx.xxx
GENERAL.DEVICE: eth0
GENERAL.TYPE: 802-3-ethernet
GENERAL.VENDOR: Realtek Semiconductor Co., Ltd.
GENERAL.PRODUCT: RTL8111/8168B PCI Express Gigabit Ethernet controller
GENERAL.DRIVER: r8168
GENERAL.HWADDR: C8:0A:A9:DF:FF:AD
GENERAL.STATE: 10 (unmanaged)
GENERAL.REASON: 0 (No reason given)
GENERAL.UDI: /sys/devices/pci0000:00/0000:00:04.0/0000:02:00.0/net/eth0
GENERAL.IP-IFACE:
GENERAL.NM-MANAGED: no
GENERAL.FIRMWARE-MISSING: no
GENERAL.CONNECTION: not connected
CAPABILITIES.CARRIER-DETECT: yes
CAPABILITIES.SPEED: 100 Mb/s
WIRED-PROPERTIES.CARRIER: off
添加更多信息(这是在正常启动时拍摄的,即不使用电缆):
/etc/network/interfaces 的内容
auto eth0
iface eth0 inet dhcp
(最后一行是空的)
if-down.d 的内容(我不知道如何检查版本。我猜第一行是 v143):
" ============================================================================
" Netrw Directory Listing (netrw v143)
" /etc/network/if-down.d
" Sorted by name
" Sort sequence: [\/]$,\<core\%(\.\d\+\)\=\>,\.h$,\.c$,\.cpp$,\~\=\*$,*,\.o$,\
" Quick Help: <F1>:help -:go up dir D:delete R:rename s:sort-by x:exec
" ============================================================================
../
avahi-autoipd*
resolvconf*
upstart*
wpasupplicant@
if-up.d 的内容: " =============================================================================== " Netrw 目录列表 (netrw v143) " /etc/network/if-up.d " 按名称排序 " 排序顺序: [/]$,\,.h$,.c$,.cpp$,\~\=*$,,.o$,\ " 快速帮助: :help -:go up dir D:delete R:rename s:sort-by x:exec " ================================================================================= ../ 000resolvconf avahi-autoipd* avahi-daemon* ntpdate* upstart* wpasupplicant@
/run/network 目录的内容:
matheus@matheus-laptop:/run/network$ ls -la
total 0
drwxr-xr-x 2 root root 60 Sep 5 19:54 .
drwxr-xr-x 21 root root 720 Sep 5 19:54 ..
-rw-r--r-- 1 root root 0 Sep 5 19:54 ifstate
ifstate 的内容:空
提前谢谢您!Matheus