日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 人文社科 > 生活经验 >内容正文

生活经验

【Linux驱动】ThinkPad笔记本wifi模块rtl8821ce在ubuntu16.04的驱动(默认没有)

發布時間:2023/11/27 生活经验 60 豆豆
生活随笔 收集整理的這篇文章主要介紹了 【Linux驱动】ThinkPad笔记本wifi模块rtl8821ce在ubuntu16.04的驱动(默认没有) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

0、wifi模塊型號

在win10下設備管理器中查看,型號為:Realtek 8821CE Wireless LAN 802.11ac PCI-E NIC

1、問題描述

在ThinkPad上安裝win10+ubuntu16.04雙系統后,在win10下wifi可以正常使用,但是在ubuntu下沒有wifi列表。

2、原因查找

2.1 查看wifi狀態

使用rfkill查看wifi和藍牙狀態,發現只有藍牙設備(Bluetooth)沒有wifi(Wireless LAN)

$ rfkill list
0: tpacpi_bluetooth_sw: BluetoothSoft blocked: noHard blocked: no
1: hci0: BluetoothSoft blocked: yesHard blocked: no

正常情況下應該有wifi

2: phy0: Wireless LANSoft blocked: noHard blocked: no

2.2 查看驅動是否安裝

使用lshw -C network查看驅動是否安裝,輸出信息如下,其中network UNCLAIMED表示沒有安裝驅動。

$ lshw -C network
WARNING: you should run this program as super-user.*-network               description: Ethernet interfaceproduct: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controllervendor: Realtek Semiconductor Co., Ltd.physical id: 0bus info: pci@0000:03:00.0logical name: enp3s0version: 10size: 100Mbit/scapacity: 1Gbit/swidth: 64 bitsclock: 33MHzcapabilities: bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiationconfiguration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168g-3_0.0.1 04/23/13 ip=192.168.31.120 latency=0 link=yes multicast=yes port=MII speed=100Mbit/sresources: irq:16 ioport:c000(size=256) memory:f1304000-f1304fff memory:f1300000-f1303fff*-network UNCLAIMEDdescription: Network controllerproduct: RTL8821CE 802.11ac PCIe Wireless Network Adaptervendor: Realtek Semiconductor Co., Ltd.physical id: 0bus info: pci@0000:05:00.0version: 00width: 64 bitsclock: 33MHzcapabilities: cap_listconfiguration: latency=0resources: ioport:b000(size=256) memory:f1100000-f110ffff

3、安裝驅動

3.1解壓后修改Makefile

驅動源碼下載:https://download.csdn.net/download/u010168781/33182699
解壓后,進入源碼目錄,將Makefile中第152行中代表頂層目錄打變量TopDIR,根據改成源碼所在目錄。

export TopDIR ?= $(srctree)/drivers/net/wireless/rtl8821ce

3.2編譯、安裝、加載驅動:

make
sudo make install
sudo modprobe -a 8821ce

加載后是否要重啟?
本人的電腦沒有重啟,也沒有重新啟動網絡管理(service network-manager restart);
根據自己的情況,如果不行,可以嘗試重啟網絡;還不行就重啟電腦。

4、驗證

使用命令lshw -C network查看驅動是否安裝成功,沒有UNCLAIMED字樣,說明安裝成功

$ sudo lshw -C network*-network               description: Ethernet interfaceproduct: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controllervendor: Realtek Semiconductor Co., Ltd.physical id: 0bus info: pci@0000:03:00.0logical name: enp3s0version: 10serial: e8:6a:64:d7:1b:53size: 10Mbit/scapacity: 1Gbit/swidth: 64 bitsclock: 33MHzcapabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiationconfiguration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8168g-3_0.0.1 04/23/13 latency=0 link=no multicast=yes port=MII speed=10Mbit/sresources: irq:16 ioport:c000(size=256) memory:f1304000-f1304fff memory:f1300000-f1303fff*-networkdescription: Wireless interfaceproduct: RTL8821CE 802.11ac PCIe Wireless Network Adaptervendor: Realtek Semiconductor Co., Ltd.physical id: 0bus info: pci@0000:05:00.0logical name: wlp5s0version: 00serial: 3c:91:80:41:9e:4bwidth: 64 bitsclock: 33MHzcapabilities: pm msi pciexpress bus_master cap_list ethernet physical wirelessconfiguration: broadcast=yes driver=rtl8821ce ip=192.168.31.142 latency=0 multicast=yes wireless=IEEE 802.11bgnresources: irq:141 ioport:b000(size=256) memory:f1100000-f110ffff

再次使用== rfkill list==來查看wifi狀況

$ rfkill list
0: tpacpi_bluetooth_sw: BluetoothSoft blocked: noHard blocked: no
1: hci0: BluetoothSoft blocked: yesHard blocked: no
2: phy0: Wireless LANSoft blocked: noHard blocked: no

5、嘗試過的,無效打方法如下

sudo apt-get purge bcmwl-kernel-source(無法解決)

總結

以上是生活随笔為你收集整理的【Linux驱动】ThinkPad笔记本wifi模块rtl8821ce在ubuntu16.04的驱动(默认没有)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

歡迎分享!

轉載請說明來源于"生活随笔",并保留原作者的名字。

本文地址:【Linux驱动】ThinkPad笔记本wifi模块rtl8