![断电后没有 D-Link wifi](https://linux22.com/image/928054/%E6%96%AD%E7%94%B5%E5%90%8E%E6%B2%A1%E6%9C%89%20D-Link%20wifi.png)
当我尝试使用 chili555 的神奇重载功能(之前曾奏效)时,我的 Dlink 加密狗失去了 wifi 连接,例如:
cd rtl8812AU_8821AU_linux
make clean
make ( **It messes up here** )
$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.4.0-116-generic/build M=/home/joanne/rtl8812AU_8821AU_linux modules
make[1]: *** /lib/modules/4.4.0-116-generic/build: No such file or directory. Stop.
Makefile:1049: recipe for target 'modules' failed
make: *** [modules] Error 2
以下是一些查询结果:
$ lshw
*-usb:2 UNCLAIMED
description: Generic USB device
product: 802.11n WLAN Adapter
vendor: Realtek
physical id: 3
bus info: usb@2:1.3
version: 2.00
serial: 00e04c000001
capabilities: usb-2.10
configuration: maxpower=500mA speed=480Mbit
$ lspci
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:16.3 Serial controller: Intel Corporation 6 Series/C200 Series Chipset Family KT Controller (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (Lewisville) (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b4)
00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 (rev b4)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a4)
00:1f.0 ISA bridge: Intel Corporation Q65 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port Desktop SATA AHCI Controller (rev 04)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 04)
$ inxi
CPU~Quad core Intel Core i5-2400 (-MCP-) speed/max~1600/3400 MHz Kernel~4.4.0-116-generic x86_64 Up~2:07 Mem~1911.9/7862.7MB HDD~250.1GB(9.6% used) Procs~259 Client~Shell inxi~2.3.56
$ nmcli device
DEVICE TYPE STATE CONNECTION
eno1 ethernet connected Auto Ethernet
lo loopback unmanaged --
$ sudo lshw -C network
[sudo] password for joanne:
*-network
description: Ethernet interface
product: 82579LM Gigabit Network Connection (Lewisville)
vendor: Intel Corporation
physical id: 19
bus info: pci@0000:00:19.0
logical name: eno1
version: 04
serial: 78:2b:cb:a9:18:b3
size: 100Mbit/s
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k duplex=full firmware=0.13-4 ip=192.168.0.106 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
resources: irq:27 memory:e1a00000-e1a1ffff memory:e1a80000-e1a80fff ioport:3080(size=32)
$ lspci
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:16.3 Serial controller: Intel Corporation 6 Series/C200 Series Chipset Family KT Controller (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (Lewisville) (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b4)
00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 (rev b4)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a4)
00:1f.0 ISA bridge: Intel Corporation Q65 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port Desktop SATA AHCI Controller (rev 04)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 04)
$ lsusb
Bus 002 Device 006: ID 0e8d:2008 MediaTek Inc.
Bus 002 Device 005: ID 2001:3314 D-Link Corp.
Bus 002 Device 004: ID 04f2:0760 Chicony Electronics Co., Ltd Acer KU-0760 Keyboard
Bus 002 Device 003: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
$ nmcli g
STATE CONNECTIVITY WIFI-HW WIFI WWAN-HW WWAN
connected full enabled enabled enabled enabled
$ nmcli g
STATE CONNECTIVITY WIFI-HW WIFI WWAN-HW WWAN
connected full enabled enabled enabled enabled
joanne@joanne-OptiPlex-790:~$ nmcli n
enabled
joanne@joanne-OptiPlex-790:~$ nmcli r
WIFI-HW WIFI WWAN-HW WWAN
enabled enabled enabled enabled
joanne@joanne-OptiPlex-790:~$ nmcli c
NAME UUID TYPE DEVICE
Auto Ethernet 03d1561f-d6d4-4752-bd31-9e5af210bf3e ethernet eno1
MIFI2-MXAM 9fd213c2-58da-418d-aa27-ad97fca962b7 wifi --
PrivatVPN-US-LA-TUN-1194 b885f4df-bd81-4321-ac06-743c094508e9 vpn --
RCMP 1 6ada3fdc-1731-43ce-9248-475020d208fa wifi --
RCMP 2 82e3482a-a767-4afb-a7a1-b19e58177520 wifi --
joanne@joanne-OptiPlex-790:~$ nmcli d
DEVICE TYPE STATE CONNECTION
eno1 ethernet connected Auto Ethernet
我完全不知道该如何继续下去。
答案1
您在编译驱动程序时似乎遇到了麻烦?请尝试以下步骤:
将档案下载到临时目录。
# mkdir -p /tmp/t4u
# cd /tmp/t4u
# wget https://github.com/abperiasamy/rtl8812AU_8821AU_linux/archive/master.zip
解压缩
# unzip master.zip
# cd rtl8812AU_8821AU_linux-master
安装内核头文件
# sudo apt install linux-headers-$(uname -r)
从源代码编译并安装
# make
# sudo make install
加载模块
# sudo modprobe -a rtl8812au
此过程在 GitHub >>> 上有概述https://github.com/abperiasamy/rtl8812AU_8821AU_linux