Skip to content

Instantly share code, notes, and snippets.

@karol-preiskorn
Created March 3, 2024 07:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karol-preiskorn/3d641ad6092c2d6f881b3b984e70e9a7 to your computer and use it in GitHub Desktop.
Save karol-preiskorn/3d641ad6092c2d6f881b3b984e70e9a7 to your computer and use it in GitHub Desktop.
Setup wlan on Ubuntu

Wakeup laptop online

  • nmcli d wifi list
  • sudo apt install iw

Enable WoWLAN for the phy0 device with magic packet:

  • iw phy0 wowlan show
  • sudo iw phy0 wowlan enable magic-packet
  • sudo iw phy0 wowlan enable any
  • sudo iw phy0 wowlan enable magic-packet disconnect

Wakeup laptop

  • sudo sh -c 'echo mem > /sys/power/state'
  • ping your-laptop-ip

Send magic packet using wakeonlan command

  • wakeonlan laptop-mac-address-here
  • etherwake MAC-Address-Here

Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment