安装RTL8852BE PCIe无线网卡后Kubuntu关机自动重启问题及驱动安全重装咨询
Hey there, let's work through this shutdown/reboot issue with your RTL8852BE step by step—we'll keep the driver reinstall safe so you don't end up with new problems. Here's what to do:
1. 先搭好安全备份(重中之重)
Before touching any drivers, let's create a system snapshot so you can roll back if anything goes sideways. Kubuntu makes this easy with Timeshift:
- Install it if you don't have it already:
sudo apt update && sudo apt install timeshift - Run Timeshift from your app menu, follow the prompts to create a snapshot (pick a storage location with enough space). Store this somewhere safe—this is your undo button.
2. 确认当前驱动状态
First, let's check exactly which driver your system is using for the RTL8852BE:
Run this command in the terminal:
lspci -k | grep -A 3 Network
Look for lines like Kernel driver in use: rtw89_8852be or a third-party driver name. This tells us whether you're using the built-in kernel driver or a custom one you might've installed earlier.
3. 干净卸载现有驱动
How you uninstall depends on what driver you're running:
If you're using a third-party DKMS/PPA driver:
- PPA-installed: First remove the PPA (find its name in
/etc/apt/sources.list.d/if you don't remember it), then purge the driver package:sudo add-apt-repository --remove ppa:your-driver-ppa/here sudo apt purge rtl8852be-dkms # Replace with your actual package name if different - Source-compiled: Navigate to the folder where you compiled the driver, then run:
sudo make uninstall sudo rm -rf /usr/src/rtw89-* # Clean up leftover source files
If you're using the kernel's built-in driver:
You don't need to "uninstall" it, but we can reset it by reloading the module first:
sudo modprobe -r rtw89_8852be sudo modprobe rtw89_8852be
If that doesn't fix the reboot issue, we'll move to reinstalling/updating the kernel's driver.
4. 安全重装驱动
We'll start with the most stable option—using the kernel's official driver—then move to community drivers if needed.
Option 1: Update your kernel (for built-in driver fixes)
Kubuntu 24.04.1 might have an older kernel version with bugs for RTL8852BE. Upgrading to the latest stable HWE kernel often fixes power management issues:
sudo apt update && sudo apt upgrade sudo apt install linux-generic-hwe-22.04
Reboot your system after this—your kernel will update, and the built-in RTL8852BE driver will get the latest fixes.
Option 2: Install community-maintained DKMS driver
If the kernel driver still causes reboot issues, try this well-maintained community driver (it's specifically for RTL8852BE):
- Install required dependencies first:
sudo apt install git dkms build-essential linux-headers-$(uname -r) - Clone the driver source from a trusted community repo (you can find mainstream options on popular open-source code platforms, like the one maintained by lwfinger):
git clone <社区驱动仓库地址> - Install it via DKMS (so it stays working after kernel updates):
cd rtw89 # Replace with the repo folder name if different sudo make dkms_install - Reboot your system to load the new driver.
5. 测试并验证
After rebooting:
- Run
lspci -k | grep -A 3 Networkagain to confirm the correct driver is loaded. - Test sleep first: Run
systemctl suspend, wake the system up, and check if it works normally. - Then test shutdown: Run
systemctl poweroffand make sure it doesn't reboot unexpectedly.
6. If the issue persists: Tweak power management settings
Sometimes the problem is with power management, not the driver itself. Try these:
- Disable WiFi power saving:
- Check your WiFi interface name with
ip link show(it'll look likewlan0orwlp2s0). - Turn off power saving temporarily:
sudo iwconfig wlan0 power off # Replace wlan0 with your interface - Make it permanent: Edit
/etc/NetworkManager/conf.d/default-wifi-powersave-on.confand changewifi.powersave = 3towifi.powersave = 2, then restart NetworkManager:sudo systemctl restart NetworkManager
- Check your WiFi interface name with
- Adjust ACPI settings: Edit
/etc/default/grub, find the line starting withGRUB_CMDLINE_LINUX_DEFAULT, addacpi=forceto the end (inside the quotes), like:
Then update grub and reboot:GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=force"sudo update-grub sudo reboot
备注:内容来源于stack exchange,提问作者Lafayette

