Dropping Internet connection on Realtek Semiconductor Co., Ltd. RTL8821AE

Solution 1:

I had the same issue,My network card is RTL8821AE 802.11ac PCIe Wireless Network Adapter.I did the following steps to get it working:

sudo apt-get install git build-essential
git clone https://github.com/lwfinger/rtlwifi_new.git
cd rtlwifi_new
make
sudo make install

Your WiFi will now work fine but you will need to re-install it after each kernel upgrade. Or this code might work:

sudo dkms add ./rtlwifi_new

Solution 2:

Install this driver from a PPA

sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt update
sudo apt install rtlwifi-new-dkms

It is a better driver that should support your adapter.