0bda:d723 Realtek Semiconductor Corp. 802.11n WLAN 适配器在 Ubuntu 20.04 中不起作用

0bda:d723 Realtek Semiconductor Corp. 802.11n WLAN 适配器在 Ubuntu 20.04 中不起作用

我已经在 umax 笔记本电脑上安装了 Ubuntu 20.04,但找不到任何适用的驱动程序0bda:d723 Realtek Semiconductor Corp. 802.11n WLAN Adapter

lsusb 显示该设备,但我找不到任何 wifi 网络适配器

lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0c45:6310 Microdia Sonix USB 2.0 Camera
Bus 001 Device 003: ID 0bda:d723 Realtek Semiconductor Corp. 802.11n WLAN Adapter
Bus 001 Device 002: ID 05e3:0751 Genesys Logic, Inc. microSD Card Reader
Bus 001 Device 006: ID 05c6:f00e Qualcomm, Inc. Redmi 9T
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

我尝试过 ndiswrapper,但是它对我来说不起作用:Ubuntu 20.04:我无法编译最新的 ndiswrapper

我尝试过这里的其他解决方案(使用类似的 wifi 卡):为 Realtek Semiconductor RTL8723DE 设备安装 Wi-Fi 驱动程序 [10ec:d723]

    sudo dkms install rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414
    
    Kernel preparation unnecessary for this kernel.  Skipping...
    
    Building module:
    cleaning build area...
    'make' all KVER=5.11.0-43-generic...(bad exit status: 2)
    ERROR (dkms apport): binary package for rtl8723de: 5.1.1.8_21285.20171026_COEX20170111-1414 not found
    Error! Bad return status for module build on kernel: 5.11.0-43-generic (x86_64)
    Consult /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/make.log for more information.
    tomi@tomi-Visionbook-14Wr:~$ cat /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/make.log
    DKMS make.log for rtl8723de-5.1.1.8_21285.20171026_COEX20170111-1414 for kernel 5.11.0-43-generic (x86_64)
    2021. dec. 29., szerda, 10:56:39 CET
    make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.11.0-43-generic/build M=/var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build  modules
    make[1]: Entering directory '/usr/src/linux-headers-5.11.0-43-generic'
      CC [M]  /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/core/rtw_cmd.o
    In file included from /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/osdep_service.h:42,
                     from /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/drv_types.h:32,
                     from /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/core/rtw_cmd.c:22:
    /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/osdep_service_linux.h: In function ‘_init_timer’:
    /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/osdep_service_linux.h:287:8: error: ‘_timer’ {aka ‘struct timer_list’} has no member named ‘data’
      287 |  ptimer->data = (unsigned long)cntx;
          |        ^~
    /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/osdep_service_linux.h:288:2: error: implicit declaration of function ‘init_timer’; did you mean ‘_init_timer’? [-Werror=implicit-function-declaration]
      288 |  init_timer(ptimer);
          |  ^~~~~~~~~~
          |  _init_timer
    In file included from /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/drv_types.h:35,
                     from /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/core/rtw_cmd.c:22:
    /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/wifi.h: At top level:
    /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/wifi.h:1006: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
     1006 | #define IEEE80211_MAX_AMPDU_BUF 0x40
          | 
    In file included from /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/osdep_service_linux.h:86,
                     from /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/osdep_service.h:42,
                     from /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/drv_types.h:32,
                     from /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/core/rtw_cmd.c:22:
    ./include/linux/ieee80211.h:1657: note: this is the location of the previous definition
     1657 | #define IEEE80211_MAX_AMPDU_BUF  0x100
          | 
    cc1: some warnings being treated as errors
    make[2]: *** [scripts/Makefile.build:288: /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/core/rtw_cmd.o] Error 1
    make[1]: *** [Makefile:1849: /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build] Error 2
    make[1]: Leaving directory '/usr/src/linux-headers-5.11.0-43-generic'
    make: *** [Makefile:1884: modules] Error 2

ubuntu 20.04 中有可以运行的驱动程序吗?

答案1

由于您之前已经尝试过其他几个驱动程序,因此假设您已经安装了所有先决条件。

通过以太网、网络共享或任何可能的方式建立有效的互联网连接,打开终端并执行以下操作:

git clone https://github.com/lwfinger/rtw88.git
cd rtw88
make
sudo make install
sudo modprobe rtw_8723de

您将需要禁用安全启动。

每次 Update Manager 提供较新的内核版本时,都必须重新安装此驱动程序。在请求的重新启动后,通过以太网、网络共享或任何可能的方式建立临时互联网连接,执行以下操作:

cd rtw88
make clean
git pull
make
sudo make install
sudo modprobe rtw_8723de

您的无线网络应该可以再次使用。请保留 rtw88 文件和这些说明以供使用。

答案2

您需要一个不同的驱动程序,在终端检查,mokutil --sb-state因为需要禁用安全启动才能加载驱动程序,然后在终端

sudo apt install git dkms
git clone https://github.com/lwfinger/rtl8723du.git
sudo dkms add rtl8723du
sudo dkms install rtl8723du/0.1

重启

好的,dkms.conf 存在问题,因此请执行此操作sudo dkms remove rtl8723du/0.1 --all,然后sudo rm -r /usr/src/rtl8723du-0.1进入主目录中的 rtl8723du 目录,双击 dkms.conf 并将其粘贴到

PACKAGE_NAME="rtl8723du"
PACKAGE_VERSION=0.1
MAKE="'make' all KVER=${kernelver}"
CLEAN="make -C $kernel_source_dir clean"
BUILT_MODULE_NAME[0]="8723du"
DEST_MODULE_LOCATION[0]="/updates"
REMAKE_INITRD=no
AUTOINSTALL=yes

保存并退出,然后在终端中执行

sudo dkms add rtl8723du
sudo dkms install rtl8723du/0.1

如果没有错误则重新启动

答案3

卡布洛苏兹具有必要的驱动程序:

mokutil --sb-state # check the output for "SecureBoot disabled", disable Secure Boot if not present 

sudo add-apt-repository ppa:kelebek333/kablosuz
sudo apt update
sudo apt install rtl8723du-dkms
# reboot the computer here
sudo modprobe 8723du

相关内容