You are not logged in.
Pages: 1
I have desktop computer which I want to wake up with wol command. I have followed instructions from the Arch Wiki page https://wiki.archlinux.org/title/Wake-on-LAN.
I have used Network Manager to make the changes with ethtool persistent:
nmcli c modify "wired1" 802-3-ethernet.wake-on-lan magicRebooted the system and wake on lan is working when I have executed
sudo systemctl poweroffbut it is not working when I am doing suspend
sudo systemctl suspendAs suggested here https://wiki.archlinux.org/title/Wake-o … leshooting I have executed
nmcli c modify "wired1" 802-3-ethernet.auto-negotiate yesDidn't do the job.
What is weird is that with shutdown it is working, but with suspend it is not. I suppose that suspend scripts are powering off the network card. I don't know where to start to solve my problem.
Network card is
07:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)I have read the troubleshooting for this card but I don't think that that is the case, because WOL is working with shutdown.
Last edited by barney (2023-04-12 18:07:47)
Offline
Update. I have tried to blacklist the r8169 module, load the r8168 module, set s5wol=1 module parameter but didn't change anything. I have returned to r8169 module but problem is sill here.
Offline
I have inspected the journal boot messages and I have found one error message:
kernel: r8168 0000:07:00.0: Unable to load firmware rtl_nic/rtl8168e-4.fwI have searched Internet for rtl8168e-4.fw file, but I cannot find it.
Offline
What suspend state is in use?
Are you using TLP?
Offline
What suspend state is in use?
The output of
sudo cat /sys/power/mem_sleepis:
s2idle [deep]Are you using TLP?
No. I don't think that that is the problem. The problem is that r8168 module cannot load the firmware file, because there is no such a file on my system.
Offline
The problem is that r8168 module cannot load the firmware file, because there is no such a file on my system.
I'm not so sure; since WoL is working correctly after a shutdown, that journal error you have found may be a red herring.
I would test another kernel or a few other kernels to see if you get a different result. Try the LTS kernel and the mainline kernel.
s2idle [deep]
Check if switching to s2idle allows WoL to succeed. https://wiki.archlinux.org/title/Power_ … end_method
Offline
The problem is that r8168 module cannot load the firmware file, because there is no such a file on my system.
Those "errors" are common, the kernel tries to load the know FWs until one succeeds.
Next to the suggestions in #6, please post your complete system journal for a boot covering a failed WOL:
sudo journalctl -b | curl -F 'file=@-' 0x0.stfor the current one.
Also, ceterum censeo: is there a parallel windows installation?
Online
Complete journal file:
http://0x0.st/HXgN.txt
Also, ceterum censeo: is there a parallel windows installation?
Yes, there is. But, fast start and hibernate are disabled.
Offline
The journal doesn't cover a S3 cycle?
fast start and hibernate are disabled
Known or believed?
Since windows keeps re-enabling this w/ updates, make sure to check.
апр 10 21:56:15 living org_kde_powerdevil[480]: org.kde.powerdevil: org.kde.powerdevil.chargethresholdhelper.getthreshold failed "Charge thresholds are not supported by the kernel for this hardware"
апр 10 21:56:15 living org_kde_powerdevil[480]: org.kde.powerdevil: org.kde.powerdevil.backlighthelper.brightness failedTry the behavior from the multi-user.target (2nd link below)
Online
I have forgot to paste the output of sudo ethtool -i enp7s0:
driver: r8168
version: 8.051.02-NAPI
firmware-version:
expansion-rom-version:
bus-info: 0000:07:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: nowhich shows that no FW is loaded.
Offline
The journal doesn't cover a S3 cycle?
What should I do to paste the journal which covers S3 cycle?
Try the behavior from the multi-user.target (2nd link below)
I have tried. It is the same behavior.
I will check about windows.
Offline
If the driver only wants to load the -4 version of the FW, you could symlink the -3 version there.
Suspend to RAM, try to WOL, resume otherwise and then post the journal.
Online
I have made symlink in rtl_nic directory. Now sudo ethtool -i enp7s0 gives:
driver: r8168
version: 8.051.02-NAPI
firmware-version: rtl8168e-3_0.0.4 03/27/12
expansion-rom-version:
bus-info: 0000:07:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: noI have suspended the computer, tried WOL withaut success. Here is the jornal boot file:
http://0x0.st/HXg4.txt
I have checked windows, the fast start and hibernate are disabled. I rarely use windows, only when I get hands on some complicated word file that libre office cannot open.
Offline
Try to add
pcie_aspm=off to the kernel parameters.
Does a suspended windows respond to WOL?
Despite being a 8168 chip, have you actually tried the r8169 behavior? (you have not "returned" to it and will have to comment the blacklist in /usr/lib/modprobe.d/r8168.conf)
Online
Try to add
pcie_aspm=offto the kernel parameters.
Did't make any difference.
Does a suspended windows respond to WOL?
Yes. In windows everything is working fine, with shutdown and suspend (sleep).
Despite being a 8168 chip, have you actually tried the r8169 behavior? (you have not "returned" to it and will have to comment the blacklist in /usr/lib/modprobe.d/r8168.conf)
Yes, I have tried. Because you mention it, I have tried second time, without success.
I think that I have a buggy chip that requires 'special' firmware. Is it possible to take the firmware file from windows?
Offline
I think that I have a buggy chip that requires 'special' firmware. Is it possible to take the firmware file from windows?
Probably not, but you could extract it from the windows driver. Easy, if it comes as separate file, hard, if it's compiled into some dll or exe.
Sanity check:
cat /proc/acpi/wakeupOnline
Sanity check:
cat /proc/acpi/wakeup
sudo cat /proc/acpi/wakeup
Device S-state Status Sysfs node
PCI0 S5 *disabled no-bus:pci0000:00
PEX0 S5 *disabled pci:0000:00:1c.0
PEX1 S5 *disabled pci:0000:00:1c.1
PEX2 S5 *disabled
PEX3 S5 *disabled pci:0000:00:1c.3
PEX4 S5 *disabled
PEX5 S5 *disabled pci:0000:00:1c.5
PEX6 S5 *disabled
PEX7 S5 *disabled
HUB0 S5 *disabled pci:0000:00:1e.0
UAR1 S3 *disabled
USBE S3 *enabled pci:0000:00:1d.0
USE2 S3 *enabled pci:0000:00:1a.0
AZAL S5 *disabled pci:0000:00:1b.0Offline
Online
That was the problem. I have installed kernel mention there and everything is working fine.
I have stupid question (understand that I am new to Arch Linux and I don't know many things). Now when I install the r8168 package, the module file still goes in modules directory for newer kernel, despite the fact that the running kernel is older. How to resolve this?
When can we expect this bug to be removed from official linux package?
If it is not the secret how did you know that this bug was the problem. The output from cat /proc/acpi/wakeup didn't changed.
Last edited by barney (2023-04-11 23:14:44)
Offline
https://aur.archlinux.org/packages/r8168-dkms
The pci device simply doesn't show up in the wakeup devices, so that was ruled out as pssible case and the only thing left from all of this (cause I didn't buy the FW thing for a second) was the global regression in 6.2
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Last edited by seth (2023-04-12 06:03:18)
Online
Pages: 1