HP 650笔记本内置WiFi芯片故障,Ubuntu 22系统切换使用WiFi dongle相关问题咨询
Hey there, let's work through your WiFi problem together. Sorry to hear your internal WiFi module failed—those hardware quirks can be super frustrating!
First, let's tackle how to get your system to ignore the broken internal module and use your WiFi dongle instead:
Identify your internal WiFi device
Run this command in the terminal to list all network interfaces:lshw -C networkLook for the entry labeled
Wireless interfacethat corresponds to your internal module (it’ll usually have a name likewlp2s0, while your dongle might start withwlxfollowed by a string of characters). Note down its name and driver module (if listed).Disable the internal module permanently
You have two reliable ways to do this:- Blacklist the driver:
Edit the modprobe blacklist file with:
Add a line at the end likesudo nano /etc/modprobe.d/blacklist.confblacklist <your-internal-wifi-driver>(replace with the driver name you found earlier, e.g.,blacklist iwlwifi). Save and exit, then update your initramfs to apply the change:
Reboot your system, and the internal WiFi driver won’t load anymore.sudo update-initramfs -u - Use a udev rule:
Create a new udev rule file to disable the interface on boot:
Add this line (replacesudo nano /etc/udev/rules.d/99-disable-internal-wifi.rules<internal-device-name>with the interface name you noted):
Save, exit, and reboot—your internal WiFi will stay disabled.SUBSYSTEM=="net", ACTION=="add", ATTR{name}=="<internal-device-name>", RUN+="/sbin/ip link set $name down"
- Blacklist the driver:
Clear old WiFi settings
To get rid of leftover saved connections that might be causing confusion:- Go to Settings > Network, find any old WiFi networks tied to your internal module, click the gear icon, and select Forget.
- Or, if you want to wipe all saved network settings at once, run:
Just remember you’ll need to reconnect to your WiFi networks after doing this.sudo rm -rf /etc/NetworkManager/system-connections/*
Now, about your question: What happens if I reinstall Ubuntu with the WiFi dongle attached?
This is totally safe and should work smoothly! When you run the installer with the dongle connected, Ubuntu 22.04 will detect it automatically (most common USB WiFi dongles have built-in driver support in this release). The installer will set up the dongle during installation, and once the OS is up and running, it should prioritize the dongle over the broken internal module. That said, it’s still a good idea to disable the internal module using the steps above afterward to avoid any potential conflicts or leftover settings messing things up.
备注:内容来源于stack exchange,提问作者redundant with recumbent

