r/linuxhardware • • 10m ago

Guide I spent weeks investigating and fixing Realtek RTL8723DE Wi-Fi and Bluetooth problems on Linux

2 Upvotes

I've been working on fixing recurring Wi-Fi and Bluetooth problems with the Realtek RTL8723DE combo adapter (10ec:d723 Wi-Fi / 0bda:b009 Bluetooth).

This adapter has been particularly frustrating on Linux. The problems I investigated included:

Wi-Fi and Bluetooth becoming unavailable after a warm reboot.

Bluetooth USB initialization failures (-71).

Wi-Fi failing to initialize with -16 errors.

Wi-Fi degradation and potential coexistence-related problems.

Rather than relying on random workarounds, I decided to investigate what was actually happening inside the Linux kernel drivers.

I eventually developed two separate projects.

1. Driver-level patch (main project)

https://github.com/sudo-WearTherinG/linux-rtl8723de-driver-patch

This is the main project. It addresses driver shutdown and power-state handling rather than relying on userspace scripts.

The investigation went beyond ordinary troubleshooting. I traced execution paths through the Linux kernel's rtw88 Wi-Fi and btusb Bluetooth drivers, examined their shutdown and initialization sequences, and tracked how power-state transitions affect the shared hardware.

Some of the areas I investigated:

Code-path analysis: Tracing driver execution flow during initialization, shutdown, and reboot.

PCIe power management: Investigating Wi-Fi adapter power-state transitions, including PCI_D3hot.

USB runtime autosuspend: Examining Bluetooth USB power-management behavior.

Firmware and MAC state: Investigating whether the Wi-Fi MAC and firmware were properly shut down before reboot.

Bluetooth coexistence: Examining how Wi-Fi and Bluetooth coordinate through the shared hardware.

Register-level debugging: Investigating hardware register behavior, including REG_APS_FSMCO and initialization timeouts.

Reproducibility testing: Testing different Wi-Fi and Bluetooth power-state combinations across repeated reboot cycles.

I performed 200+ reboot tests on my HP 15-da0xxx laptop running Omarchy Linux.

The driver-level changes resolved the reboot-related failures in my testing.

Upstream kernel submission

I also submitted a Wi-Fi shutdown patch to the Linux kernel mailing list.

The patch received review feedback from Ping-Ke Shih, the rtw88 maintainer. He suggested using the existing rtw_enter_ips() function instead of manually handling the Wi-Fi power-off sequence.

I tested that approach, revised the patch accordingly, and submitted a v2:

[PATCH v2] wifi: rtw88: pci: Enter IPS before PCI_D3hot on shutdown

The revised patch is awaiting further upstream review. It has not yet been reviewed yet due to their work holiday.

2. Warm-reboot workaround

https://github.com/sudo-WearTherinG/rtl8723de_warm_reboot_fix

This was my first solution, before I identified the underlying driver-level problem.

It uses a systemd service to unload the Bluetooth and Wi-Fi modules before shutdown or reboot.

It is intended for users experiencing reboot-related problems who want a workaround without modifying or rebuilding kernel drivers.

Testing limitations

I only have one laptop with this particular adapter, so I cannot claim that the patches work across every RTL8723DE implementation or laptop.

The testing was extensive on my hardware, but broader testing from other users would be valuable.

Both repositories contain the investigation, patches, testing details, and instructions. The main repository also includes HTML documentation explaining the technical findings.

I'm sharing this because I suspect other Linux users have been dealing with these problems for years without knowing what causes them.

If you own an RTL8723DE-based laptop and have experienced similar issues, I'd be interested in hearing about your experience.

In total I found 4 ways to make this card behave.


r/linuxhardware • • 4h ago

News Linux Fan Control for the Alchemist Series and XMX.

Thumbnail
reddit.com
0 Upvotes

r/linuxhardware • • 21h ago

News Manjaro is breathing some new life into my sisters unused toaster (I know there are lighter distros, but its working great) Any ideas on what to use it for

Post image
10 Upvotes

r/linuxhardware • • 15h ago

Question NVIDIA GEFORCE GT720M

2 Upvotes

Any driver support for debian 13? I'm sticking with it.


r/linuxhardware • • 12h ago

Question Advanced Optimus?

Thumbnail reddit.com
1 Upvotes

r/linuxhardware • • 21h ago

Support how to get ahold of pine64 phones

4 Upvotes

I recently found out that PINE64 had discontinued manufacturing these, which is a bit unfortunate because I was hoping to experiment with one.

I'm interested in building an open-source assistant that can operate the entire phone through voice, natural language, and potentially other forms of interaction. I want to explore what becomes possible when you have full control over the hardware and software stack, rather than being constrained by shitty permission models and what kind of delta this would even enable.

I can root phones i currently have (which it seems like ill have to end up doing anyway) but i wanted to experiment with the PinePhone or PinePhone Pro as a starting point.

Does anyone know where I could get my hands on one? Also happy to buy a used device from someone who's no longer using theirs.


r/linuxhardware • • 16h ago

Product Announcement I made DockWatch — a live, ThinkPad-styled map of your dock and laptop ports

Post image
1 Upvotes

I wanted to see at a glance what's plugged in where on my ThinkPad L14 + Ultra Dock (40AJ), so I built a small app for it.

What it does:

• Draws the real port layout of the dock's rear panel and both sides of the laptop. Ports glow when something is plugged in.

• Per port: device name, USB speed, current draw, disk/network throughput with a tiny graph, and USB-C Power Delivery info.

• Detects phone modes (MTP/PTP/ADB), SD card, headphone jack and monitors (name from EDID).

• Header shows camera/mic state (and which app is using them), F1/F4 mute LEDs, keyboard backlight level, battery wear, Wi-Fi/Bluetooth.

• CPU/GPU/SSD temps and fan RPM under the vent grille, which glows red as the laptop heats up.

• Right-click a port to safely remove a drive. Notifications on plug/unplug, plus a "don't forget your flash drive" reminder when you undock.

• Can blink the red dot on the ThinkPad lid when something is plugged in.

• Tray icon, window, terminal UI and a Plasma 6 panel widget. UI in English, Ukrainian and Russian.

• Themes: ThinkPad, IBM (red/green/blue) and light. Also supports an HP EliteBook Folio 1040 G3 with its own HP theme.

It only reads /sys (no root), Python + PySide6.

Docks and laptops are plain JSON profiles, so adding your model is easy. Send a photo of the ports and your lsusb output and I'll add it.

GitHub: https://github.com/Watashik/DockWatch

Feedback and profiles for other docks and ThinkPads are very welcome!


r/linuxhardware • • 16h ago

Review I built a small GTK 4 / libadwaita utility to manage Tenda AIC 8800D80 USB Wi-Fi/Bluetooth adapters on Linux

1 Upvotes

Dual Wi-Fi and Bluetooth USB dongles based on the AIC8800D80 chipset (2604:001f) can be a bit annoying on laptops with built-in wireless adapters: duplicate Bluetooth controllers, NetworkManager juggling two Wi-Fi interfaces, and the need for manual udev/sysfs tweaks.

I built tenda-control, an unofficial desktop application written in Python using GTK 4 and libadwaita, to make managing these adapters easier.

Features:

  • Real-time status monitoring for the Tenda USB adapter, internal Wi-Fi, internal USB Bluetooth, and active IPv4 route.
  • Native libnm Wi-Fi network picker for the USB adapter, supporting WPA3, WPA2, open networks, and preconfigured 802.1X profiles.
  • One-click radio modes and manual toggles using pkexec, with automatic rollback on failure.
  • Persistent udev rules for plug-in behavior and power management.
  • Built-in, per-interface HTTPS speed tests using Cloudflare and LibreSpeed.

GitHub repository (MIT license):
https://github.com/AMorales22T/tenda-control

Feedback, bug reports, and pull requests are very welcome, especially contributions that extend support to additional AIC8800 USB device IDs!


r/linuxhardware • • 18h ago

Support Steam OS and wifi / bt adaptor

Thumbnail reddit.com
1 Upvotes

r/linuxhardware • • 1d ago

News Tuxedo has now an official packages repository

4 Upvotes

Much probably already know, but Tuxedo has now an official packages repository: https://www.tuxedocomputers.com/en/Add-TUXEDO-software-package-sources.tuxedo

They have packages for multiple distributions.


r/linuxhardware • • 1d ago

Discussion Milk-V Megrez RuyiFirmware (EDK2) boot openRuyi + RX 550

Thumbnail
youtube.com
2 Upvotes

r/linuxhardware • • 1d ago

Discussion Which new x86 tablets work well with stock Debian 13?

11 Upvotes

I’m looking for a new x86 tablet or touchscreen 2-in-1 that I can buy in the EU for around €600. I’m happy to consider models with or without a keyboard. What matters to me is how well the device runs Debian.

I’d like to install Debian 13 with KDE Plasma from a USB stick and stick with the stock Debian kernel. Is anyone using a device like this regularly? If so, which exact model do you have, and how well do the touchscreen, auto-rotation, Wi-Fi and suspend/resume work? I’d also like to know if anything needed manual setup or still gives you trouble.


r/linuxhardware • • 1d ago

Support [GUIDE] Recovering a Corrupted NVIDIA VBIOS on an Optimus Laptop (GTX 1060 Max-Q Tested) When Hardware is Locked

Thumbnail reddit.com
1 Upvotes

r/linuxhardware • • 1d ago

Discussion Zenbook 14 UX3480KA or Yoga Slim 7 14AGP1?

1 Upvotes

Hii. I'm looking for a 14" laptop for Arch (AMD, 16 GB RAM, light, quiet, doesn't burn my lap, good OLED/IPS screen). I'm torn between:

• ASUS Zenbook 14 UX3480KA: Ryzen AI 7 345, 16 GB, 512 GB, OLED 1920×1200 60 Hz, 1.2 kg, HDMI, USB-A and headphone jack. €1,169. • Lenovo Yoga Slim 7 14AGP11: Ryzen AI 7 445, 16 GB, 1 TB, OLED 1920×1200 60 Hz, 1.15 kg, USB-C only. €1,149.

I tried both in store and they feel very similar. Has anyone installed Arch on either one (or a sibling model)?

Thankss


r/linuxhardware • • 1d ago

News I got the original HyperX NGENUITY GUI running natively on Linux — No Wine, no Windows VM

Thumbnail
gallery
5 Upvotes

Hey everyone!

I've developed an open-source compatibility layer that allows the original HyperX NGENUITY graphical interface to run on Linux without Wine or a Windows virtual machine.

Instead of recreating the GUI, the project runs the original Avalonia interface with Linux compatibility adapters and the ngenuity-linux-cli backend.

Currently tested on the HyperX Pulsefire Haste 2 Pro wireless mouse, running Kubuntu with KDE Plasma.

Working features:

  • RGB lighting effects and software brightness control
  • DPI adjustment and stage management
  • Polling rates up to 4000 Hz
  • Motion Sync, Angle Snap and lift-off distance
  • Button remapping
  • Macro recording and assignment
  • Battery monitoring
  • Mouse and receiver firmware information
  • KDE mouse settings integration
  • Automatic startup, language and theme settings

The compatibility code is open source under the MIT license.

No proprietary HyperX binaries are distributed. You must obtain the original NGENUITY software separately.

This is an early alpha release, and I'm looking for community feedback, testers and contributors to help expand hardware compatibility.

GitHub:
https://github.com/ElgatoconboteDEV/ngenuity-linux-ui

Special thanks to PMarinov1994 for the ngenuity-linux-cli backend.

Clearly, AI has been used for reverse engineering in this project, i know it’s pretty irrelevant, but then again, some people just don’t like the movie "I, Robot", and, well, there you go.


r/linuxhardware • • 1d ago

Question Lenovo ThinkSmart Core Gen 2 with linux and proxmox

Thumbnail reddit.com
1 Upvotes

r/linuxhardware • • 2d ago

Purchase Advice Need help choosing a laptop for my son to learn programming/Linux — $900 max, preferably Best Buy

9 Upvotes

I'm looking to buy my son a laptop for Christmas, and I'm hoping to get some advice from people who know more about Linux and programming than I do.

He wants to learn how to code and program, and he wants to primarily use Linux while learning. I'm not very familiar with Linux myself, so I want to make sure I buy something that will work well with it and won't give him a bunch of headaches.

Here's what I'm looking for:

  • Maximum budget: $900
  • Preferably available at Best Buy
  • 16GB RAM minimum (32GB would be a bonus)
  • No OLED screen — I want to avoid potential burn-in issues
  • Good Linux compatibility, including Wi-Fi, graphics, sleep/wake, and other hardware
  • Powerful enough for learning programming, running coding projects, and potentially using Linux virtual machines or containers
  • Something reliable that will last him several years

I'm not necessarily looking for a gaming laptop or something flashy. I just want to get him a solid machine that will be good for learning and growing as a programmer.

I've been looking at a few Lenovo ThinkPads, ASUS laptops, and other options, but I'm honestly not sure which ones are the best choice for Linux.

What laptop would you recommend in this price range? Are there any specific models I should avoid because of Linux compatibility issues?

I would really appreciate any advice or recommendations. Thanks!


r/linuxhardware • • 1d ago

Discussion Linux e jogos

Thumbnail reddit.com
0 Upvotes

r/linuxhardware • • 1d ago

Discussion ThinkPad X1 Carbon Gen 13 (Core Ultra 5 225H) + AOOSTAR AG02 eGPU: RTX 3060 / 5060 Ti / 5070 Ti compatibility on Linux?

Thumbnail reddit.com
1 Upvotes

r/linuxhardware • • 2d ago

Purchase Advice Advice on choosing SSD for Linux

Thumbnail reddit.com
1 Upvotes

r/linuxhardware • • 2d ago

Discussion Using an old MacBook as a dedicated Linux machine vs getting a ThinkPad – What would you recommend?

12 Upvotes

Hey everyone!

I'm looking to get a secondary laptop mainly for experimenting with Linux, learning more about Linux systems, and getting into homelabbing.

My primary machine is a 14-inch MacBook Pro with the M5 Pro, so I already have a powerful machine for my regular work and demanding tasks. The secondary device doesn't need to be powerful at all.

I'm currently considering two options:

  1. An older Intel MacBook – Something like a used MacBook Pro or MacBook Air. I'd install Linux on it and use it as a dedicated Linux machine.
  2. A ThinkPad – Particularly older models like the X270, X280, T480 or similar machines, which seem to have a great reputation in the Linux community.

My main interests are:

  • Linux installation, configuration and distro hopping.
  • Homelabbing and experimenting with self-hosted services.
  • Learning networking, SSH, Docker, virtualization and server management.
  • General Linux exploration and getting comfortable with the Linux ecosystem.
  • Using the machine as a portable tinkering device.

I'm not planning to do any particularly demanding workloads, heavy development, AI/ML training or video editing on it. Those are already covered by my primary MacBook.

A few questions:

  1. How good is Linux support on older Intel MacBooks these days? Are there any major driver, Wi-Fi, battery or hardware compatibility issues?
  2. Would an older MacBook actually be a decent Linux machine, or is a ThinkPad still the better choice?
  3. What makes ThinkPads so popular among Linux and homelab enthusiasts?
  4. Are there any particular ThinkPad models you'd recommend for this use case?
  5. Is there any advantage to choosing an older MacBook when I already use a Mac as my primary device?

I'm based in India, and I'm ideally looking at the used market with a relatively low budget.

I don't need a powerhouse. I just want a reliable little machine that I can experiment with, break, reinstall Linux on, tinker with and learn from without worrying about messing up my primary laptop.

Would love to hear from people who have actually used Linux on both older MacBooks and ThinkPads. What would you choose and why?


r/linuxhardware • • 2d ago

Support Best mATX motherboard for controller wake

2 Upvotes

So I've done a bit of research. And from what I've gathered, there doesn't seem to be a deterministic way to know if an xboxseries/8bitdo controller (with wireless receiver) will reliably turn on the computer from sleep (without workarounds). Apparently, its due to variations of how the motherboard handles the usb controller and whatnot.

So before I build my PC (going to run either bazzite or steamOS), I want to know from peoples own experience which motherboards NATIVELY just support usb wireless receiver controller wake up, no hacky systemd commands/scripts. The reason I ask, is because I think scripts and commands are fragile and I don't want to deal with the headache of it potentially breaking down the line due to some kernel or driver change, causing regressions etc. I'm looking for a motherboard that supports it out of the box. Needs to be am5 mATX. I would imagine whatever is more popular would be an advantage purely from the community support.


r/linuxhardware • • 2d ago

Support Help to get remove Activation Lock of Macbook Air M1

1 Upvotes

Can Anyone Help me to get off the activation lock Without the iCloud removal


r/linuxhardware • • 3d ago

Question Device not seeing one specific Hotspot (the cars) but seems to see other hotspots.

2 Upvotes

Breaking the limits of my wifi troubleshooting knowledge, so i am doing a desperate attempt here to see if anyone may have a better idea as to what the deal is. Its not exactly Linux related, unless you count android as linux. But this sub tends to have a huge base of knowledge on interacting devices.

issue.

Got a new phone - an Android 16 "A67L Gen2" It seems to have came out in 2024. yes - its a cheap low end device.

Spec Sheets I found are here.

https://www.deviceinfo.app/devices/foxxd/a67l-gen2/

https://oemdrivers.com/phone-foxxd-a67l-gen2

It supports wifi-4 , The second site said the device supported "B, G, N" for the wifi. I am not sure if thats conflicting info or not.

It sees and connects to my Home Wifi Router just fine, but it fails to even see the Cars Wifi Hotspot. A Jeep "Uconnect" wifi hotspot. I cant seem to find any spec on what that hotspot supports, all i can say is the Hotspot has worked with basically every other device old, new, cheap and high end, i have tried with it. The phone failed to see a second Jeeps Hotspot as well. (a new 2027 model)

Basically I think this 'proves' there is something wrong with the phone, and I need to call the phone support to see what they can suggest.

But I want to make sure I am not overlooking anything. I just am trying to get my notes in order for when I do call support.

So..

Wi-Fi 4 (802.11n) operates on both 2.4 GHz and 5 GHz bands. And is a rather common if older spec. But MUST a wifi 4 device support both?

The above spec sheet seems to imply the device only supports 2.4 GHz?

The following FCC info also seems to say the Phone only supports 2.4 if I am reading the page correctly https://fccid.io/2AQRM-A67L

So perhaps the Phone only supports 2 GHz, while the WiFi only supports 5 Ghz?

Googling info on my Uconnect device (the google AI) only gives me the generic info of..

Uconnect 5’s Wi‑Fi hotspot uses 2.4 GHz and 5 GHz bands, though supported bands and hotspot features can vary by vehicle model and equipment.

Thank you for any information. Trying to get Grannys new phone working with my Cars Wifi, and I did not expect it to be this much of a pain.

She wont let me just BUY her a better phone, she wants this one..