LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-01-2019, 07:34 PM   #16
dimm0k
Member
 
Registered: May 2008
Location: Brooklyn ZOO
Distribution: Slackware64 14.2
Posts: 564

Original Poster
Rep: Reputation: 56

holy crap, I figured it out! after more than a few weeks where my apartment was under construction and not having access to my computer until recently, I was about to give this thread another shot to help me figure things out... after double checking my rc.local file I decided to dig deeper and trace back what Slackware actually does when it puts the system to sleep and that's when I came across a file I had created a long time ago in my laptop days called disable_wol in /etc/pm/power.d!! removing the execute permissions on this file and putting my system to sleep without having to change anything else allowed not only the LEDs on the active NIC to be active, but I was able to wake my system up! SUCCESS! thanks to all who helped!
 
1 members found this post helpful.
Old 05-01-2019, 08:57 PM   #17
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
Quote:
I came across a file I had created a long time ago in my laptop days called disable_wol in /etc/pm/power.d!!
User shoots own foot! News at eleven!

Welcome to the club! Been there done that. Ain't a single one of us who hasn't done something like that.

Curiously, at work I have a Windows 7 Pro system that refuses to set WOL on shutdown but the Linux side works just fine. NIC LEDs keep blinking after shutdown from Windows, but the system refuses to awaken. Go figure.
 
Old 09-14-2019, 06:02 PM   #18
Spidergawd
Member
 
Registered: Jun 2016
Location: Cave Johnson's hometown
Distribution: Slackware64-15.0
Posts: 33

Rep: Reputation: Disabled
Although the OP's solution didn't help me with my problem, advice in this thread did. WOL was not working with the 4.19 kernel from slackware64-current, which I use in my 14.2 install to replace the 4.4 kernel due to instability issues with my nvme build. WOL would work fine if shut down from a 4.4.190 session, and the LED on my router for that device would stay lit, but neither would occur when shut down from a 4.19.72 kernel session. I wound up editing the "stop" function in /etc/rc.d/rc.inet1 to include the line
Code:
/usr/sbin/ethtool -s eth0 wol g
just before the lines to bring the devices down. Worked great for me.

Hoping this helps someone else finding this thread while searching for a solution to their WOL problem.
 
Old 09-14-2019, 07:03 PM   #19
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
Quote:
I wound up editing the "stop" function in /etc/rc.d/rc.inet1 to include the line
Rather than edit the stock rc.d scripts, consider adding the command to /etc/rc.d/rc.local_shutdown.

But yeah, I run that command in all Linux systems I manage that need WOL. Seems to avoid headaches.
 
2 members found this post helpful.
Old 09-15-2019, 06:25 AM   #20
Spidergawd
Member
 
Registered: Jun 2016
Location: Cave Johnson's hometown
Distribution: Slackware64-15.0
Posts: 33

Rep: Reputation: Disabled
Yes, thanks, that's a better location. I was worried it would execute too soon there, but it works just fine in /etc/rc.d/rc.local_shutdown.
 
Old 09-15-2019, 10:58 AM   #21
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
I also have a copy of the command in rc.local. Ensures the NIC is configured in case of abnormal shutdown.
 
  


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
ethtool can't seem to enable wake-on-LAN (wol) on my NIC bellsal Linux - Newbie 4 10-28-2007 04:28 AM
Choosing your OS on wake on lan (wol) footloose Linux - Software 2 05-30-2007 07:48 PM
Choosing OS on dual boot computer WOL wake on lan footloose Linux - Networking 1 05-30-2007 10:29 AM
Help with WOL Wake on LAN Knight Templar Linux - Networking 3 07-19-2006 09:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:23 AM.

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