LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Realtek rtl8822be blues on the new Lenovos.. Flex 6-ARR, Flex 14 AMD Ryzen 2200U specifically (https://www.linuxquestions.org/questions/linux-newbie-8/realtek-rtl8822be-blues-on-the-new-lenovos-flex-6-arr-flex-14-amd-ryzen-2200u-specifically-4175639617/)

w00tus 10-02-2018 04:53 PM

Realtek rtl8822be blues on the new Lenovos.. Flex 6-ARR, Flex 14 AMD Ryzen 2200U specifically
 
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 :D)

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..

AwesomeMachine 10-03-2018 04:18 PM

Good job! I'm impressed with your diligence and presentation.

5 Ghz is faster. 2.4 Ghz has longer range and is compatible with more devices. Also, if you want matching headers, you can install: 'linux-headers-amd64', and it will install all of them.

w00tus 10-04-2018 12:45 PM

Quote:

Originally Posted by AwesomeMachine (Post 5910778)
Good job! I'm impressed with your diligence and presentation.

5 Ghz is faster. 2.4 Ghz has longer range and is compatible with more devices. Also, if you want matching headers, you can install: 'linux-headers-amd64', and it will install all of them.

HOLY SMOKES!! Thank you for that! :D I didn't see that ANYWHERE on the internet! [sarcasm]And I looked at every site in existence in every language! [/sarcasm] lol Seriously though, I never heard mention anywhere of any amd64 specific headers. I put that in my "fixes" folder for later research. Thanks for the knowledge.

The next challenge to overcome on this thing is to make the trackpad work. I figure once I get that figured out, I'll add it to the bottom of this post. After that will be the touch screen, etc etc etc.. Perhaps if it could be cleaned up and made easier to follow it could turn into a guide that poor souls that buy this laptop in the future can google. Might take me a while though. I've got a full time+ job, sick kids, the works. I mainly only get to work on this while I'm in the bathroom.

w00tus 10-07-2018 03:01 PM

So, I went ahead and reinstalled from scratch and I'm using this guide to try to get back to where I was.

Question for the gurus - is it ok if I edit the original post as I go, flesh it out into a proper tutorial and submit it for your approval to put somewhere as an archived "how to?" I may be the only beneficiary of that, but maybe someone else who buys this exact same laptop and likes Debian will google it and save some hair.

AwesomeMachine 10-08-2018 07:46 PM

I think it's more how new the hardware is. After a year or so it should work out of the box. But, knock yourself out.

w00tus 10-11-2018 06:03 PM

Cool, thanks. :)

You're right, of coarse. After a year or so, it will be a non-issue. However, until then, this is an enraging issue..

capt ron 10-11-2018 08:07 PM

It was useful in the sense that I have taken that particular laptop off the list as a replacement for my old Dell that just committed suicide.

w00tus 10-13-2018 12:30 PM

Quote:

Originally Posted by capt ron (Post 5913809)
It was useful in the sense that I have taken that particular laptop off the list as a replacement for my old Dell that just committed suicide.

lol :)


All times are GMT -5. The time now is 02:19 PM.