my wifi driver is contantly crashing on linux (fedora). i see this in the logs:
firmware failed to ack driver for leaving Deep Power mode
kernel: WARNING: CPU: 1 PID: 12324 at drivers/net/wireless/realtek/rtw88/ps.c:105 rtw_power_mode_change+0xf4/0x130 [rtw88_core]
how to fix it?
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
firmware failed to ack driver for leaving Deep Power mode
kernel: WARNING: CPU: 1 PID: 12324 at drivers/net/wireless/realtek/rtw88/ps.c:105 rtw_power_mode_change+0xf4/0x130 [rtw88_core]
indicates a power management issue with the Realtek WiFi driver (rtw88) in your Linux system (Fedora). This is a known issue on some Realtek wireless chips (like RTL8822BE, RTL8821CE, etc.) and can cause instability or disconnections.
🔧 Step-by-Step Fixes
✅ 1. Disable Power Management for the Wireless Interface
Power management is often the root of this problem. You can disable it using iw or by configuring NetworkManager/systemd-networkd.
Option A: Using iw:
bash
sudo iw dev wlan0 set power_save off
Replace wlan0 with your actual wireless interface name (use ip link to check).
To make it persistent across reboots:
Create a systemd service file:
bash
sudo nano /etc/systemd/system/wifi-pm-off.service
Paste this content:
ini
[Unit]
Description=Disable WiFi Power Management
[Service]
Type=oneshot
ExecStart=/usr/bin/iw dev wlan0 set power_save off
[Install]
WantedBy=wifi-pre.target
This confirms you're using the Realtek RTL8821CE chip with the open-source rtw88_8821ce driver.
🔧 Recommended Fixes for RTL8821CE WiFi Crashes on Fedora
You’re seeing this error:
code
firmware failed to ack driver for leaving Deep Power mode
kernel: WARNING: CPU: 1 PID: 12324 at drivers/net/wireless/realtek/rtw88/ps.c:105 rtw_power_mode_change+0xf4/0x130 [rtw88_core]
This indicates a power management bug in the rtw88 driver stack used by your Realtek RTL8821CE device.
Here are targeted solutions based on your hardware and kernel module.
✅ 1. Disable WiFi Power Management (Most Effective Fix)
The issue usually stems from power-saving features. Disabling them often resolves instability.
Step-by-step:
bash
# Check your wireless interface name
ip link show
# Disable power saving (replace wlan0 with your actual interface)
sudo iw dev wlan0 set power_save off
Add the following content (adjust wlan0 if needed):
ini
[Unit]
Description=Disable WiFi Power Management
[Service]
Type=oneshot
ExecStart=/usr/bin/iw dev wlan0 set power_save off
[Install]
WantedBy=wifi-pre.target
Sure! Please paste or share what someone suggested, and I’ll review it for you — confirm whether it’s safe, effective, and tailored to your RTL8821CE WiFi adapter on Fedora.
If you're seeing driver crashes with the rtw88 module, any suggestion should ideally address:
Power management (set power_save off)
Driver version (in-tree vs. updated from GitHub)
Firmware availability
Conflicting modules like wl or rtl8xxxu
So feel free to paste the suggestion here, and I'll walk you through whether and how to apply it safely.
User
Create /etc/modprobe.d/rtw8852be.conf and write these lines:
The configuration you were given includes options for rtw89_pci, rtw89core, etc., which are not applicable to your RTL8821CE adapter. Those modules are for different Realtek chips, like the RTL8852BE/RTL8852A/RTL8852BS — not your RTL8821CE.
❌ Why This Is Not Suitable for Your Device
Your driver: rtw88_8821ce
Suggested modules: rtw89_pci, rtw89core, etc.
These belong to newer Realtek WiFi drivers (rtw89) that support different hardware and do not apply to RTL8821CE
Using these options will have no effect on your device, and may even be confusing or misleading when debugging later.
✅ What You Should Do Instead
1. Stick to Recommended Fixes for RTL8821CE:
As previously outlined:
✔️ Disable Power Management:
bash
sudo iw dev wlan0 set power_save off
Make it persistent with a systemd service (see earlier steps).
✔️ Update firmware:
bash
sudo dnf install linux-firmware
✔️ Optional: Use updated driver from GitHub:
bash
git clone https://github.com/lwfinger/rtw88.git
cd rtw88
make && sudo make install
[Unit]
Description=Disable WiFi Power Management
[Service]
Type=oneshot
ExecStart=/usr/bin/iw dev wlan0 set power_save off
[Install]
WantedBy=wifi-pre.target
You see errors like firmware failed to ack driver in logs
Your kernel is recent (e.g., 6.x), and the built-in driver isn't working reliably
✅ Why Use lwfinger's Driver?
The rtw88 driver in mainline Linux (included in your kernel) is often based on older versions of this repo. Using the updated version from lwfinger/rtw88 can provide:
Benefit
Description
🔧 Bug fixes
Includes patches not yet merged into the kernel
🛠 Better compatibility
Fixes for power management, firmware loading, etc.
📦 Newer features
Sometimes includes experimental support for newer chips
💡 Stability improvements
Especially for Realtek RTL8821CE, RTL8822BE, and similar adapters
🚀 How to Install It
1. Install Dependencies
bash
sudo dnf install git dkms kernel-devel gcc make
2. Clone the Repo
bash
git clone https://github.com/lwfinger/rtw88.git
cd rtw88
3. Build and Install
bash
make
sudo make install
4. Reload the Driver
bash
sudo modprobe -r rtw88_8821ce # Remove old module
sudo modprobe rtw88_8821ce # Load updated one
If rtw88_8821ce fails, try modprobe rtw88_pci — newer versions may auto-detect your chip.
🔁 Optional: Make It Persistent
Ensure the module loads after reboot:
bash
User
options rtw88_core aspm=0 debug=0 # Disables ASPM and debugging for the core module
options rtw88_8821ce powersave=0 # Disables power-saving for your specific module
vs
sudo iw dev wlan0 set power_save off
Assistant
Great question!
You're asking about the difference between:
Setting module options in /etc/modprobe.d/rtw88.conf like:
git clone https://github.com/lwfinger/rtw88.git
cd rtw88
make
sudo make install
Load the module:
bash
sudo modprobe -r rtw88_core # Remove old version if loaded
sudo modprobe rtw88_8821ce
If rtw88_8821ce still isn't found, check if rtw88_pci is loaded instead — newer versions may auto-detect your chip.
✅ 4. Verify Wireless Interface Appears
After loading the module, check:
bash
ip link show
Look for a wireless interface (wlan0, wlx..., etc.)
✅ 5. Make It Persistent Across Reboots
Add the module to /etc/modules-load.d/:
bash
echo "rtw88_8821ce" | sudo tee /etc/modules-load.d/rtl8821ce.conf
Then reboot:
bash
sudo reboot
✅ 6. If All Else Fails: Downgrade Kernel Temporarily
If the newer kernel (6.14.4) has broken compatibility and no module is available, you can temporarily boot into an older kernel where RTL8821CE worked.
Install an older kernel:
bash
sudo dnf install kernel-<version>
Then choose it at boot from GRUB menu (press Esc or hold Shift during boot).
📌 Summary
Action
Status
Try modprobe rtw88_8821ce
✔️ Often renamed
Use lwfinger/rtw88 repo
✔️ Most reliable fix
Add module to /etc/modules-load.d/
✔️ Ensure persistence
Consider downgrading kernel
⚠️ Only if no module available
Let me know what happens when you run:
bash
modprobe rtw88_8821ce
and
bash
dmesg | grep -i rtw
I’ll help you interpret the results and get your WiFi working again!
[Unit]
Description=Disable WiFi Power Management
[Service]
Type=oneshot
ExecStart=/usr/bin/iw dev wlan0 set power_save off
[Install]
WantedBy=wifi-pre.target