Wake On LAN

For a long time I’ve wanted to be able to send a “magic packet” from my laptop to my desktop in order to power on my desktop machine remotely. Unfortunately my old ass motherboard didn’t support it which was always a source of frustration.

Then I bought a new Raspberry Pi 5 because they released a new version which had 16G RAM which I desperately needed to build some software. When I bought the Pi I also bought an NVME HAT and a new 1TB NVME. Unfortunately something wasn’t working but I wasn’t sure what was causing the error. So I went ahead and bought a new NVME from Crucial via Amazon and it worked first time. So I knew the NVME was at fault and returned it to Pimoroni expecting a refund. I didn’t get a refund, I got a replacement.

My old ass motherboard had an NVME slot so I thought “oooh, I don’t really need a 4th drive in this desktop machine but I’ll plug it in anyway”. So I took it apart, plugged in the NVME drive, put it all back together and booted it up. Nothing, except for the dreaded BIOS beeps of death. 5 of them – which means something is wrong with the motherboard or the processor. Expensive. “No worries” thought I – I’ll just take out the NVME drive again. Took it apart, removed the NVME, put it all back together. 5 beeps. Damnit.

This desktop machine has been my workhorse for about a decade. When I first got it I absolutely maxed it out. It was beautiful. Silent. Fast. Compiled code in seconds. However, it seems taking a ten year old motherboard and plugging in a cutting edge NVME drive wasn’t a great idea.

I did some research and went for a reasonable Ryzen motherboard with a new AMD processor. £200 for the pair and my existing DDR4 RAM was compatible. The MoBo arrived and I ripped the entire machine apart. Came to put my RAM in and realised the new board only had 2 DDR4 slots – whereas I had 4 8G DDR4 modules.

So I fired it up with 16G RAM. Tried to do a build whilst some background processes were running and ran out of memory. This would not do. I quizzed Oli about his machine and he had 32G made up of 2 * 16G modules. So we swapped. It was a win win. I got 32G again and Oli got 32G but the RAM I gave him was faster than the RAM he had. Since he’s a gamer he’ll benefit from faster RAM – about 50% faster. To me the speed of RAM didn’t really matter so much.

Get to the point Darren!

After a few weeks of my new AMD Ryzen motherboard I once again remembered my goal of being able to do a WOL [ Wake On Lan ] – I did a quick check on the motherboard and it indeed supported Wake-On LAN.

So…..I set up a systemd job to enable Wake-On LAN each time it boots and I can now finally fire up my laptop and run a script which basically does:

wakeonlan <MAC ADDRESS>

and as if by magic my desktop starts up and gets on with doing it’s thing whilst I eat breakfast.

So I now have a slightly faster, slightly quieter desktop again and I haven’t quite got around to testing if the replacement NVME drive works anywhere.

Clouds, silver linings and all that.

But hey kids, in general if your machine is working fine and you don’t need another 1TB of storage then just leave it alone. Put the NVME in the spares cupboard and get on with life. But WOL is cool 🙂