问题:
最近升级了我的ubuntu,之后wifi一直有问题。更新后,设置中没有wifi符号。安装驱动程序时,在sudo make
步骤中得到以下错误:
make -C /lib/modules/5.3.0-62-generic/build M=/home/soma/rtlwifi_new modules
make[1]: Entering directory '/usr/src/linux-headers-5.3.0-62-generic'
CC [M] /home/soma/rtlwifi_new/rc.o
/home/soma/rtlwifi_new/rc.c:336:11: error: initialization of 'void * (*)(struct ieee80211_hw *)' from incompatible pointer type 'void * (*)(struct ieee80211_hw *, struct dentry *)' [-Werror=incompatible-pointer-types]
336 | .alloc = rtl_rate_alloc,
| ^~~~~~~~~~~~~~
/home/soma/rtlwifi_new/rc.c:336:11: note: (near initialization for 'rtl_rate_ops.alloc')
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:290: /home/soma/rtlwifi_new/rc.o] Error 1
make[1]: *** [Makefile:1664: _module_/home/soma/rtlwifi_new] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.3.0-62-generic'
make: *** [Makefile:85: all] Error 2
sudo lshw -C network
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:02:00.0
logical name: eno1
version: 15
serial: ac:e2:d3:7a:62:cd
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8168 driverversion=8.047.02-NAPI latency=0 link=no multicast=yes port=twisted pair
resources: irq:126 ioport:4000(size=256) memory:b1104000-b1104fff memory:b1100000-b1103fff
*-network DISABLED
description: Wireless interface
product: RTL8723DE 802.11b/g/n PCIe Adapter
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:03:00.0
logical name: wlo1
version: 00
serial: b0:52:16:0a:1f:69
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=rtl8723de latency=0 multicast=yes wireless=unassociated
resources: irq:130 ioport:3000(size=256) memory:b1000000-b100ffff
*-network:0
description: Ethernet interface
physical id: 3
logical name: docker0
serial: 02:42:80:b9:bb:5a
capabilities: ethernet physical
configuration: broadcast=yes driver=bridge driverversion=2.3 firmware=N/A ip=172.17.0.1 link=no multicast=yes
*-network:1
description: Ethernet interface
physical id: 4
bus info: usb@1:3
logical name: enp0s20f0u3
serial: 0e:b6:99:2c:4b:99
capabilities: ethernet physical
configuration: broadcast=yes driver=rndis_host driverversion=22-Aug-2005 firmware=RNDIS device ip=192.168.42.232 link=yes multicast=yes
cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
cat /etc/netplan/*.yaml
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
dkms status
r8168, 8.047.02, 5.3.0-62-generic, x86_64: installed
rtl8723de, 5.1.1.8_21285.20171026_COEX20170111-1414, 5.3.0-62-generic, x86_64: installed
sudo dmidecode -s bios-version
F.24
答案1:
Kernel 5.0.0 -36 Ubuntu 18.04 rtl8723de
推荐这个,https://github.com/smlinux/rtl8723de
答案2:
BIOS
HP Notebook-15-bs179tx
BIOS版本F.24.
有新的BIOS,版本F.65 Rev,A, dated Jan 10, 2020,可以在这里下载。
注:在更新BIOS之前有良好的备份。
相关文章