r/linuxhardware • • 21h ago

News Linux Fan Control for the Alchemist Series and XMX.

Thumbnail
0 Upvotes

r/linuxhardware • • 16h ago

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

56 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.

::: Here are the tracking links for upstream status: :::

I've submitted fixes for both the Wi-Fi and Bluetooth sides of the issue to the upstream Linux kernel mailing lists.

You can follow the submissions, maintainer feedback, and any future revisions here:

Wi-Fi (rtw88):
https://lore-kernel.gnuweeb.org/linux-wireless/20261127083729.7030-1-shindeswapnil028%40gmail.com/T/

Bluetooth (btusb):
https://lore-kernel.gnuweeb.org/linux-bluetooth/20261127004644.8363-1-shindeswapnil028%40gmail.com/T/

These are the actual upstream discussions. You can check for new replies and see whether the patches are reviewed, revised, accepted, or rejected.

Neither patch has been merged into the upstream kernel yet. I'm waiting for further maintainer feedback and review, hopefully starting Monday.


r/linuxhardware • • 2h ago

Question Will Ubuntu run on this Dell XPS laptop??

Thumbnail
1 Upvotes

Will Ubuntu run on this Dell XPS laptop??

\[I have heard about possible webcam issues. Other than that, should installing and running Ubuntu on here be relatively straightforward?\]

16" Dell XPS laptop 

Intel® Core™ Ultra 7 355, 8 cores

Windows 11 Home

Intel® UMA Graphica

16 GB LPDDR5X

1 TB SSD

16" Non Touch FHD+ (1920x1200)


r/linux_on_mac • • 2h ago

Closing Lid creates a no login lock screen

1 Upvotes

I have installed Linux Mint Cinnamon on a MacBook Pro 15 inch, Mid 2012.

If I close the lid it creates lock screen with no login field. See screenshot.

I've turned off auto-lock on Lid Close and set it to Do Nothing.

I also tried the changes below:

HandleLidSwitch=ignoreHandleLidSwitchDocked=ignore
HandleLidSwitch=ignore
HandleLidSwitchDocked=ignore

from this article with no luck:

https://ostechnix.com/disable-sleep-laptop-lid-close-linux/

Any ideas?

Thanks.

r/linuxhardware • • 3h ago

Question Looking for a 16-inch Linux-friendly laptop

3 Upvotes

Hi everyone!
I’m currently looking for a laptop and would really appreciate some recommendations from people who have experience with Linux laptops.
Here is what I’m looking for:
My requirements:

  • Screen: 16 inches
  • RAM: At least 32 GB
  • Operating system: Good Linux compatibility
  • Budget: Maximum €2,000

What I want to use it for:

  • Everyday work and productivity
  • Gaming through Steam

I’d be open to considering something slightly more expensive if there are good discounts, offers or other ways to get it within my budget.
Since it’s currently Black Friday week, I’m hoping to find a good deal before the offers end!
I’d especially appreciate recommendations for specific models, as well as your experiences with Linux compatibility, build quality and general performance.
Thanks a lot for your help!


r/linuxhardware • • 4h ago

Support Fix for no sound on ThinkPad E14 Gen 8 (Senary SN6140) on Linux

Thumbnail
github.com
2 Upvotes

I recently got a ThinkPad E14 Gen 8 with a Senary SN6140 audio chip, but there was no audio on any Linux distribution I tried, no matter what I did.

I decided to check if there's audio on Windows and so I installed it and there was.

I ended up asking Claude to analyze the Windows audio driver for the chip and it found three register writes that the Windows driver performs and the Linux driver doesn't. After applying them I finally got the sound working.

Tested on Linux Mint 22.3 (HWE), Linux Mint 27 Beta and Fedora 45.

Quick test (needs alsa-tools):

sudo hda-verb /dev/snd/hwC0D0 0x1b 0x300 0x042e
sudo hda-verb /dev/snd/hwC0D0 0x1b 0x300 0x130a
sudo hda-verb /dev/snd/hwC0D0 0x1b 0x300 0x12a0

Permanent fix is in the repository I linked to.

I've also reported it to the Linux sound maintainers, so it can hopefully be fixed in the kernel itself.


r/linux_on_mac • • 15h ago

MacBook and linux

Thumbnail
1 Upvotes