Como instalar Wi-Fi e Bluetooth no ASUS B650M-AYW Ubuntu 24.04

Como instalar  Wi-Fi e Bluetooth no ASUS B650M-AYW Ubuntu 24.04 Destaques Imagem Ilustração: Asus

ASUS B650M-AYW WIFI — Wi-Fi e Bluetooth no Ubuntu 24.04

Chip: MediaTek MT7902
Kernel testado: 6.17.0-22-generic
Sistema: Ubuntu 24.04.x LTS


⚠️ Requisito

É necessário ter internet via cabo de rede (ethernet) durante toda a instalação.


Pré-requisitos — Instalar dependências

sudo apt update
sudo apt install git build-essential linux-headers-$(uname -r)

📶 Wi-Fi

1. Clonar e compilar o driver

git clone https://github.com/hmtheboy154/mt7902
cd mt7902/
make -j$(nproc)
sudo make install
sudo make install_fw

2. Ativar o driver sem reiniciar

sudo modprobe mt7902e

3. Verificar

nmcli device status

O Wi-Fi deve aparecer como disponível. Reinicie o sistema se necessário.


🔵 Bluetooth

1. Clonar o repositório com suporte a Bluetooth

cd ~
git clone https://github.com/abdullaabdullazade/mt7902_driver
cd mt7902_driver
sudo ./install.sh --bt

2. Bloquear módulos conflitantes

sudo tee /etc/modprobe.d/blacklist_btusb.conf << EOF
blacklist btusb
blacklist btmtk
EOF

3. Configurar carregamento automático no boot

echo -e "btusb\nbtmtk" | sudo tee /etc/modules-load.d/mt7902-bt.conf

4. Atualizar initramfs e reiniciar

sudo update-initramfs -u
sudo reboot

5. Após reiniciar — iniciar o serviço

Na primeira inicialização após o reboot, caso o Bluetooth não inicie automaticamente:

sudo modprobe btusb
sudo modprobe btmtk
sudo systemctl start bluetooth

6. Verificar

ls /sys/class/bluetooth    # deve mostrar "hci0"
systemctl status bluetooth # deve mostrar "active (running)"

🔁 Após atualização de kernel

Se o sistema atualizar o kernel, o driver Wi-Fi precisará ser recompilado:

cd ~/mt7902
make clean
make -j$(nproc)
sudo make install
sudo make install_fw

Para o Bluetooth, execute novamente o script:

cd ~/mt7902_driver
sudo ./install.sh --bt
sudo update-initramfs -u
sudo reboot

✅ Diagnóstico rápido

Comando O que verifica
lspci | grep -i mediatek Confirma que o chip MT7902 é reconhecido
lsmod | grep mt79 Verifica se o driver Wi-Fi está carregado
lsmod | grep bt Verifica se os módulos Bluetooth estão carregados
nmcli device status Estado do Wi-Fi
ls /sys/class/bluetooth Verifica se o dispositivo Bluetooth existe
systemctl status bluetooth Estado do serviço Bluetooth
Publicidade