TIL: How to Wake up a Laptop without WoL

I've had a laptop that I've never been able to get WoL (Wireless or otherwise) to work, no matter what I tried. Recently realized that the Bluetooth keyboard I used was able to wake it with a key press though.

I searched and found an ESP Home project that will make an ESP32 emulate a Bluetooth keyboard - https://github.com/dmamontov/esphome-blekeyboard

Now for $6 of hardware, I can wake my Laptop up remotely via HA, whenever needed. Definitely recommended!

79 points · 17 comments · view on lemmy.world

17 Comments

throw4w4y5@sh.itjust.works · 24 pts · 2y (6 replies)

I must be too old school because my first thought when i read this was “with an old solenoid lying around and a few lines of code, an AtTiny could strike a key on the bluetooth keyboard, waking the laptop!

Gloria@sh.itjust.works · 7 pts · 2y (2 replies)

You could ditch the solenoid and use a ATMega32u4 that can act as a HID device to send a keypress signal.

Panq@lemmy.nz · 6 pts · 2y (1 reply)

I'm mildly surprised OP's laptop keeps the bluetooth radio powered up while asleep, but I would be a lot more surprised to find one that doesn't work with USB HID.

ArmoredCavalry@lemmy.world · 2 pts · 2y

I was a little surprised as well, but I think it's because the keyboard / mouse I use (and the ESP32) all use Bluetooth LE specifically.

I looked at USB solutions first actually, but then decided to try ESP Home solution since I was already familiar with the system.

ArmoredCavalry@lemmy.world · 4 pts · 2y (1 reply)

I definitely thought about trying something physical like that too, but mostly as a fallback plan!

ThePantser@lemmy.world · 4 pts · 2y

My thoughts were a switchbot, for a non diy version. You put the bot on the laptop power button or keyboard.

CameronDev@programming.dev · 1 pts · 2y

I was thinking of using an electro magnet to trigger the lid switch. Maybe we are just fans rube goldberg setups :D

regdog@lemmy.world · 10 pts · 2y

Have you tried

Kuinox@lemmy.world · 8 pts · 2y (3 replies)

Simpler: use a smart wallplug, configure your bios to always start after powerloss.

ArmoredCavalry@lemmy.world · 5 pts · 2y (2 replies)

I actually tried something like this, the laptop BIOS didn't have any settings to tweak for A/C power changes. However, it does wake from sleep after plugging in. The issue is, it immediately goes back to sleep (within seconds). Tried quite a few things to try to stop that behavior (e.g. running Power Toys Awake) but had no luck.

So that's when I switched to ESP Keyboard.

Kuinox@lemmy.world · 3 pts · 2y (1 reply)

Ah yes, because it's a laptop, I know lots of desktop have the option tho.

princessnorah@lemmy.blahaj.zone · 3 pts · 2y

I think most laptop’s still have the option of whether to boot or not when you plug them in with a dead battery.

blazera@kbin.social · 7 pts · 2y (1 reply)

Why did you need final fantasy's Warrior of Light to wake up your laptop?

jemikwa@lemmy.blahaj.zone · 2 pts · 2y

Allagans secretly powering Home Assistant

unknowing8343@discuss.tchncs.de · 5 pts · 2y (1 reply)

That is for waking from sleep, or from shutdown?

ArmoredCavalry@lemmy.world · 6 pts · 2y

Oh yeah I should have specified this is to wake from sleep, not a complete shutdown. So not a complete replacement for WoL.

const_void@lemmy.ml · 2 pts · 2y

Wire the power switch to a transistor and ESP