LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-11-2020, 08:13 PM   #1
somethingsomethingsmthn
LQ Newbie
 
Registered: May 2020
Posts: 3

Rep: Reputation: Disabled
Wake On Lan not working in CentOS7


Hi,

I just finished setting up wake on lan on a couple other computers with different OS's but this is my first time trying with linux and I'm stuck. I've read through tons of posts and articles but no luck.

So far I know that I have wake on lan enabled on my ethernet card and in my bios. When I use "ethtool enp2s0 | grep Wake-on" it shows that wake on lan is set to G. I enabled the PME option in my motherboard and extensively checked through the settings and I'm sure it's enabled there as well.

I believe my ethernet is being powered down and that's probably what the issue is. I tried to disable any form of EEE ethernet but my network card doesn't even show the option to support it. I've read a few other posts and they mention you can edit /etc/rc.d/init.d/halt or /etc/default/halt so that the ethernet card stays powered on after shutdown but I don't have those files. It looks like updates to the OS has changed this.

Does anyone have any idea how I can keep power onto the ethernet card after shutdown? Or how I can modify the shutdown command to do so?

One other thing that I can think of is that WOL on windows machines they have an option called "wol shutdown link speed" and that has to be set to "not speed down" but I don't see anything like that with ethtools.
 
Old 05-12-2020, 08:26 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,802

Rep: Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002
Quote:
Originally Posted by somethingsomethingsmthn View Post
Hi,
I just finished setting up wake on lan on a couple other computers with different OS's but this is my first time trying with linux and I'm stuck. I've read through tons of posts and articles but no luck.

So far I know that I have wake on lan enabled on my ethernet card and in my bios. When I use "ethtool enp2s0 | grep Wake-on" it shows that wake on lan is set to G. I enabled the PME option in my motherboard and extensively checked through the settings and I'm sure it's enabled there as well.

I believe my ethernet is being powered down and that's probably what the issue is. I tried to disable any form of EEE ethernet but my network card doesn't even show the option to support it. I've read a few other posts and they mention you can edit /etc/rc.d/init.d/halt or /etc/default/halt so that the ethernet card stays powered on after shutdown but I don't have those files. It looks like updates to the OS has changed this.

Does anyone have any idea how I can keep power onto the ethernet card after shutdown? Or how I can modify the shutdown command to do so?

One other thing that I can think of is that WOL on windows machines they have an option called "wol shutdown link speed" and that has to be set to "not speed down" but I don't see anything like that with ethtools.
Would help to know what kind of hardware you're talking about, as in what kind of computer, network card, etc. Hard to speculate without knowing some of the details.
 
Old 05-12-2020, 11:56 AM   #3
somethingsomethingsmthn
LQ Newbie
 
Registered: May 2020
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks for pointing that out, I think you're right about the hardware. It does look like it's some type of driver issue. By using journalctl -b I found more info. First my hardware though...

Motherboard: ASUS M3A78-CM
NIC: Realtek RTL8111C Gigabit Ethernet port
CPU: AMD 9550 Phenom
Kernel says.. 3.10.0-957.21.3.el7.x86_64

I think the motherboard is the most relevent part because in journalctl -b I saw this error:
Code:
kernel: acpi-cpufreq: overriding BIOS provided _PSD data
kernel: ACPI Warning: SystemIO range 0x0000000000000b00-0x0000000000000b08 conflicts with OpRegion 0x0000000000000b00-0x0000000000000b0f (\SO
kernel: ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
So then I looked through and also saw:
Code:
kernel: pci 0000:00:06.0: PME# supported from D0 D3hot D3cold
kernel: pci 0000:00:06.0: System wakeup disabled by ACPI
Since it was warning about ACPI drivers.. I updated the firmware on my bios but no difference. I didn't see any useful linux drivers for my motherboard so I'm not sure how to update those. In my BIOS I tried disabling ACPI, and I also tried the extra option ACPI 2.0.. neither made a difference. If it's relevent at all journalctl also said: ACPI: Core revision 20130517.

When I searched the error "System wakeup disabled by ACPI" people suggested checking some OS settings for hardware wakeup and I got the following.. which seems to be fine?

cat /proc/acpi/wakeup
RLAN S4 *enabled pci:0000:02:00.0

But it says S4 not S5 so maybe that's a problem. The system edits this wakeup file constantly so I guess you can't really just edit it directly. Some people also said that /sys/bus/ has a setting that needs to be enabled as well but it says enabled there too...

cat /sys/bus/pci/devices/0000:02:00.0/power/wakeup
enabled

Last edited by somethingsomethingsmthn; 05-12-2020 at 08:44 PM.
 
Old 05-19-2020, 03:09 PM   #4
somethingsomethingsmthn
LQ Newbie
 
Registered: May 2020
Posts: 3

Original Poster
Rep: Reputation: Disabled
I'm still trying to figure out where my wakeup is being disabled from. I think it's somewhere in the settings of centos. If anyone is able to think of a place I didn't check or give me some more information on any of the following things I'd appreciate it..


Code:
lspci
02:00.0 Ethernet controller...  RTL8111/8168/8411

journalctl -b
pci 0000:02:00.0: PME# supported from D0 D1 D2 D3hot D3cold
pci 0000:02:00.0: System wakeup disabled by ACPI

/proc/acpi/wakeup
RLAN      S4    *enabled   pci:0000:02:00.0

/sys/bus/pci/devices/0000:02:0.0/power/wakeup
enabled
I would like to change the /proc/acpi/wakeup file to S5 instead of S4 but I have no idea how, or if I even can. I did read you can edit the file somewhat by using a command like

Code:
RLAN >> /proc/acpi/wakeup
But this just seems to toggle from enable/disable. I don't know if I can edit the S-state or not.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Any problem if I install CENTOS7 Workstation over CENTOS7 Server? Rich Strebendt Linux - Software 5 05-03-2018 11:05 PM
How do you wake up CentOS7 from suspend mode in Virtual Box? fanoflq Linux - Newbie 9 05-03-2016 02:57 PM
Can I wake up a server in "standby" or "memory" mode using wake-on-lan? songweijia Linux - Server 2 03-03-2010 06:51 PM
Wake on Lan & Sleep on lan? ufmale Linux - Networking 1 06-25-2008 05:34 PM
wake on lan magic packet does not wake. albean Linux - Networking 1 06-30-2007 03:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration