我有一台运行 Ubuntu 14.10 的华硕 N550JV。
我已经用 i3 替换了 Unity,从那时起就一直存在网络问题。
现在我的 WIFI 在 i3 加载后立即连接,但 1 秒后断开连接。但与此同时以太网保持连接。
一些细节:
@dev-Laptop:~$ sudo rfkill list all
0: asus-wlan: Wireless LAN
Soft blocked: yes
Hard blocked: no
1: asus-bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no
2: phy0: Wireless LAN
Soft blocked: yes
Hard blocked: yes
3: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
@dev-Laptop:~$ sudo cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto wlan0
iface wlan0 inet dhcp
wpa-ssid ssid
wpa-psk password
如果我添加rfkill unblock all
的/etc/rc.local
话,它将根本无法通过任何网络启动,尽管rfkill list all
显示一切都已畅通无阻。
在上面的配置中:
@dev-Laptop:~$ sudo ifup wlan0 -v
\Configuring interface wlan0=wlan0 (inet)
run-parts --exit-on-error --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/ethtool
run-parts: executing /etc/network/if-pre-up.d/wireless-tools
run-parts: executing /etc/network/if-pre-up.d/wpasupplicant
wpa_supplicant: wpa-driver nl80211,wext (default)
wpa_supplicant: /sbin/wpa_supplicant -s -B -P /var/run/wpa_supplicant.wlan0.pid -i wlan0 -D nl80211,wext -C /var/run/wpa_supplicant
Starting /sbin/wpa_supplicant...
wpa_supplicant: creating sendsigs omission pidfile: /run/sendsigs.omit.d/wpasupplicant.wpa_supplicant.wlan0.pid
wpa_supplicant: ctrl_interface socket located at /var/run/wpa_supplicant/wlan0
wpa_supplicant: configuring network block -- 0
wpa_supplicant: wpa-ssid "ssid" -- OK
wpa_supplicant: wpa-psk ***** -- OK
wpa_supplicant: enabling network block 0 -- OK
dhclient -1 -v -pf /run/dhclient.wlan0.pid -lf /var/lib/dhcp/dhclient.wlan0.leases wlan0
Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
RTNETLINK answers: Operation not possible due to RF-kill
Listening on LPF/wlan0/80:86:f2:52:48:15
Sending on LPF/wlan0/80:86:f2:52:48:15
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3 (xid=0x174b3ce0)
send_packet: Network is down
dhclient.c:1993: Failed to send 300 byte long packet over wlan0 interface.
receive_packet failed on wlan0: Network is down
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6 (xid=0x174b3ce0)
send_packet: Network is down
dhclient.c:1993: Failed to send 300 byte long packet over wlan0 interface.
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9 (xid=0x174b3ce0)
send_packet: Network is down
dhclient.c:1993: Failed to send 300 byte long packet over wlan0 interface.
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11 (xid=0x174b3ce0)
send_packet: Network is down
dhclient.c:1993: Failed to send 300 byte long packet over wlan0 interface.
有什么想法可以从这里开始吗?我在 Google 上搜索了一段时间,并让管理员通过 wpa_cli 建立连接,但无法持续。
该 wifi 采用 WPA/PSK2 保护。
答案1
我非常有信心,一旦启动完成,辅助模块asus_nb_wmi加载,它变成离开无线网络;请注意:
2:phy0:无线局域网 软阻止:是 硬阻止:是
让我们尝试一个驱动程序参数。请打开终端并执行:
sudo -i
echo "options asus_nb_wmi wapf=1" > /etc/modprobe.d/asus_nb_wmi.conf
modprobe -r asus_nb_wmi
modprobe asus_nb_wmi
exit
可能需要重新启动。有什么改善吗?如果没有,请重复上述顺序,但使用 4 代替 1:
sudo -i
echo "options asus_nb_wmi wapf=4" > /etc/modprobe.d/asus_nb_wmi.conf
modprobe -r asus_nb_wmi
modprobe asus_nb_wmi
exit