Hi Kai-Heng Feng, I see you wrote me twice with the same suggestion and GOOD SOOOO as I have given it up to easily on the first try but I can say now that GOT IT WORKING!!!
So here is everything I found out and did to make it work on Fedora 29 (Kernel 4.18.11) First of all of course rebuild the whole kernel with all the patches from here: https://github.com/jakeday/linux-surface FYI: it now supports Surface Pro 5 2017 (including battery and buttons once qzed's patch is accepted too) Added pcie_aspm=off to the kernel (NOT Needed, instead please keep reading on) command but unfortunately that didn't do anything so started digging and realized drivers/pci/pcie/aspm.c doesn't even compiles when building the kernel so there is no code to check this command parameter for the kernel anyway. Then dug around some more and found I don't even have "/sys/module/pcie_aspm/parameters/policy" file not even the directory "/sys/module/pcie_aspm" so it seems the kernel for whatever reason (as couldn't find PCIE_ASPM config related things in make menuconfig either). So wanted to make sure ASPM is indeed turned on for the wireles so I did: lspci -vvv and found this device: 01:00.0 Ethernet controller: Marvell Technology Group Ltd. 88W8897 [AVASTAR] 802.11ac Wireless with the following: LnkCtl: ASPM L0s L1 Enabled; Now I started to google around on how to disable ASPM on device basis as it seems these values are set from the firmware itself (if I understood things correctly) and found baybal's script (which enables ASPM on dell devices): https://gist.github.com/baybal/b499fc5811a7073df0c03ab8da4be904 and instead of enabling I changed it to disable on the ethernet controller and that did the trick!!! Now doing lspci -s 01:00.0 -vvv shows me this instead: LnkCtl: ASPM Disabled; and since then I can play a YouTube video in 1440p and it never freezes (and was freezing like in first minute before that) also realized that if I changed to 720p it was dying out later bit did die out eventually but now with ASPM off even 1440p works just fine and plays trough the whole video. I'm attaching the shell script that I quickly modified from baybal's code, it needs to be run every time on startup (not on resume as far as I could see/tested) and then all should be fine just please make sure you verify that your Marvell network device is indeed at 01:00.0 and if not just edit the file and change this. So will keep on testing but it seems this fixed the problem and all working just great now so thanks again Kai-Heng Feng for the pointers if you give me the details I'm ready to send you over the small reward that I offered for help/solution and it seems yours was the one so just let me know the PayPal address and it will be on it's way. Thanks again and hopefully this will be it and all the details/script will be helpful to the others too. Regards, Julius ** Attachment added: "disable_wireless_aspm.sh" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1730924/+attachment/5228067/+files/disable_wireless_aspm.sh -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1730924 Title: Wifi does down "crash" in Surface Pro 4 Status in Linux: Confirmed Status in linux package in Ubuntu: Incomplete Bug description: I have a Surface Pro 4. The wifi works well in principle, but unfortunately it drops every x minutes. The only way to fix it I've found is to reboot the computer. lsb_release -rd Description: Ubuntu 17.10 Release: 17.10 ProblemType: Bug DistroRelease: Ubuntu 17.10 Package: linux-image-4.13.0-16-generic 4.13.0-16.19 ProcVersionSignature: Ubuntu 4.13.0-16.19-generic 4.13.4 Uname: Linux 4.13.0-16-generic x86_64 ApportVersion: 2.20.7-0ubuntu3.1 Architecture: amd64 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC0: predatux 1537 F.... pulseaudio CurrentDesktop: KDE Date: Wed Nov 8 10:41:26 2017 HibernationDevice: RESUME=UUID=147af4ba-a4ce-41fe-a176-b36a1f6a590b Lsusb: Bus 002 Device 002: ID 045e:090c Microsoft Corp. Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 002: ID 045e:07e8 Microsoft Corp. Bus 001 Device 003: ID 1286:204c Marvell Semiconductor, Inc. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub MachineType: Microsoft Corporation Surface Pro 4 ProcFB: 0 inteldrmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.13.0-16-generic root=UUID=125200b0-7377-4985-a217-15503781a525 ro quiet splash vt.handoff=7 RelatedPackageVersions: linux-restricted-modules-4.13.0-16-generic N/A linux-backports-modules-4.13.0-16-generic N/A linux-firmware 1.169 SourcePackage: linux UpgradeStatus: Upgraded to artful on 2017-10-22 (16 days ago) dmi.bios.date: 02/24/2017 dmi.bios.vendor: Microsoft Corporation dmi.bios.version: 106.1624.768 dmi.board.name: Surface Pro 4 dmi.board.vendor: Microsoft Corporation dmi.chassis.type: 9 dmi.chassis.vendor: Microsoft Corporation dmi.modalias: dmi:bvnMicrosoftCorporation:bvr106.1624.768:bd02/24/2017:svnMicrosoftCorporation:pnSurfacePro4:pvrD0B08F1C03P38:rvnMicrosoftCorporation:rnSurfacePro4:rvr:cvnMicrosoftCorporation:ct9:cvr: dmi.product.family: Surface dmi.product.name: Surface Pro 4 dmi.product.version: D:0B:08F:1C:03P:38 dmi.sys.vendor: Microsoft Corporation To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1730924/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp