Ok, so your bought this laptop: Lenovo Flex 14, with the sweet sweet AMD Ryzen 3 and Vega integrated graphics.
(Model: Flex 6-14ARR // PN: 81HA000AUS) But.. It has a problematic wireless card - Realtek rtl8822be 10EC:B822.
If, like me, you've already been pulling your hair out trying to get this thing to work with Linux, I'll spare you stories and anecdotes and just get to the meat and potatoes.
(Braces for impact from the Gurus - this is just the best distro I've ever found for doing my job that has nothing to do with penetration testing)
The specific Linux distribution that I'm using, which I've done all of this on and verified it to work is Kali Linux (kernel 4.18.0-kali1-amd64). This guide was made and tested on 13OCT18. This "should" work for Debian or any Debian derivatives. Key word "should."
First, open up a terminal. (Things in parentheses are things that you won't type into the terminal. Things not in parentheses are actual commands and lines to type into the terminal.) If you're using Debian or anything other than Kali, to save some time, go to your root user by typing:
su root
(enter your root password)
(push enter)
(Now that you're root..)
(Now, type the following in one line at a time, hitting enter after each one to enter them)
apt update
dpkg --add-architecture i386
apt update
apt install links:i386
apt update
apt upgrade
apt install linux-headers-$(uname -r)
(Now reboot your computer. After that, open up a terminal and type the following
apt update
apt install dkms libomp-dev autoconf automake bison build-essential doxygen flex g++ git libncurses5-dev libsqlite3-dev libtool make mcpp pkg-config python zlib1g-dev vim gedit rfkill
(Type "Y" then hit enter to let everything that's not already installed install)
cd Downloads
git clone -b extended
https://github.com/lwfinger/rtlwifi_new.git
sudo dkms add ./rtlwifi_new
sudo dkms install rtlwifi-new/0.6
(reboot your computer)
vim /etc/modprobe.d/rtl8822be.conf
(Hit the "I" key, then type)
options rtl8822be aspm=0
(Hit "Esc")
:w!
:q!
vim /etc/modprobe.d/myownblacklist.conf
(Hit the "I" key, then type)
blacklist ideapad_laptop
(Hit "Esc")
:w!
:q!
(reboot your computer)
(Everything should work now.. But if not - do the following)
(Open a terminal)
su root
(enter your root password)
(push enter)
rfkill list all
(Look and see what's hard and soft blocked. If things are "hard blocked" then you may need to repeat the steps in this guide. Double and triple check each command before you hit enter. If things are "soft blocked," then all you have to do is type..)
rfkill unblock all
(*note* "rfkill ublock all" will only unblock soft blocks. It won't do anything about hard blocks - I think the hard blocks are caused by a hardware switch that's triggered by a key combination on this laptop that will not work in Linux - hence all the Vim work.)
That's it! Your wifi should be working like a beast now!
====================
Original post below
====================
No Debian based distro I've tried is capable of wireless networking out of the box on this laptop (Flex 14 with AMD/Vega). This is what I've found that has almost gotten me to a resolution.
I have been dealing with this **** for a few days now. I've still not actually managed to connect to my own ********* wifi yet.. BUT!! I can finally see my wifi adapter in gnome, see my wifi SSID and even try to connect to it. HUUUUUUGE breakthrough, so I wanted to share this progress before I take this laptop skeet shooting.
I'm writing this post mainly so people will google it while dealing with this issue and get to the same point I'm at and hopefully figure out how to get to the finish line and post a comment. (Or one of the gurus here will do so
)
My laptop I'm doing all this on:
Model: Flex 6-14ARR
PN: 81HA000AUS
Wifi adapter:
Realtek
rtl8822be
10EC:B822
*NOTE* I always operate as root. Yes, irresponsible and such, but if I screw up my system, I just start from scratch. The lessons sink in that way. So, you may have to type "sudo" before some of the commands I'm about to show you. Also, this is assuming you figured out how to even get Linux installed on this laptop. It was a process with no clear guides anywhere. I'm also assuming you have secure boot disabled and wireless enabled in your BIOS.
The first thing (that made me any progress) I had to do was make sure the kernel headers matched the kernel. The only way I knew to do this was to uninstall the headers I had and reinstall the right ones. (I don't know how to just "verify.")
# apt remove linux-headers-$(uname -r)
# apt install linux-headers-$(uname -r)
(source): Can't remember
Next, I had to use the proper driver installer (which would not "make" with mismatched headers)
git clone
https://github.com/lwfinger/rtlwifi_new.git
cd rtlwifi_new
make install
modprobe -r rtl8822be
modprobe rtl8822be
(source):
https://github.com/lwfinger/rtlwifi_new
Then, I had to make a rtl8822be.conf file in /etc/modprobe.d with the line "options rtl8822be aspm=0":
# vim /etc/modprobe.d/rtl8822be.conf
Hit the "I" key, then type -
options rtl8822be aspm=0
Hit "Esc"
Push ":w!"
Push ":q!"
(source):
https://ubuntuforums.org/showthread....2364383&page=4
Then, I had to make a black list conf file in modprobe.d called "myownblacklist.conf"
# vim /etc/modprobe.d/myownblacklist.conf
Hit the "I" key, then type -
blacklist ideapad_laptop
Hit "Esc"
Push ":w!"
Push ":q!"
(source):
https://forums.lenovo.com/t5/Lenovo-...d/td-p/1307405
So this is where I'm at. I still can't actually connect to my wifi because it says that my password is wrong. I'm looking RIGHT at it on another computer logged into my router. Yes, I held the reset button for 35 seconds and started all over from scratch just to guarantee that the password was right, and tested it on my phone, other computer and the nest thermostat my girlfriend thought was a good idea.
Please, feel free to cuss and discuss this issue. Many people around the world are pulling their hair out.
*Edit 5 minutes later* I'm an idiot.. I was trying to connect to the 2.4Ghz connection. Connected to the 5Ghz first try, no issues.. Sucks that I have to use the less able to punch through walls option.. But I have an option now..