LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-02-2018, 04:53 PM   #1
w00tus
Member
 
Registered: Jun 2017
Location: Mars on the first shuttle available.
Distribution: Debian, Kali, Raspbian
Posts: 44
Blog Entries: 4

Rep: Reputation: Disabled
Post 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 )

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

Last edited by w00tus; 10-13-2018 at 09:52 PM. Reason: I figured out a better/easier way. Plus, wanted to make it easier to follow in format.
 
Old 10-03-2018, 04:18 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
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.

Last edited by AwesomeMachine; 10-03-2018 at 04:21 PM.
 
Old 10-04-2018, 12:45 PM   #3
w00tus
Member
 
Registered: Jun 2017
Location: Mars on the first shuttle available.
Distribution: Debian, Kali, Raspbian
Posts: 44

Original Poster
Blog Entries: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by AwesomeMachine View Post
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! 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.
 
Old 10-07-2018, 03:01 PM   #4
w00tus
Member
 
Registered: Jun 2017
Location: Mars on the first shuttle available.
Distribution: Debian, Kali, Raspbian
Posts: 44

Original Poster
Blog Entries: 4

Rep: Reputation: Disabled
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.
 
Old 10-08-2018, 07:46 PM   #5
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
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.
 
Old 10-11-2018, 06:03 PM   #6
w00tus
Member
 
Registered: Jun 2017
Location: Mars on the first shuttle available.
Distribution: Debian, Kali, Raspbian
Posts: 44

Original Poster
Blog Entries: 4

Rep: Reputation: Disabled
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..
 
Old 10-11-2018, 08:07 PM   #7
capt ron
Member
 
Registered: Aug 2003
Location: Albuquerque New Mexico
Distribution: LinuxMint 19.1
Posts: 53

Rep: Reputation: 9
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.
 
Old 10-13-2018, 12:30 PM   #8
w00tus
Member
 
Registered: Jun 2017
Location: Mars on the first shuttle available.
Distribution: Debian, Kali, Raspbian
Posts: 44

Original Poster
Blog Entries: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by capt ron View Post
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
flex actuser Linux - Newbie 1 10-30-2014 01:28 PM
[Flex & Bison] How to check which state Flex is in? courteous Programming 0 06-03-2011 11:46 AM
How to install flex PankajDS Linux - General 3 02-14-2008 12:44 PM
bison / flex zaman Programming 1 08-16-2005 10:19 AM
anyone knows how to use flex???? tuxfood Programming 1 04-27-2004 06:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration