You are not logged in.

#1 2018-12-15 22:02:05

anim
Member
Registered: 2018-11-02
Posts: 9

Legion Y530 wifi issues

Hello, please help. I have walked through Wiki many times by now. I can't get my wifi to work. It's been already three months I live on wired connection.
Here I provide some diagnostics that might be useful:
lspci -k -q kernel drivers
lsmod
dmesg logs
dmesg | grep -e 8822 -e wlp the logs?
lsusb -v a lot of text
rfkill list
systemctl list-units
ip link <if> up < messages "RTNETLINK answers: Operation not permitted"
dmesg -w < this happens when I toggle the hardware button on this device: <fn> + <f8>
and even iw dev
Kernel version: 4.19.8-arch1-1-ARCH

It's realtek again.

What do I do?

wifi-menu says it can't set interface up:

Scanning for networks... Could not set interface wlp6s0f0 flags (UP): Operation not permitted
nl80211: Could not set interface 'wlp6s0f0' UP
Could not set interface wlp6s0f0 flags (UP): Operation not permitted
WEXT: Could not set interface 'wlp6s0f0' UP
wlp6s0f0: Failed to initialize driver interface
failed
No networks found

Although in strange way - once I was able to enjoy portability with my laptop - once this wifi-menu did work (until a restart), by then (2 weeks ago) I decided that you guys fixed the kernel or something.
What do I do now...? Is there a hope? Any insight much appreciated.

Offline

#2 2018-12-15 23:19:23

seth
Member
Registered: 2012-09-03
Posts: 49,975

Re: Legion Y530 wifi issues

a) does it work w/ the lts kernel?
b) does it work if you disable PM in the driver, "r8822be.ips=0 r8822be.swlps=0 r8822be.fwlps=0 r8822be.aspm=0", see https://wiki.archlinux.org/index.php/Ke … le_options

Offline

#3 2018-12-16 01:03:30

anim
Member
Registered: 2018-11-02
Posts: 9

Re: Legion Y530 wifi issues

Thank you for response, and ideas... no luck so far.
I intalled lts (4.14.88-1-lts) kernel, booted into that - no wifi interface even, then immediately rebooted - interface is listed.
Still all the same problems wifi problems observed.

Then (if I understood correctly), I added a file "wifi-attempt.conf" in "/etc/mdprobe.d/" with these contents:

options r8822be ips=0
options r8822be swlps=0
options r8822be fwlps=0
options r8822be aspm=0

Rebooted, still no improvements.

dmesg shows this line when I run my [ada@archlinux ~]$ sudo ip link set wlp6s0f0 up

[  233.870531] r8822be: halmac_init_hal failed
[ada@archlinux ~]$ dmesg | grep r8822be
[    9.195331] r8822be: module is from the staging directory, the quality is unknown, you have been warned.
[    9.282261] r8822be: Using firmware rtlwifi/rtl8822befw.bin
[    9.315999] r8822be: rtlwifi: wireless switch is on
[    9.592347] r8822be 0000:06:00.0 wlp6s0f0: renamed from wlan0
[  128.573766] r8822be: halmac_init_hal failed
[  134.653932] r8822be: halmac_init_hal failed

p.s. annoying 1:30 min I have to wait every boottime (becasue wpa_suplicant tries to do something until a timeout)

Last edited by anim (2018-12-16 01:09:00)

Offline

#4 2018-12-16 08:08:49

seth
Member
Registered: 2012-09-03
Posts: 49,975

Re: Legion Y530 wifi issues

Disable whatever network service is trying to bring the wifi up.

Speaking of which:

NetworkManager.service                                                             loaded active running   Network Manager
wpa_supplicant.service                                                             loaded active running   WPA supplicant 

Output of

systemctl list-unit-files --state=enabled

Also, though I found no indication: is there a parallel windows installation?

Offline

#5 2018-12-16 11:42:36

anim
Member
Registered: 2018-11-02
Posts: 9

Re: Legion Y530 wifi issues

Current output of systemctl list-unit-files --state=enabled

UNIT FILE        STATE  
autovt@.service  enabled
getty@.service   enabled
httpd.service    enabled
mariadb.service  enabled
mysqld.service   enabled
php-fpm.service  enabled
remote-fs.target enabled

So, I disabled all NetworkManager servicess and wpa_suplicant services (did not stop them, just disabled).
Tried to set up interface (no luck) - then reboot (not sure if reboot was needed).
Then during boottime observed another timeout 1:30 min relating wlp6s0, once booted no wlp6s0 interface is listed in "ip link".
Then reboot again (handgs on message "detatching DM devices" also, what is that thing?), then force shut and boot again.
There is wlp6s0 listed, but no luck on setting it up (all is the same .. hard blocked etc.).

Information I have gathered around web - this wifi card is 2in1 with bluetooth (a thing I can live without).

No there is no windows here. Just two arches (I use bootctl) and 4 boot/entries (the two of them are just using LTS).

Offline

#6 2019-02-21 13:18:19

RL______
Member
Registered: 2019-02-21
Posts: 1

Re: Legion Y530 wifi issues

Have you fixed it now? I have the same issue on legionY530 with Ubuntu. none of  aspm=0/1/2 works.
With aspm=1, sometimes wifi works, sometimes it doesn't (nothing changed, just reboot, strange).  when it doesn't, dmesg shows r8822be: halmac_init_hal failed
With aspm=0 and aspm=2 dmesg shows different errors.
I got something Iike this too ACPI BIOS Error (bug): Could not resolve [\_SB.PCI0.XHC.RHUB.HS01]

Offline

#7 2019-02-21 14:28:13

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,786
Website

Re: Legion Y530 wifi issues

RL______ these are the Arch Linux support forums, and while you are welcome to subscribe to threads that interest you, and provide support where you feel inclined, you should seek support from the Ubuntu support channels.

https://wiki.archlinux.org/index.php/Co … ort_*only*


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#8 2019-03-29 19:54:34

hiPhile
Member
Registered: 2019-03-25
Posts: 2

Re: Legion Y530 wifi issues

Perhaps this might help others who run into this problem.  I recently purchased a Lenovo Flex 14 2-in-1.  It has the same WiFi adapter RTL8822B and was working for several weeks.  I am running Reborn OS which is based off Antergos OS.  I was using the Lenovo last night and this morning.  Just recently, there was an update that I suspect might have caused the WiFi to stop working, but I am not certain.  It could have been related to any of the following packages which were installed and then the WiFi started to fail with the same error reported here.  It might be the intel-ucode or iana-etc, but I would have go back and test it, but the good news is the kernel parameter workaround does seem to fix this issue (aspm=0):

[2019-03-29 10:55] [PAMAC] synchronizing package lists
[2019-03-29 10:56] [ALPM] transaction started
[2019-03-29 10:56] [ALPM] upgraded iana-etc (20190228-1 -> 20190312-1)
[2019-03-29 10:56] [ALPM] upgraded curl (7.64.0-9 -> 7.64.1-2)
[2019-03-29 10:56] [ALPM] upgraded gnupg (2.2.14-1 -> 2.2.15-1)
[2019-03-29 10:56] [ALPM] upgraded gpgme (1.12.0-2 -> 1.13.0-1)
[2019-03-29 10:56] [ALPM] upgraded flatpak (1.2.4-1 -> 1.3.1-1)
[2019-03-29 10:56] [ALPM] upgraded flatpak-builder (1.0.5-2 -> 1.0.6-1)
[2019-03-29 10:56] [ALPM] upgraded gnome-software (3.32.0-1 -> 3.32.0-2)
[2019-03-29 10:56] [ALPM] upgraded intel-ucode (20180807.a-1 -> 20190312-1)
[2019-03-29 10:56] [ALPM] transaction completed
[2019-03-29 10:56] [ALPM] running 'antergos-reboot.hook'...
[2019-03-29 10:56] [ALPM] running 'glib-compile-schemas.hook'...
[2019-03-29 10:56] [ALPM-SCRIPTLET] No such key “show-nonfree-software” in schema “org.gnome.software” as specified in override file “/usr/share/gl
ib-2.0/schemas/95_deepin.gschema.override”; ignoring override for this key.
[2019-03-29 10:56] [ALPM] running 'gtk-update-icon-cache.hook'...
[2019-03-29 10:56] [ALPM] running 'systemd-daemon-reload.hook'...
[2019-03-29 10:56] [ALPM] running 'systemd-update.hook'...
[2019-03-29 10:56] [ALPM] running 'texinfo-install.hook'...
[2019-03-29 10:56] [ALPM] running 'update-desktop-database.hook'...

I saw the same problem in my journalctl and dmesg logs, I searched and found the workaround to this issue.  https://github.com/torvalds/linux/commi … 324bd603c7

journalctl entries:

not working:

Mar 29 11:20:34 flex14 kernel: audit: type=1325 audit(1553883634.423:30): table=filter family=10 entries=4
Mar 29 11:20:34 flex14 NetworkManager[771]: <info>  [1553883634.4282] device (wlp2s0): state change: unmanaged -> unavailable (reason 'managed', s>
Mar 29 11:20:34 flex14 audit: NETFILTER_CFG table=filter family=2 entries=6
Mar 29 11:20:34 flex14 kernel: audit: type=1325 audit(1553883634.436:31): table=filter family=2 entries=6
Mar 29 11:20:34 flex14 kernel: r8822be: halmac_init_hal failed
Mar 29 11:20:34 flex14 NetworkManager[771]: <warn>  [1553883634.4538] platform-linux: do-change-link[2]: failure changing link: failure 1 (Operati>
Mar 29 11:20:34 flex14 NetworkManager[771]: <info>  [1553883634.4547] device (wlp2s0): set-hw-addr: set MAC address to 3E:D2:66:B0:7F:53 (scanning)
Mar 29 11:20:34 flex14 NetworkManager[771]: <warn>  [1553883634.4550] platform-linux: do-change-link[2]: failure changing link: failure 1 (Operati>
Mar 29 11:20:34 flex14 kernel: r8822be: halmac_init_hal failed

working:

Mar 29 10:53:58 flex14 kernel: r8822be: Using firmware rtlwifi/rtl8822befw.bin
Mar 29 10:53:58 flex14 kernel: ieee80211 phy0: Selected rate control algorithm 'rtl_rc'
Mar 29 10:53:58 flex14 kernel: r8822be: rtlwifi: wireless switch is on
Mar 29 10:53:58 flex14 kernel: input: MSFT0001:01 04F3:304B Touchpad as /devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-1/i2c-MSFT0001:01/00>
Mar 29 10:53:58 flex14 kernel: hid-multitouch 0018:04F3:304B.0001: input,hidraw0: I2C HID v1.00 Mouse [MSFT0001:01 04F3:304B] on i2c-MSFT0001:01
Mar 29 10:53:58 flex14 systemd-udevd[355]: Using default interface naming scheme 'v240'.
Mar 29 10:53:58 flex14 systemd-udevd[355]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
Mar 29 10:53:58 flex14 kernel: r8822be 0000:02:00.0 wlp2s0: renamed from wlan0
Mar 29 10:53:58 flex14 systemd-networkd[311]: wlan0: Interface name change detected, wlan0 has been renamed to wlp2s0.

dmesg:

[finn@flex14 Documents]$ dmesg |grep rtl
[    3.824405] r8822be: Using firmware rtlwifi/rtl8822befw.bin
[    3.838069] ieee80211 phy0: Selected rate control algorithm 'rtl_rc'
[    3.838381] r8822be: rtlwifi: wireless switch is on
[    4.837939] Bluetooth: hci0: RTL: rtl: examining hci_ver=07 hci_rev=000b lmp_ver=07 lmp_subver=8822
[    4.838937] Bluetooth: hci0: RTL: rtl: loading rtl_bt/rtl8822b_fw.bin
[    4.839722] Bluetooth: hci0: RTL: rtl: loading rtl_bt/rtl8822b_config.bin
[finn@flex14 Documents]$ dmesg |grep r8822be
[    3.704762] r8822be: module is from the staging directory, the quality is unknown, you have been warned.
[    3.824405] r8822be: Using firmware rtlwifi/rtl8822befw.bin
[    3.838381] r8822be: rtlwifi: wireless switch is on
[    3.842309] r8822be 0000:02:00.0 wlp2s0: renamed from wlan0
[    5.990211] r8822be: halmac_init_hal failed
[    5.991585] r8822be: halmac_init_hal failed
[    6.044855] r8822be: halmac_init_hal failed
[    6.045581] r8822be: halmac_init_hal failed
[   16.004962] r8822be: halmac_init_hal failed
[   16.005591] r8822be: halmac_init_hal failed
[   26.005317] r8822be: halmac_init_hal failed
[   26.006012] r8822be: halmac_init_hal failed
[   36.005315] r8822be: halmac_init_hal failed
[   36.006009] r8822be: halmac_init_hal failed
[   46.008034] r8822be: halmac_init_hal failed
[   46.008698] r8822be: halmac_init_hal failed
[   56.013559] r8822be: halmac_init_hal failed
[   56.014317] r8822be: halmac_init_hal failed
[ 1362.533206] r8822be: halmac_init_hal failed
[ 1363.549908] r8822be: halmac_init_hal failed
[ 1364.140509] r8822be: halmac_init_hal failed
[finn@flex14 Documents]$

Last edited by hiPhile (2019-03-29 20:21:13)

Offline

#9 2019-03-29 20:07:22

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,424

Re: Legion Y530 wifi issues

Thanks for sharing a potential solution, could you please wrap these outputs in [ code ] tags?

Online

#10 2019-03-29 20:22:43

hiPhile
Member
Registered: 2019-03-25
Posts: 2

Re: Legion Y530 wifi issues

V1del wrote:

Thanks for sharing a potential solution, could you please wrap these outputs in [ code ] tags?

Done.  Oh, and just read the post about not running pure Arch, so should I delete the post and post in the Reborn OS forum?

Offline

#11 2019-03-29 20:44:31

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,424

Re: Legion Y530 wifi issues

It's mostly problematic if you expect us to provide support to you, however as this is a potential solution that is applicable to a multitude of systems it'd be fine to keep it here.

Online

Board footer

Powered by FluxBB