我正在使用带有 USB WiFi 模块 4 的 Odroid XU4 和 Ubuntu 16.04 的官方 Odroid 发行版。
如果我sudo rfkill unblock wifi
在终端中输入内容,一切都会正常工作,但我希望这台机器能够无头且不受束缚地运行,所以这不是一个解决方案。
我也尝试过将 unblock 命令添加为服务或添加到 /etc/rc.local。但都没有成功。
来自系统日志的一些可疑行:
NetworkManager[678]: <info> [1525808228.9431] rfkill0: found WiFi radio killswitch (at /sys/devices/platform/soc/12110000.usb/usb1/1-1/1-1:1.0/ieee80211/phy0/rfkill0) (driver rt2800usb)
NetworkManager[759]: <info> [1525809316.1008] (wlan0): using nl80211 for WiFi device control
NetworkManager[759]: <info> [1525809321.7019] manager: WiFi hardware radio set disabled
NetworkManager[759]: <info> [1525809321.7114] manager: WiFi now disabled by radio killswitch
据我所知,XU4 没有用于禁用 WiFi 的硬件开关。
$ lsmod
Module Size Used by
fuse 86016 3
cpufreq_conservative 16384 0
cpufreq_userspace 16384 0
cpufreq_powersave 16384 0
rt2800usb 28672 0
rt2800lib 98304 1 rt2800usb
rt2x00usb 20480 1 rt2800usb
rt2x00lib 45056 3 rt2800lib,rt2800usb,rt2x00usb
mac80211 618496 3 rt2800lib,rt2x00lib,rt2x00usb
cfg80211 479232 2 rt2x00lib,mac80211
rfkill 20480 3 cfg80211
spidev 20480 0
input_leds 16384 0
evdev 24576 4
spi_s3c64xx 20480 0
gpio_keys 20480 0
uio_pdrv_genirq 16384 0
extcon_usb_gpio 16384 0
uio 16384 1 uio_pdrv_genirq
exynos_gpiomem 16384 0
ipv6 380928 46
usbhid 45056 0
$ sudo lshw -class network
USB
*-network:0
description: Ethernet interface
physical id: 7
logical name: eth0
serial: 00:1e:06:32:7c:fd
size: 1Gbit/s
capacity: 1Gbit/s
capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8152 driverversion=v1.09.9 duplex=full ip=[snip] link=yes multicast=yes port=MII speed=1Gbit/s
*-network:1 DISABLED
description: Wireless interface
physical id: 8
bus info: usb@1:1
logical name: wlan0
serial: 70:f1:1c:03:b3:d1
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=rt2800usb driverversion=4.14.35-128 firmware=0.29 ip=[snip] link=no multicast=yes wireless=IEEE 802.11
$ lsusb
Bus 006 Device 002: ID 0bda:8153 Realtek Semiconductor Corp.
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 05e3:0616 Genesys Logic, Inc. hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID 046d:c05a Logitech, Inc. M90/M100 Optical Mouse
Bus 003 Device 003: ID 413c:2105 Dell Computer Corp. Model L100 Keyboard
Bus 003 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 148f:5572 Ralink Technology, Corp. RT5572 Wireless Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
答案1
我使用显示器和键盘登录,发现 GUI 中有一个未选中的“启用 WiFi”菜单项。检查该菜单项似乎解决了问题。nmcli r wifi on
如果以后其他人遇到这个问题,我似乎也可以在命令行上使用 来完成此操作。