New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Has anyone fixed the wifi problem yet? #70
Comments
You should put the following in [connection]
wifi.powersave = 2
[device]
wifi.scan-rand-mac-address=false If you don't use NetworkManager, you can follow this wiki entry: |
Already done that, So some of the things that doesnt work:
Ive tried litterarly all of the solutions that google can offer and none work and it seems im far from the only one. I love rundning linux on the machine which ive done since jakeday kernel 3 or something with the wifi problem always present, im geting tired of it and it leans towards reverting to windows on this one if its an unfixable problem 😔😔 |
My dmesg when its working: |
Having this problem too. :) I'm using the Surface Pro 3, and I'm not sure if I got the kernel installed properly. |
Write uname - a to se what kernel you are using. It should say something like "Linux <your dist (in my case pop-os) > 5.3.18-surface" and after the date and show if 64 or 32 bit. |
@TimmyOl Yeah, doesn't seem like I did it right after all. 😅
|
@TimmyOl Could you try building the kernel with the below patch and confirm if it solves your issue ?
|
I will try as soon as I have the time, ill let you know when its done 😁👍 |
I am suffering from the same in my SB2 with Ubuntu. To make matters worse, sometimes the wifi just disappears after 5-10 minutes usage, which makes work rather unproductive as it requires a full restart. |
Its the same as me, Do the guide leonm1 linked https://github.com/linux-surface/linux-surface/wiki/Known-Issues#mwifiex-you-may-need-to-disable-wifi-power_save-manually-if-you-dont-use-networkmanager I use network-manager but this seems to have made it alittle more stable. I will try building the kernel with the patch from sebanc as soon as I have the time, it can be some days until i have the time to try, im not 100% sure how to add the patch so i have to research that first too 😁 |
I am testing it while working today (plugged to a/c). What I did today was turn "dim screen when inactive" and "bluetooth" to off, and the wifi kept stable for about 3-4 hours, until I detached the screen. When I reattached the screen wifi had disappeared and had to restart. @TimmyOl have you noticed anything similar in your tests? |
If I have bluetooth on the speed of atleast 5ghz wifi is 0.6mb and with bluetooth off its about 114mb but it doesnt disconnect now for some reason, i set power save 2 in all configs there is in linux and in settings for the network i go to the identity tab and set all the boxes from the drop down and on cloned adress i set permanent. |
syslog.txt |
Do you mean having the bluetooth on makes the wifi speed crap? Is there a ticket for this (if not, maybe you can create it as a separate issue?) |
Yes that is correct, i will take a look if there is a issue otherwhise ill create one |
It might be useful to check the power_save state whether it is really turned off: iw dev mlan0 get power_save (The devname |
Regarding Bluetooth, if you paired Surface Pen (or any BLE devices), try unpairing it. |
Its off, ive heard this and seen it before on the jake kernel, if i pair a mouse the speed is slow but if i move the mouse it speeds up. I have a Pen but its not connected yet. |
I cannot reproduce the issue as I do not have Bluetooth LE devices but does turning off autosuspend on the usb bluetooth module helps ?
|
Hey, I can try this - have a couple of hours this afternoon, but have never done this.
Can someone help validating this procedure and providing instructions for 3,4,5? |
@TimmyOl @sebanc Unfortunately, turning off autosuspend on the usb bluetooth did not help when Surface Pen is paired and not connected. |
Ooh ok, then i can open more issues, many of the issues from jakeday still persist, so the suspend and hibernate issue is still there aswell, and bluetooth speakers connect as hsp headset every time so i have to go in manually and set it to a2dp |
I made a new issue for the bluetooth issue here: #78 |
So i have a small update, i havnt tried rebuilding the kernel yet since i dont really know how to apply the patch and i havnt had time to learn and try it. I have however seen a significant improvement since i followed this: https://github.com/linux-surface/linux-surface/wiki/Known-Issues#mwifiex-you-may-need-to-disable-wifi-power_save-manually-if-you-dont-use-networkmanager The power_save seems to work but had to be added to some files that none of the guides, issues or google answers told and i dont know wich one since i tried all the ones from all the guides i could find and none worked, so i went on a scavanger hunt in the system for configs for the wifi and it seems like something worked since its now much more stable, ill try and find all the stuff i did and post them here to see if they help |
@TimmyOl do you have any status update on this? |
No sorry, im totally overrun by work and school so i dont know when ill have the time too look at it, I have bluetooth off and mostly uses my other computer instead for now 😔 |
It would be nice to be able to reproduce this issue reliably. Otherwise one can't really test if your patch above works. |
It seems to be super random, but I think it happens more when I move my laptop around. 🤷 Switching to the latest kernel seemed to help, but I'm not sure since it still happens. Not sure how to reproduce it consistently either. |
I used the laptop intensively for 1 day and this happened about 8 times (so around once every 30 minutes). Since then I have used the laptop at home in short periods and hasn't happened since.
Maybe you can test if you spot differences between battery vs a/c power usage? |
Hi, |
@grandrew I've used your script (with my modification from my previous comment) and it worked. I can now use pacman at "full speed" without and crashes so far thanks! |
@lviggiani Looks like you only fixed the bus unregister line and not the ACPI line. Are you saying that ACPI reset may not be required? |
Well I'm not sure... this is the script I made and that I run just after booting (and having powered off my wifi from gnome menu):
and after that I re enable network as per your instruction. |
@grandrew do you mean that I should also have to change this |
These commands (firmware reset) happen to disable all of ASPM L1 substates. And there are report on SP5 that disabling L1.2 substate fixed wifi crash. So, if these commands work, disabling some ASPM L1 substates may also work. Print current wifi ASPM setting: grep . /sys/bus/pci/drivers/mwifiex_pcie/*/link/* and try one of the following. If possible, please try each command (reboot when you try another one) and tell me what command worked. Disable L1.2 substate: echo 0 | sudo tee /sys/bus/pci/drivers/mwifiex_pcie/*/link/l1_2* Disable L1.1 substate: echo 0 | sudo tee /sys/bus/pci/drivers/mwifiex_pcie/*/link/l1_1* Disable all of the L1 substates: echo 0 | sudo tee /sys/bus/pci/drivers/mwifiex_pcie/*/link/{l1_1*,l1_2*} EDIT: and again if possible, please check if S0ix is still working during suspend (https://github.com/linux-surface/linux-surface/wiki/Known-Issues-and-FAQ#general-info-about-s0ix).
|
Note that the broken wifi reset feature has been fixed with the recent kernel release. The wifi should reset by itself now when wifi crashed. |
I have a Surface Pro 3 and only had issues with the Wi-Fi interface falling in to an error state after turning the display back on after suspending/sleep. It would not happen each time but after turning the display off and on 3-4 times definitely would reproduce the error. My SP3 running Ubuntu 20.04.1 LTS: After disabling all of the ASPM L1 substates the problem seems to be solved and I have not experience any Wi-Fi issues since: @kitakar5525 I hope this info helps other Surface users. |
@ReddingZH Thanks for testing! Hmm, SP3 needs all of the ASPM L1 substates disabled... I've never seen this type. But fortunately, doing so is still acceptable because it should still not break S0ix. |
Edited the wiki page to include the results for SP3: https://github.com/linux-surface/linux-surface/wiki/Marvell-88W8897-quirks @ReddingZH can you please confirm that S0ix during suspend is not broken with this? Also would be great if you could paste the output of |
How can I confirm that S0ix is not broken during suspend? Here is the verbose lspci output of my Wi-Fi adapter:
|
You can do that by checking the output of |
I'm missing the folder |
Oh, what's your CPU? Can you check if |
I have a Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz installed. Neither of the files exists on the filesystem. |
Hmm, what's the output of |
Sorry I can't get turbostat to work as there is no version found for kernel 5.9.1. Could also not find it for 5.9.1 via apt.
|
Hmm, then maybe just try booting an older kernel, maybe 5.8? |
Cool that worked. Here the output:
|
Thanks! Seems like there's indeed no s0ix reporting on your device, but it's also not reaching any package C-states deeper than 2, which is quite bad. Can you do |
|
Hmm, still nothing better than PC2.. Anyway, that's a different issue from wifi stability. I guess if there's no counter for s0ix residency, we also can't confirm that it's working during suspend... |
So this seems gone when turning off Bluetooth for me, any clues? |
Random firmware crashes should be fixed now thanks to linux-surface/kernel#70 and linux-surface/kernel#91, I think we can close this issue. |
Still have this issue on my Surface Book 1 with the latest 5.14 kernel |
Can you be a bit more specific what exact issues you are experiencing? Also if you're talking about network speed drops can you answer these questions? |
The problem that exist from jakeday and on all your kernel still persists and no one seems to have found a fix.
The wifi stops after x amount of Time, in ubuntu a restart of the network-service each 5mins or so works but its not a solution... On pop os a full reboot is requires each time wifi drops.
From what ive found in all the posts is that its probably the driver for the card, the mwifiex_pcie that crashes.
Ive tried rundning ndiswrapper with drivers from Microsofts surface drivers pack but no success.
Environment
Im currently rundning kernel 5.3 on pop os, but ive also tried kernel 5.15 on ubuntu.
Hardware: Surface Book 2
Kernel is 5.3 the last one with touch support.
Running pop os and also tried in ubuntu 18 and 19.
`dmesg` output
The text was updated successfully, but these errors were encountered: