Very slow wifi RTL8723DE

Hello, everyone!

After installing Manjaro xfce, I immediately noticed that internet speed via wifi was a lot slower than on my Windows partition (I’m dual booting).

Running speed tests showed that on Windows it’s ~30-40 Mbit/s, whereas on Manjaro it was ~1-2 Mbit/s.

inxi --admin --verbosity=7 --filter --no-host --width

System:
  Kernel: 5.15.28-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 11.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=1f82b52e-3ea1-4aa2-b2f7-fd13c2679f47 rw quiet apparmor=1
    security=apparmor udev.log_priority=3
  Desktop: Xfce v: 4.16.0 tk: Gtk v: 3.24.29 info: xfce4-panel wm: xfwm
    v: 4.16.1 vt: 7 dm: LightDM v: 1.30.0 Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: HP product: HP Laptop 15-bw0xx v: Type1ProductConfigId
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: HP model: 8333 v: 28.33 serial: <superuser required> UEFI: Insyde
    v: F.30 date: 05/17/2018
Battery:
  ID-1: BAT1 charge: 38.5 Wh (100.0%) condition: 38.5/41.6 Wh (92.5%)
    volts: 16.7 min: 14.6 model: Hewlett-Packard PABAS0241231 type: Li-ion
    serial: <filter> status: full
Memory:
  RAM: total: 5.39 GiB used: 1.24 GiB (22.9%)
  RAM Report:
    permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: AMD A12-9720P RADEON R7 12 COMPUTE CORES 4C+8G bits: 64
    type: MT MCP arch: Excavator family: 0x15 (21) model-id: 0x65 (101)
    stepping: 1 microcode: 0x600611A
  Topology: cpus: 1x cores: 4 smt: enabled cache: L1: 320 KiB
    desc: d-4x32 KiB; i-2x96 KiB L2: 2 MiB desc: 2x1024 KiB
  Speed (MHz): avg: 1777 high: 2317 min/max: 1400/2700 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 1438 2: 2317
    3: 1867 4: 1487 bogomips: 21571
  Flags: 3dnowprefetch abm acc_power aes aperfmperf apic arat avic avx avx2
    bmi1 bmi2 bpext clflush cmov cmp_legacy constant_tsc cpb cpuid cr8_legacy
    cx16 cx8 de decodeassists extapic extd_apicid f16c flushbyasid fma fma4
    fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb ibs lahf_lm lbrv lm lwp mca
    mce misalignsse mmx mmxext monitor movbe msr mtrr mwaitx nodeid_msr
    nonstop_tsc nopl npt nrip_save nx osvw overflow_recov pae pat pausefilter
    pclmulqdq pdpe1gb perfctr_core perfctr_nb pfthreshold pge pni popcnt pse
    pse36 ptsc rdtscp rep_good sep skinit smep ssbd sse sse2 sse4_1 sse4_2
    sse4a ssse3 svm svm_lock syscall tbm tce topoext tsc tsc_scale vgif
    vmcb_clean vme vmmcall wdt xop xsave xsaveopt
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl and seccomp
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2
    mitigation: Retpolines, IBPB: conditional, STIBP: disabled, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Wani [Radeon R5/R6/R7 Graphics] vendor: Hewlett-Packard
    driver: amdgpu v: kernel ports: active: eDP-1 empty: DP-1,HDMI-A-1
    bus-ID: 00:01.0 chip-ID: 1002:9874 class-ID: 0300
  Device-2: AMD Topaz XT [Radeon R7 M260/M265 / M340/M360 M440/M445 530/535
    620/625 Mobile]
    vendor: Hewlett-Packard driver: amdgpu v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 4 link-max: gen: 3 speed: 8 GT/s lanes: 8
    bus-ID: 05:00.0 chip-ID: 1002:6900 class-ID: 0380
  Device-3: Realtek HP Webcam type: USB driver: uvcvideo bus-ID: 2-1:2
    chip-ID: 0bda:58ed class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 1.21.1.3 compositor: xfwm v: 4.16.1 driver:
    X: loaded: amdgpu unloaded: modesetting alternate: fbdev,vesa gpu: amdgpu
    display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 mapped: eDP model: BOE Display 0x0687 built: 2015
    res: 1920x1080 hz: 60 dpi: 142 gamma: 1.2 size: 344x193mm (13.54x7.6")
    diag: 394mm (15.5") ratio: 16:9 modes: max: 1920x1080 min: 640x480
  Message: Unable to show GL data. Required tool glxinfo missing.
Audio:
  Device-1: AMD Kabini HDMI/DP Audio vendor: Hewlett-Packard
    driver: snd_hda_intel v: kernel bus-ID: 00:01.1 chip-ID: 1002:9840
    class-ID: 0403
  Device-2: AMD Family 15h Audio vendor: Hewlett-Packard
    driver: snd_hda_intel v: kernel bus-ID: 00:09.2 chip-ID: 1022:157a
    class-ID: 0403
  Sound Server-1: ALSA v: k5.15.28-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.20 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Hewlett-Packard driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: 4000 bus-ID: 01:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp1s0 state: down mac: <filter>
  Device-2: Realtek RTL8723DE 802.11b/g/n PCIe Adapter
    vendor: Hewlett-Packard driver: rtw_8723de v: N/A modules: rtw88_8723de
    pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 3000 bus-ID: 02:00.0
    chip-ID: 10ec:d723 class-ID: 0280
  IF: wlp2s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: Realtek Bluetooth 4.2 Adapter type: USB driver: btusb v: 0.8
    bus-ID: 1-1.4:3 chip-ID: 0bda:b009 class-ID: e001 serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 465.76 GiB used: 8.59 GiB (1.8%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 870 EVO 500GB
    size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 1B6Q scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 265.76 GiB size: 260.53 GiB (98.03%) used: 8.56 GiB (3.3%)
    fs: ext4 dev: /dev/sda4 maj-min: 8:4 label: N/A
    uuid: 1f82b52e-3ea1-4aa2-b2f7-fd13c2679f47
  ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%)
    used: 25.3 MiB (26.4%) fs: vfat dev: /dev/sda1 maj-min: 8:1 label: N/A
    uuid: BA5E-79EA
Swap:
  Alert: No swap data was found.
Unmounted:
  ID-1: /dev/sda2 maj-min: 8:2 size: 16 MiB fs: <superuser required>
    label: N/A uuid: N/A
  ID-2: /dev/sda3 maj-min: 8:3 size: 199.89 GiB fs: ntfs label: N/A
    uuid: A4DE82A6DE826FFA
USB:
  Hub-1: 1-0:1 info: Full speed or root hub ports: 2 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-2: 1-1:2 info: Advanced Micro Devices Root Hub ports: 4 rev: 2.0
    speed: 480 Mb/s power: 100mA chip-ID: 0438:7900 class-ID: 0900
  Device-1: 1-1.4:3 info: Realtek Bluetooth 4.2 Adapter type: Bluetooth
    driver: btusb interfaces: 2 rev: 1.1 speed: 12 Mb/s power: 500mA
    chip-ID: 0bda:b009 class-ID: e001 serial: <filter>
  Hub-3: 2-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 2-1:2 info: Realtek HP Webcam type: Video driver: uvcvideo
    interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 0bda:58ed
    class-ID: 0e02 serial: <filter>
  Device-2: 2-4:3 info: A4Tech USB Device type: Keyboard,Mouse,HID
    driver: hid-generic,usbhid interfaces: 3 rev: 1.1 speed: 12 Mb/s
    power: 100mA chip-ID: 09da:5f0f class-ID: 0300
  Hub-4: 3-0:1 info: Super-speed hub ports: 4 rev: 3.0 speed: 5 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 77.0 C mobo: 20.0 C
  Fan Speeds (RPM): N/A
  GPU: device: amdgpu temp: 54.0 C device: amdgpu temp: 76.0 C
Info:
  Processes: 221 Uptime: 0m wakeups: 1 Init: systemd v: 250 tool: systemctl
  Compilers: gcc: 11.2.0 clang: 13.0.1 Packages: pacman: 1099 lib: 320
  flatpak: 0 Shell: Bash v: 5.1.16 running-in: xfce4-terminal inxi: 3.3.14

Any help is very appreciated.

EDIT
I’ve found solution here

cat /etc/modprobe.d/rtw_8723de.conf 
options rtw_8723de swcrypto=1 # enables software crypto
options rtw_8723de power_save=0 # disables power management
options rtw_8723de 11n_disable=8 # disables 11n connections
options rtw_8723de disable_11ac=1 # disables 11ac connections
options rtw_8723de disable_11ax=1 # disables 11ax connections
cat /etc/NetworkManager/conf.d/wifi-powersave-off.conf 
[connection]
wifi.powersave = 2

Not sure what exactly does the trick, but it works.

Welcome to Manjaro! :smiling_face_with_three_hearts:

  1. Please read the information behind this link. It will help you to post necessary information. [HowTo] Provide System Information
  2. Please press the three dots below your post and then press the :pencil2:
  • If you give us information about your system, we can see what we’re talking about and make better suggestions.
  • You can do this by using inxi in a terminal or in console.
inxi --admin --verbosity=7 --filter --no-host --width
  • Personally identifiable information such as serial numbers and MAC addresses are filtered out by this command
  • Presenting the information in this way allows everyone to be familiar with the format and quickly find the items they need without missing anything.
  1. Copy the output from inxi (including the command) and paste it into your post.
  • To make it more readable, add 3 backticks ``` on an extra line before and after the pasted text.

Hi @neotune, and welcome!

:point_up: This, and have you installed/tried the rtl8723de-dkms-git from the AUR?

pamac build rtl8723de-dkms-git

Maybe it works? Hopefully it does.

Note:

I don’t really like suggesting -git packages, because they’re usually development versions and thus more prone to breakage. But that’s all dkms package I could find for this adapter in the AUR. So if you stick with it, remember to check it every update.

Hi, I tried installing rtl8723de-dkms-git as you suggested. It doesn’t seem to install properly. No change in download speed either.

Also I forgot to mention, the upload speed is fine.

pamac build rtl8723de-dkms-git
Preparing...
Cloning rtl8723de-dkms-git build files...
Generating rtl8723de-dkms-git information...
Checking rtl8723de-dkms-git dependencies...
Warning: rtl8723de-dkms-git-7b7fc22-1 is up to date -- reinstalling
Resolving dependencies...
Checking inter-conflicts...

To build (1):
  rtl8723de-dkms-git  7b7fc22-1               AUR


Edit build files : [e] 
Apply transaction ? [e/y/N] y


Building rtl8723de-dkms-git...
==> Making package: rtl8723de-dkms-git 7b7fc22-1 (Thu 31 Mar 2022 02:14:07 MSK)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating rtl8723de git repo...
Fetching origin
  -> Found dkms.conf
==> Validating source files with md5sums...
    rtl8723de ... Skipped
    dkms.conf ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of rtl8723de git repo...
Cloning into 'rtl8723de'...
done.
==> Starting build()...
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "rtl8723de-dkms-git"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: rtl8723de-dkms-git 7b7fc22-1 (Thu 31 Mar 2022 02:14:22 MSK)
==> Cleaning up...

Checking keyring...                                                        [1/1]
Checking integrity...                                                      [1/1]
Loading package files...                                                   [1/1]
Checking file conflicts...                                                 [1/1]
Checking available disc space...                                           [1/1]
Running pre-transaction hooks...
Creating Timeshift snapshot before upgrade...                              [1/2]
==> skipping timeshift-autosnap due skipRsyncAutosnap in /etc/timeshift-autosnap.conf set to TRUE.
Remove upgraded DKMS modules                                               [2/2]
==> dkms remove rtl8723de-5.1.1.8_21285.20171026_COEX20170111/1414
Reinstalling rtl8723de-dkms-git (7b7fc22-1)...                             [1/1]
Running post-transaction hooks...
Arming ConditionNeedsUpdate...                                             [1/2]
Install DKMS modules                                                       [2/2]
==> dkms install --no-depmod rtl8723de-5.1.1.8_21285.20171026_COEX20170111/1414 -k 5.15.28-1-MANJARO
Error! Bad return status for module build on kernel: 5.15.28-1-MANJARO (x86_64)
Consult /var/lib/dkms/rtl8723de-5.1.1.8_21285.20171026_COEX20170111/1414/build/make.log for more information.
==> WARNING: `dkms install --no-depmod rtl8723de-5.1.1.8_21285.20171026_COEX20170111/1414 -k 5.15.28-1-MANJARO' exited 10
Transaction successfully finished.

Hi @neotune I think you need to install kernel headers first if they weren’t before building the package. Do it for all the kernels you’ve installed.

sudo pacman -S linux515-headers

Hi, @raguse I have already installed them. No change in speed

Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Hewlett-Packard driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: 4000 bus-ID: 01:00.0 chip-ID: 10ec:8168 class-ID: 0200
  Device-2: Realtek RTL8723DE 802.11b/g/n PCIe Adapter
    vendor: Hewlett-Packard driver: rtw_8723de v: N/A modules: rtw88_8723de
    pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 3000 bus-ID: 02:00.0
    chip-ID: 10ec:d723 class-ID: 0280

To install most, if not any package you need the installed kernel’s headers, and this

sort of says they’re missing. Install the headers for all installed kernels using:

pamac install $(pamac list --quiet --installed | grep "^linux[0-9]*[-rt]*$" | awk '{print $1"-headers"}' ORS=' ')

And try building the drivers again:

pamac build rtl8723de-dkms-git

And see what happens.

I have only one kernel installed

mhwd-kernel -li

Currently running: 5.15.28-1-MANJARO (linux515)
The following kernels are installed in your system:
   * linux515

pamac install $(pamac list --quiet --installed | grep "^linux[0-9]*[-rt]*$" | awk '{print $1"-headers"}' ORS=' ')

Preparing...
Warning: linux515-headers-5.15.28-1 is up to date -- skipping
Nothing to do.
Transaction successfully finished.

pamac build rtl8723de-dkms-git

Preparing...
Cloning rtl8723de-dkms-git build files...
Generating rtl8723de-dkms-git information...
Checking rtl8723de-dkms-git dependencies...
Warning: rtl8723de-dkms-git-7b7fc22-1 is up to date -- reinstalling
Resolving dependencies...
Checking inter-conflicts...

To build (1):
  rtl8723de-dkms-git  7b7fc22-1               AUR


Edit build files : [e] 
Apply transaction ? [e/y/N] y


Building rtl8723de-dkms-git...
==> Making package: rtl8723de-dkms-git 7b7fc22-1 (Thu 31 Mar 2022 14:05:44 MSK)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating rtl8723de git repo...
Fetching origin
  -> Found dkms.conf
==> Validating source files with md5sums...
    rtl8723de ... Skipped
    dkms.conf ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of rtl8723de git repo...
Cloning into 'rtl8723de'...
done.
==> Starting build()...
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "rtl8723de-dkms-git"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: rtl8723de-dkms-git 7b7fc22-1 (Thu 31 Mar 2022 14:06:00 MSK)
==> Cleaning up...

Checking keyring...                                                                                                                                      [1/1]
Checking integrity...                                                                                                                                    [1/1]
Loading package files...                                                                                                                                 [1/1]
Checking file conflicts...                                                                                                                               [1/1]
Checking available disc space...                                                                                                                         [1/1]
Running pre-transaction hooks...
Creating Timeshift snapshot before upgrade...                                                                                                            [1/2]
==> skipping timeshift-autosnap due skipRsyncAutosnap in /etc/timeshift-autosnap.conf set to TRUE.
Remove upgraded DKMS modules                                                                                                                             [2/2]
==> dkms remove rtl8723de-5.1.1.8_21285.20171026_COEX20170111/1414
Reinstalling rtl8723de-dkms-git (7b7fc22-1)...                                                                                                           [1/1]
Running post-transaction hooks...
Arming ConditionNeedsUpdate...                                                                                                                           [1/2]
Install DKMS modules                                                                                                                                     [2/2]
==> dkms install --no-depmod rtl8723de-5.1.1.8_21285.20171026_COEX20170111/1414 -k 5.15.28-1-MANJARO
Error! Bad return status for module build on kernel: 5.15.28-1-MANJARO (x86_64)
Consult /var/lib/dkms/rtl8723de-5.1.1.8_21285.20171026_COEX20170111/1414/build/make.log for more information.
==> WARNING: `dkms install --no-depmod rtl8723de-5.1.1.8_21285.20171026_COEX20170111/1414 -k 5.15.28-1-MANJARO' exited 10
Transaction successfully finished.

So please provide a new

sudo inxi --admin --verbosity=7 --filter --no-host --width

after a reboot, please.

Apparently ipx is not supported since kernel 5.15

/var/lib/dkms/rtl8723de-5.1.1.8_21285.20171026_COEX20170111/1414/build/core/rtw_br_ext.c:25:18: fatal error: net/ipx.h: No such file or directory
   25 |         #include <net/ipx.h>
      |                  ^~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:277: /var/lib/dkms/rtl8723de-5.1.1.8_21285.20171026_COEX20170111/1414/build/core/rtw_br_ext.o] Error 1
make[1]: *** [Makefile:1868: /var/lib/dkms/rtl8723de-5.1.1.8_21285.20171026_COEX20170111/1414/build] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.15.28-1-MANJARO/build'
make: *** [Makefile:1886: modules] Error 2

I was wondering, since I’ve got similar issues, are there any similar commands/options for my driver like in this post?

OK, the way I see it, you could either:

  • Install and use an older kernel then. 5.10 is also recent as well as LTS; or
  • buy and use a newer, different dongle and see what happens.

Edit:

I have NO other ideas.

Thanks for your help, I hope there’s a simpler option)

1 Like

@neotune I have no further clue, however, some more info that could help:

  • Is there a choice 2.4 or 5 GHz on your Wifi and have you tried speed for both?

In AUR there is alternative package RTW88-dkms-git. According to github page it supports (read github and archlinux AUR comments first to see if it could be solution for you):

This repository includes drivers for the following cards:
RTL8822BE, RTL8822CE, RTL8821CE, and RTL8723DE

I might get blacklisted for posting this other forum link ( =:| I hope not) but please also read it.

Another solution after trying above does not help could be to try kernel internally provided driver rtl8xxx . To do so you would need to blacklist the current installed one and enforce rtl8xxx. I can’t help you with that but maybe someone more knowledgeable can help by picking up this thread. Thanks.

Thanks, for your input. See the first post)

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.