Mediatek wireless driver linux
Как известно wi-fi адаптеры от компании Mediatek, плохо совместимы с операционной системой Linux. Ниже приведена краткая инструкция о том, как заставить работать Mediatek MT7630E.
Официально компанией Mediatek бал выпущен работающий драйвер для Mediatek MT7630E для Linux, поддерживающий только ядра версии 3.13 и 3.14. В данном руководстве будет рассмотрен модифицированный драйвер, совместимый с версией ядра Linux 4.2 и выше.
Скачивание драйвера
Скачать драйвер можно отсюда (это модифицированная версия оригинального драйвера которую очень легко установить).
Установка
Для установки драйвера Mediatek MT7630E просто следуйте нижеприведенным инструкциям:
- Распакуйте скачанный архив домашнюю или любую директорию;
- Откройте терминал и перейдите в распакованную директорию:
sudo chmod +x install sudo ./install
Введи свой пароль и ждите завершения установки.
После завершения установки драйвера вы увидите, что в вашем менеджере сетей появились устройства Wi-Fi И Bluetooth. Драйвер будет загружаться автоматически во время загрузки системы и вам не нужно будет загружать его самостоятельно каждый раз.
Еще можно установить драйвер с динамической поддрержкой модулей ядра Linux (dkms), что позволит не переустанавливать его каждый раз, когда ядро будет обновлено. Для этого следует устанавливать драйвер используя следующие команды:
# Установка нужных компонентов для скачивания и сборки
sudo apt-get install git dkms build-essential
# Клон git репозитория
git clone https://github.com/neurobin/MT7630E.git
# Перходим в папку с драйвером
cd MT7630E/
# Создаем динамические модуля для ядра
sudo make dkms
У вас недостаточно прав для того чтобы тут гадить.
Mediatek wireless driver linux
Mediatek launched a working driver for their wireless device MT7630E for Linux Mint/Ubuntu which was officially supported only for kernel 3.13 and 3.14. The modified driver I am going to use can be installed upto kernel 4.4.*
Download the driver from here (It’s a modification of the original driver for easy installation)
Now follow the instructions below:
1. extract the archive in your Downloads directory (or any other directory).
2 . In terminal run:
cd ~/Downloads/MT7630E-release (change the path if you extracted in another folder)
3. now run these commands one by one:
sudo chmod +x install
sudo ./install
It will prompt for your password. Put your password and wait to finish the installaion.
After installation has been completed the wifi will appear in the networkmanager and bluetooth will be available for use. The driver will load at startup automatically, so you don’t need to load the driver every time you reboot.
Comments
Thank you ! (Asus S551L + LinuxMint Tara)
If wifi works after installing the driver but bluetooth doesn’t, you should check «Readme.md» in driver file directory (/Downloads/MT7630E-release).
There is a instruction how to run a script that turn bluetooth on.
It is good activate kernel repository in software source, script download and patch kernel for you.
Works for me on Asus X550V.
Sorry for my bad english, it is not my native lanquage.
It works fine for me thanks..
Kernel 4.6.0
Mint 18
@FLLM that’s odd. Try the dkms install. commands
@jefreesujit
something is wrong with your environment (not the driver) i.e it failed even before starting to compile the driver. Better post this at Ubuntu Forums
Wifi is not working for MT7630E in ubuntu 15.10. I followed the instructions, but it doesnt work.
make -C /lib/modules/`uname -r`/build M=/home/jefree/Documents/new wifi/MT7630E-release/rt2x00 modules
make[1]: Entering directory ‘/usr/src/linux-headers-4.2.0-23-generic’
arch/x86/Makefile:138: CONFIG_X86_X32 enabled but no binutils support
Makefile:669: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
make[1]: *** No rule to make target ‘wifi/MT7630E-release/rt2x00’. Stop.
make[1]: Leaving directory ‘/usr/src/linux-headers-4.2.0-23-generic’
Makefile:8: recipe for target ‘all’ failed
make: *** [all] Error 2
cp -v firmware/*/* /lib/firmware/
‘firmware/BT/mt76x0.bin’ -> ‘/lib/firmware/mt76x0.bin’
‘firmware/Wi-FI/MT7650E234.bin’ -> ‘/lib/firmware/MT7650E234.bin’
cp rt2x00/mt7630e.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless/
cp: cannot stat ‘rt2x00/mt7630e.ko’: No such file or directory
Makefile:16: recipe for target ‘install’ failed
make: *** [install] Error 1
modprobe: ERROR: could not insert ‘mt7630e’: Invalid argument
modprobe: ERROR: could not insert ‘mt76xx’: Invalid argument
@crack25
wifi works on the new kernels with this driver, but the bluetooth problem still persists. We haven’t found any cause-and-solution for that yet.
Wifi is working with LM17.2 (kernel 4.2.0-18) ASUS TP500LN. Bluetooth does not work.
I just used this for Linux Mint 17.2 on a newly purchased ASUS X555LB-NS51 laptop and it worked for me. Thank you! Quick note: the ./install command also needed sudo.
The driver has been updated and the kernel support has been extended. This driver seems to be installable even in kernel 4.0
That’s upto mediatek, if they start supporting ubuntu 14.10 then you will be able to do what you want.
It will only work with kernel version 13 and 14. So it will not work on Ubuntu 14.10 which has kernel 3.16
@ freezx,
yeah, many laptops, specially asus laptops are facing that problem. It’s because of the main driver is not that resource efficient. You have to wait until mediatek releases an efficient version of the driver.
Bug report for this problem and related discussions
great , very useful!
Thanks!
Ubuntu 20.04 does not have MediaTek driver MT7921 for WIFI & Bluetooth?
I bought a new laptop «Acer Aspire 5 A515-56-555H» with default OS — Windows 10 which running fine with all devices. I manage to install Ubuntu 20.04 in separate disk partition, but WiFi and bluetooth do NOT work. I notice Ubuntu 20.04 does not have Media Tek MT7921 driver for WIiFi and bluetooth. How can I download & install the drivers? Is there anyone who can help me?
askubuntu.com/questions/1333793/… and medium.com/@pjbgf/… indicates support with kernel 5.12+ (needs to be manually installed — there are always caveats when using non-standard kernels)
Thanks for the idea. I’m not good on compiling kernel and manual install Linux 5.12 may encounter other issues :).
My Asus Vivobook M7400Q had the MT7921 before I decided to replace it. On Ubuntu 20.04 / kernel 5.13 the WIFI adapter was either not found or it was found and would be very slow. Upgrading the kernel to 5.15.x and Ubuntu to 21.10 resolved some issues, but not all. The WIFI adapter would be detected in most cases, but not all. Bluetooth would not recognize my mouse anymore after sleep and wake up, forcing me to pair it again about 10 times per day. My advise: just buy an Intel AX200 for 20 eur with this laptop and install it. This adapter has zero WIFI or Bluetooth issues with Ubuntu 20.04
5 Answers 5
You must upgrade the Linux kernel to 5.14, and the rest of Ubuntu to 21.04.
How to upgrade from Kernel 5.11 to 5.14 click here
How to upgrade from Ubuntu 20.04 to 21.04 click here
I was having the same issue on TUF A17. It has MT7961 chipset. I was able to fix it with updating to latest kernel release (5.15-rc6):
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.15-rc6/amd64/linux-headers-5.15.0-051500rc6-generic_5.15.0-051500rc6.202110180730_amd64.deb wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.15-rc6/amd64/linux-headers-5.15.0-051500rc6_5.15.0-051500rc6.202110180730_all.deb wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.15-rc6/amd64/linux-image-unsigned-5.15.0-051500rc6-generic_5.15.0-051500rc6.202110180730_amd64.deb wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.15-rc6/amd64/linux-modules-5.15.0-051500rc6-generic_5.15.0-051500rc6.202110180730_amd64.deb sudo dpkg -i *.deb sudo reboot now