View: 1435|Reply: 6

SER5 Pro 5600H Wifi After Sleep Workaround

[Copy link]

1

Threads

3

Posts

31

Credits

Newbie

Rank: 1

Credits
31
Post time 2023-02-03 08:20:39 | Show all posts |Read mode
Here is what I sent tech support, I use fedora 37, please adapt to suit your needs.

First I found which pci address was the wifi card with

"lspci"

I then figured out that removing the device from the pci bus with

"echo 1 >/sys/bus/pci/devices/0000:02:00.0/remove"

and then re-scanning with
" echo 1 >/sys/bus/pci/rescan"
Made the wifi work again!

I then made 2 scripts in this directory
'/lib/systemd/system-sleep/'


script 1 name = wifi-fix.sh

content =

#! /bin/sh -xv
echo 1 >/sys/bus/pci/devices/0000:02:00.0/remove


script 2 name = 99wifi-fix.sh
content =

#! /bin/sh -xv

echo 1 >/sys/bus/pci/rescan

make both files executable with "chmod +x" and wifi issues are resolved



Reply

Use magic Report

4

Threads

114

Posts

878

Credits

Senior Member

Rank: 4

Credits
878
Post time 2023-02-07 00:06:02 | Show all posts
With systemd, it's easier to use the existing method of unloading module/reloading module when sleeping and awaken

create a  /usr/lib/systemd/system-sleep/remove-mt7921e.sh file

#!/bin/bash
[ "$1" = "post" ] && exec /usr/sbin/modprobe mt7921e
[ "$1" = "pre" ] && exec /usr/sbin/modprobe -r mt7921e
exit 0
SER5 5600H 32/500 - MX Linux
Reply Support 1 Not support 0

Use magic Report

5

Threads

2311

Posts

7144

Credits

Super Moderator

Rank: 8Rank: 8

Credits
7144
Post time 2023-02-03 17:35:08 | Show all posts
Hello,
Thanks for your sharing.
Reply Support 1 Not support 0

Use magic Report

1

Threads

3

Posts

31

Credits

Newbie

Rank: 1

Credits
31
 Author| Post time 2023-02-07 02:42:20 | Show all posts
Magister replied at 2023-02-07 00:06
With systemd, it's easier to use the existing method of unloading module/reloading module when sleep ...

I am sure there are many ways to do it. What I noticed though, is that modprobe only works with active loaded devices, and if this issue was present, the modprobe commands will not work. Thats why I went with the pci route, no matter if the firmware was loaded, it will offload the device based on bus address.
Reply Support Not support

Use magic Report

12

Threads

49

Posts

316

Credits

Full Member

Rank: 3Rank: 3

Credits
316
Post time 2023-02-10 19:54:35 | Show all posts
simpsipper replied at 2023-02-07 02:42
I am sure there are many ways to do it. What I noticed though, is that modprobe only works with ac ...

Hi, thank you for sharing the script I have tested and it works with Manjaro but it does not work with MX linux, Do you know why?

thanks
Reply Support Not support

Use magic Report

1

Threads

10

Posts

87

Credits

Member

Rank: 2

Credits
87
Post time 2023-02-11 17:06:51 | Show all posts
I got my SER 5600H Pro at the big river the day before yesterday.
I have an Intel AX200 installed. I also have an SSD holder with a fan installed.
In every Youtube video at the SER5 Pro 5600H no Intel and SSD holder with fan is shown. or mentioned.
Very strange.
Screenshot 2023-02-11 100426.png
Reply Support Not support

Use magic Report

4

Threads

114

Posts

878

Credits

Senior Member

Rank: 4

Credits
878
Post time 2023-02-16 00:07:21 | Show all posts
Andor replied at 2023-02-10 06:54
Hi, thank you for sharing the script I have tested and it works with Manjaro but it does not work  ...

MX Linux is not using systemd.

create a simple /etc/pm/config.d/config containing

HOOK_BLACKLIST="wireless"
SUSPEND_MODULES="mt7921e"
SER5 5600H 32/500 - MX Linux
Reply Support Not support

Use magic Report

You have to log in before you can reply Login | Sign up

Points Rules

Quick Reply To Top Return to the list