I found the solution. I installed the driver for the usb wifi adapter successfully using the following:
sudo apt-get update
sudo apt-get install linux-headers-$(uname -r)
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install git
git clone https://github.com/lwfinger/rtl8188eu
cd rtl8188eu
make all
sudo make install
sudo modprobe 8188eu.ko
and then I used the following command:
sudo lshw -C network
to get the internal wifi driver file name and then add it to blacklist
sudo -H gedit /etc/modprobe.d/blacklist
and add the following line to the end of the file:
blacklist xxxxx
where xxxx
is the internal wifi driver file name.
Restart and Ubuntu should now work with the usb adapter.
Note: if your internal wifi is fine then you don’t need to blacklist it, i only did that because it was tuened off by hardware switch and doesn’t want to turn on again and it turns off the usb wifi as well so i had to blacklist it.
Actually there are 2 different revision of this tl-wn725n wifi adapter, the v1 and the v2 which have different chipsets.
How to recognize them?
The tp-link website say that is possible to recognize them by the FCCID (labeled on the adapter).
If your FCCID terminates with v2 then is the second revision, which use the RTL8188EUS Realtek chipset.
Otherwise if your FCCID terminates with v1 (or you can’t find a hardware version) it is the first revision, based on the Realtek RTL8188CUS chipset.
Where do i find the driver?
For the v2 version on the tp-link website : here
For the v1 version here (from realtek) , or here
More info:
https://wikidevi.com/wiki/TP-LINK_TL-WN725N_v1
https://help.ubuntu.com/community/HardwareSupportComponentsWirelessNetworkCardsTP-Link#USB
[FAILED] ubuntu 16.04 上使用 TP-LINK WN725N 免驱版 无线网卡
sudo apt-get install linux-headers-generic build-essential git
git clone https://github.com/art567/mt7601usta.git
cd mt7601usta/src
make
sudo make install
sudo mkdir -p /etc/Wireless/RT2870STA/
sudo cp RT2870STA.dat /etc/Wireless/RT2870STA/
sudo modprobe mt7601Usta
注意:考虑到之前的驱动已经加载,在执行modprobe之前,应该考虑先将之前的驱动rmmod掉。(实际尝试后发现然并卵。)
系统默认驱动信息:
modinfo mt7601u
filename: /lib/modules/4.4.0-81-generic/kernel/drivers/net/wireless/mediatek/mt7601u/mt7601u.ko
license: GPL
firmware: mt7601u.bin
srcversion: C4F802D4D12C5BC2BA7FEB7
alias: usb:v7392p7710d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v2A5Fp1000d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v2955p1001d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v2955p0001d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v2717p4106d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v2001p3D04d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v148Fp760Dd*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v148Fp760Cd*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v148Fp760Bd*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v148Fp760Ad*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v148Fp7601d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v13D3p3434d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v13D3p3431d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0E8Dp760Bd*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0E8Dp760Ad*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0B05p17D3d*dc*dsc*dp*ic*isc*ip*in*
depends: mac80211,cfg80211
intree: Y
vermagic: 4.4.0-81-generic SMP mod_unload modversions