Wake On Lan (WOL) -- Help!  [Solved]

Message
Author
User avatar
operadude
Posts: 934
Joined: Tue Nov 05, 2019 12:08 am

Re: Wake On Lan (WOL) -- Help!

#31 Post by operadude »

I know this is off-topic, and maybe not even for this Forum (more of an electrical engineering question), but...

What information is getting lost with the un-plugging?

Is there some sort of signal to the LAN (chip?) that is lost, and has to be re-established at reboot?

I have an inquisitive mind, and am curious about all things (a blessing and a curse).

When the motherboard manual states:
Power On By PCIE Devices [Enabled] or Power On By PCI Devices [Enabled] requires an ATX power supply that provides at least 1A on the +5VSB lead
it seems to me that when I am plugging the machine back in, there is definitely current (don't know how much) that is being sent to the +5VSB, since I see the LED for that lit-up! So, when I plug the machine back in, isn't there 1A supplied to the +5VSB, which should allow for WOL?

Again, I'm not sure if on Stand By (SB), that initially there's 1A, or that 1A doesn't "arrive" until reboot.

So, it seems that some information was lost after the unplugging.

Just curious what that is, exactly!

:hmm:

User avatar
mowest
Posts: 119
Joined: Mon Jul 06, 2020 4:08 pm

Re: Wake On Lan (WOL) -- Help!

#32 Post by mowest »

I use WOL for three different machines, and it appears as if the network cards (at least the ones I have in the consumer grade hardware that I'm using) are configured by default with "Wake-on: d" or WOL is configured to to be off, but they supposedly can be configured with "pumbg" settings. If the PCI bus looses power wherever the network card holds that flipped bit of information that you set with "sudo ethtool -s eth0 wol g" must be like the RAM on your main system board and all information kept in that network card "ram" is lost when it ceases to have power running to it, and everything just goes back to default. I'm don't have an electronics or computer hardware degree, but I'm guessing that is how the network interfaces hold setting changes and why pulling the plug from the wall socket eliminates the setting.

I appreciated reading all of your posts and your adventures to use WOL. I have used the wakeonlan program to wake all of my computers without issue. I keep an old 1st Generation Raspberry Pi running at my office, and I can remote into that system through a VPN tunnel, and then I have ssh access to the rpi which I use to wake up a server at work or now just recently my MX Linux box too. At home I have my home lab server that runs Syncthing, it using a cronjob wakes up another server that is just for storing backups of the files managed by Syncthing, and after it runs a rsync script, it shuts the backup server down again. So that computer thanks to WOL is only on for less than 15 minutes per day.
Last edited by mowest on Wed Aug 10, 2022 9:52 am, edited 1 time in total.
https://discoverfoss.com
Home Desktop = HP Envy - i7 with 16GB - Fedora 38
Home Laptop = HP Pavilion dv4 - AMD Turion II M520 with 4GB - MX-21 Fluxbox
Work Desktop = Acer M11AA - i5-3340s with 8GB - MX-21 Fluxbox

User avatar
operadude
Posts: 934
Joined: Tue Nov 05, 2019 12:08 am

Re: Wake On Lan (WOL) -- Help!

#33 Post by operadude »

@mowest : SE-WEET!!!
:celebrate: :spinning: :worship:

Also, thanks @towwire for the reference to the thread. He really saved me.
:toast: :winner:

What you say makes a lot of sense!

Yes, it seems that network info is getting lost, or better, not being remembered (a la RAM on NIC)!

You have given me new hope and inspiration for upping my WOL game!

Sounds like a great idea to use the WOL-SSH combo to wake up servers to do fun stuff.

I have 40-50 old PCs that I love to revive/resurrect with MX-Linux, and I am always backing-up.

Like you, I think WOL is just awesome, and when I wake my other computers and SSH into them, I kinda feel like Dr. Frankenstein resurrecting his monster.

I'm also reading your other post(s). Thanks again for the great ideas! (Servers & Cron job next!)

:dancingman:

User avatar
towwire
Posts: 681
Joined: Fri Oct 15, 2010 12:15 pm

Re: Wake On Lan (WOL) -- Help!

#34 Post by towwire »

@operadude : You are welcome but like you or anyone here there have been times that I have need help too.

You can buy a clock that has a battery so that when you lose power the battery keeps the time even though the clock does not show the time. When the power comes back on the clock shows the correct time without you having to reset the clock time.

When you remove the power cord to the computer it is like removing the battery from the clock as there is no power going to the network card. When you boot the computer the operating system looks for all the hardware and sets it up. The crontab resets "Wake-on: d" to "wol g" on boot or reboot.

You can do this like I do with my wife's computer. It always has power connected to it and is just shutdown. If she tells me to start her computer I just use 'sudo etherwake <mac address here>' from my computer and her computer boots and is ready for her to enter her login password when she gets there. I could use 'MX User Manaager' and change it to 'Log in automatically' so it would be booted all the way, I just don't like that. But you could do yours that way and then ssh to do what you wanted with it.
It is easier to fight for one's principles then to live up to them.

User avatar
operadude
Posts: 934
Joined: Tue Nov 05, 2019 12:08 am

Re: Wake On Lan (WOL) -- Help!

#35 Post by operadude »

@towwire : Good idea!

Thanks again for all of your feedback, especially with the "etherwake" command, as the "wakeonlan" command did not work for me.

User avatar
finn000
Posts: 3
Joined: Fri Oct 14, 2022 2:47 pm

Re: Wake On Lan (WOL) -- Help!

#36 Post by finn000 »

Hello, I added a line to cron

Code: Select all

@reboot /usr/bin/ethtool -s eth0 wol g
But after reboot, the Wake-on parameter: d

User avatar
mowest
Posts: 119
Joined: Mon Jul 06, 2020 4:08 pm

Re: Wake On Lan (WOL) -- Help!

#37 Post by mowest »

finn000 wrote: Sat Oct 15, 2022 3:28 pm Hello, I added a line to cron

Code: Select all

@reboot /usr/bin/ethtool -s eth0 wol g
But after reboot, the Wake-on parameter: d
Did you use the command...

Code: Select all

sudo crontab -e
to create the entry?

I believe that ethtool needs to be run with "sudo" privileges, so your crontab needs to be the root crontab in order to run the command successfully. I will be honest though, I run systemd on MX so I use a systemd service to run ethtool on boot.
https://discoverfoss.com
Home Desktop = HP Envy - i7 with 16GB - Fedora 38
Home Laptop = HP Pavilion dv4 - AMD Turion II M520 with 4GB - MX-21 Fluxbox
Work Desktop = Acer M11AA - i5-3340s with 8GB - MX-21 Fluxbox

User avatar
towwire
Posts: 681
Joined: Fri Oct 15, 2010 12:15 pm

Re: Wake On Lan (WOL) -- Help!

#38 Post by towwire »

Let's see if you did create a cronjob.
1. From the menu open Job Scheduler.
2. We want to open it as root so on your keyboard Ctrl+R
3. enter your password.
4. does it look like this.
Screenshot_2022-10-15_17-24-20.png
You do not have the required permissions to view the files attached to this post.
It is easier to fight for one's principles then to live up to them.

Senpai
Posts: 491
Joined: Tue Nov 19, 2019 7:39 am

Re: Wake On Lan (WOL) -- Help!

#39 Post by Senpai »

towwire wrote: Sat Oct 15, 2022 8:59 pm Let's see if you did create a cronjob.
1. From the menu open Job Scheduler.
2. We want to open it as root so on your keyboard Ctrl+R
3. enter your password.
4. does it look like this.
Screenshot_2022-10-15_17-24-20.png
Hi:
I had the same problem for the wave-on-lan with MX in SysVinit, creating the cronjob with the path that you show in the image, it did not work, but changing the path to “/sbin/”, it works without problems, the command would look like this

Code: Select all

@reboot /sbin/ethtool -s eth0 wol g
, I attach image.


Best regards

Image

User avatar
operadude
Posts: 934
Joined: Tue Nov 05, 2019 12:08 am

Re: Wake On Lan (WOL) -- Help!

#40 Post by operadude »

Senpai wrote: Fri Nov 15, 2024 1:09 pm
towwire wrote: Sat Oct 15, 2022 8:59 pm Let's see if you did create a cronjob.
1. From the menu open Job Scheduler.
2. We want to open it as root so on your keyboard Ctrl+R
3. enter your password.
4. does it look like this.
Screenshot_2022-10-15_17-24-20.png
Hi:
I had the same problem for the wave-on-lan with MX in SysVinit, creating the cronjob with the path that you show in the image, it did not work, but changing the path to “/sbin/”, it works without problems, the command would look like this

Code: Select all

@reboot /sbin/ethtool -s eth0 wol g
, I attach image.


Best regards

Image
WOW: A BLAST FROM THE PAST :p

Thanks for the Update :exclamation:

I will try your recommendation this week, and let you know how it goes :happy:

:cool:

Post Reply

Return to “Hardware /Configuration”