Ever since I installed a distro onto my Laptop which is a ASUS X550jX I had always had an issue where the wifi would drop out every 30 mins or so. After awhile of browsing I found a website called Medium.com and a post there by elmaxx who had a fix for my wifi adapter, so I thought I would post the command here for anyone else having an issue with a RTL8821AE Wifi adapter. (Website link)
sudo apt-get install linux-headers-generic build-essential git
git clone http://github.com/lwfinger/rtlwifi_new.git
sudo make install
Then reboot and run the following to make sure everything is up and running.
sudo modprobe -r rtl8821ae
sudo modprobe rtl8821ae