RTL8822BE Wifi [10ec:b822] subsystem [17aa:b023] crashes on 20.04 on Lenovo Legion Y530

Bug #1875099 reported by campus
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ubuntu MATE
New
Undecided
Unassigned
linux (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

After upgrading Ubuntu Mate to 20.04 , my wifi crashed on Lenovo legion Y530. The strange thing is that it connects to the network, i have internet for some time (usually between 1 and 10 minutes) and then it disconnects.
After that, the applet shows me something like device not ready and i can only restart the computer to connect. Then it crashes again...
I also tried a fresh install with the same results.
I used 19.04 and 19.10 on the same laptop as my primary operating system and wifi worked flawlessly.

Since I do my work on this laptop i was forced to downgrade back to 19.10 for now.
This is my lshw -C network (from 19.10 If I remember correctly it was RTL8822BE also in 20.04)
  *-network
       description: Wireless interface
       product: RTL8822BE 802.11a/b/g/n/ac WiFi adapter
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:07:00.0
       logical name: wlp7s0
       version: 00
       serial: dc:a2:66:80:7d:7d
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=rtw_pci driverversion=5.3.0-46-generic firmware=N/A ip=192.168.0.146 latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: irq:141 ioport:4000(size=256) memory:a4300000-a430ffff
  *-network
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:08:00.0
       logical name: enp8s0
       version: 15
       serial: 8c:16:45:e9:e9:a8
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 firmware=rtl8168h-2_0.0.2 02/26/15 latency=0 link=no multicast=yes port=MII
       resources: irq:17 ioport:3000(size=256) memory:a4204000-a4204fff memory:a4200000-a4203fff

and my lspci -nnk | grep -A2 0280

07:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8822BE 802.11a/b/g/n/ac WiFi adapter [10ec:b822]
 Subsystem: Lenovo RTL8822BE 802.11a/b/g/n/ac WiFi adapter [17aa:b023]
 Kernel driver in use: rtw_pci

If you think it is necessary, I can try to install 20.04 on an external hard drive and give you some more info from there.
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: campus 1207 F.... pulseaudio
CasperMD5CheckResult: skip
CurrentDesktop: MATE
DistroRelease: Ubuntu 20.04
InstallationDate: Installed on 2020-05-09 (0 days ago)
InstallationMedia: Ubuntu-MATE 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
MachineType: LENOVO 81FV
NonfreeKernelModules: nvidia_modeset nvidia
Package: linux (not installed)
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-29-generic root=UUID=2ba3f662-50a5-4db8-a5e1-ddaf5e09d5a9 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 5.4.0-29.33-generic 5.4.30
RelatedPackageVersions:
 linux-restricted-modules-5.4.0-29-generic N/A
 linux-backports-modules-5.4.0-29-generic N/A
 linux-firmware 1.187
Tags: focal
Uname: Linux 5.4.0-29-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 07/18/2018
dmi.bios.vendor: LENOVO
dmi.bios.version: 8JCN43WW
dmi.board.asset.tag: NO Asset Tag
dmi.board.name: LNVNB161216
dmi.board.vendor: LENOVO
dmi.board.version: NO DPK
dmi.chassis.asset.tag: NO Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Lenovo Legion Y530-15ICH
dmi.modalias: dmi:bvnLENOVO:bvr8JCN43WW:bd07/18/2018:svnLENOVO:pn81FV:pvrLenovoLegionY530-15ICH:rvnLENOVO:rnLNVNB161216:rvrNODPK:cvnLENOVO:ct10:cvrLenovoLegionY530-15ICH:
dmi.product.family: Legion Y530-15ICH
dmi.product.name: 81FV
dmi.product.sku: LENOVO_MT_81FV_BU_idea_FM_Legion Y530-15ICH
dmi.product.version: Lenovo Legion Y530-15ICH
dmi.sys.vendor: LENOVO

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1875099

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: eoan
You-Sheng Yang (vicamo)
tags: added: hwe-networking-wifi
summary: - Wifi crashes on 20.04 on Lenovo Legion Y530
+ RTL8822BE Wifi [10ec:b822] subsystem [17aa:b023] crashes on 20.04 on
+ Lenovo Legion Y530
Revision history for this message
campus (nelucampean) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
campus (nelucampean) wrote : CRDA.txt

apport information

Revision history for this message
campus (nelucampean) wrote : CurrentDmesg.txt

apport information

Revision history for this message
campus (nelucampean) wrote : IwConfig.txt

apport information

Revision history for this message
campus (nelucampean) wrote : Lspci.txt

apport information

Revision history for this message
campus (nelucampean) wrote : Lspci-vt.txt

apport information

Revision history for this message
campus (nelucampean) wrote : Lsusb.txt

apport information

Revision history for this message
campus (nelucampean) wrote : Lsusb-t.txt

apport information

Revision history for this message
campus (nelucampean) wrote : Lsusb-v.txt

apport information

Revision history for this message
campus (nelucampean) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
campus (nelucampean) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
campus (nelucampean) wrote : ProcEnviron.txt

apport information

Revision history for this message
campus (nelucampean) wrote : ProcInterrupts.txt

apport information

Revision history for this message
campus (nelucampean) wrote : ProcModules.txt

apport information

Revision history for this message
campus (nelucampean) wrote : PulseList.txt

apport information

Revision history for this message
campus (nelucampean) wrote : RfKill.txt

apport information

Revision history for this message
campus (nelucampean) wrote : UdevDb.txt

apport information

Revision history for this message
campus (nelucampean) wrote : WifiSyslog.txt

apport information

Revision history for this message
campus (nelucampean) wrote :

This was the tail of dmesg on the last crash

Revision history for this message
campus (nelucampean) wrote :

Hello!
I did a quick search with the error from dmesg "failed to read DBI register, addr=0x0719" and found this. https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1872984.
Then I updated the bios of my laptop to latest version available from Lenovo website (I have dual boot) and now wifi seems to work fine.

Revision history for this message
campus (nelucampean) wrote :

Ok, after a few hours the problem came back so bios upgrade is not a solution.
While searching for a possible solution I discovered that there are a number of distributions inpacted by this bug (not all debian based) so it must be a kernel bug.
https://forums.linuxmint.com/viewtopic.php?t=290987
https://forums.kali.org/showthread.php?45021-rtl8822be-wifi-not-working-after-updated-to-kernel-5-2-0
https://access.redhat.com/discussions/4302461
For now I'm reverting to eoan because the wifi is not usable in focal.

I'm attaching my kernel log from the last crash.

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :
Revision history for this message
campus (nelucampean) wrote :

I've tested the kernel with the same results.
What was even stranger was the fact that after rebooting back to 19.10 i couldn't connect to the network anymore.
Only after i rebooted to windows and back to linux thw wifi worked.
I've atached the dmesg with the kernel

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Does cold boot help?

Revision history for this message
Siddharth Pathania (sidpathania) wrote :

I've got the exact same bug. I dual booted my legion y530 with Ubuntu 20.04. And can only use my wifi if I boot windows and then restart to boot into Ubuntu.

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Can you please test cold boot on Linux?

Norbert (nrbrtx)
tags: removed: crash eoan hwe-networking-wifi wifi
You-Sheng Yang (vicamo)
tags: added: crash eoan hwe-networking-wifi wifi
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.