jpoliv / wakeonlan

Perl script for waking up computers via Wake-On-LAN magic packets
306 stars 32 forks source link

Possible to send "turn off" packet? #10

Closed tonycassara closed 1 year ago

tonycassara commented 1 year ago

Hi there,

Thanks for sharing this amazing tool. Is there a supported way to send "turn off" commands to a MAC address using this or any other tool that you know of?

Thank you, Tony

tonycassara commented 1 year ago

Update to be more clear: I'm trying to send a "power off" command to my LG TV whenever my Mac goes to sleep. I might be able to achieve this with a Linux command but I'm struggling to find any documentation for this on LG's developer site.

tonycassara commented 1 year ago

Following up I realize now it is ridiculous to send a "turn off on lan" command as a security concern. I'll have to dive into the LG dev docs for my use case.

elieteyssedou commented 1 year ago

@tonycassara it is possible on windows using "ColorControl", I was able to turn off my LG C2 with it. (it uses wakeonlan for windows, not the same implementation as @jpoliv's wakeonlan)

But, actually I also would like to use wakeonlan to turn off my LG TV when my MAC goes to sleep, exact same usecase as you. Please tell me if you were able to do it somehow (hammerspoon?). 🙏🏻