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
Connectivity issues after waking up #30
Comments
As a workaround, I wrote a little script to reload r8168 kernel module and put it in $ ls /usr/bin/r8168-reload.sh
-rwxr-xr-x root root /usr/bin/r8168-reload.sh
$ cat /usr/bin/r8168-reload.sh
#!/bin/sh
# Fix ethernet port voiding out after sleep
rmmod r8168
modprobe r8168
$ ls /usr/lib/systemd/system-sleep/r8168
-rwxr-xr-x root root /usr/lib/systemd/system-sleep/r8168
$ cat /usr/lib/systemd/system-sleep/r8168
#!/bin/sh
case "$1" in
pre) ;;
post) /usr/bin/r8168-reload.sh ;;
esac /* I wonder, would it make sense to send a pull request to Arch Linux package adding these scripts? Probably, not. */ |
You found a good solution. I would suggest removing the module in pre and loading it in post: #!/bin/bash
case $1 in
pre) /usr/bin/rmmod r8168 ;;
post) /usr/bin/modprobe r8168 ;;
esac Adding the script to Arch would complicate packaging a bit since the script would be needed by both r8168 and r8168-lts, nothing that cannot be solved. The other concern would be that I don't know if this is needed with every card supported by this driver and I don't even have a pc with a card to test it with. |
I thought about that, but then I realized something.
|
I am having the same issue as of this day even though my Arch system just got an r8168 update. The script is working just fine for me as a workaround so thanks for that! Just wondering if there could be a fix implemented that wouldn't require people to set up a workaround. |
@Earthling-Z3R0 the best you can hope is for workarounds here, as this repo only hosts a mirror. |
Maybe it's related to this MSI bug with early r8168 versions that was fixed in the mainline r8169 driver? https://bugzilla.kernel.org/show_bug.cgi?id=204079 |
Using built-in into kernel r8169 module, I had issues with interface literally being unreachable / missing / semi-non-visible to the system iff laptop is working on batteries and Ethernet twisted pair was unplugged and plugged back in.
Module r8168 solves the "battery curse" it seems. But now I have another problem.
After waking up from sleeping state (definitely not hibernate — never tried that one), I'm loosing connectivity on the port. Symptoms are similar. While NetworkManager attempts to establish a connection,
dmesg -w
shows this line after a certain timeout:Demonstration on a video:
Forgot to show that on a video, but here's an output of
ethtool
as well:Realtek, pls fix
The text was updated successfully, but these errors were encountered: