Wednesday, 6 May 2015

Turning on Sony Bravia TV from a computer terminal

Sony Bravia TV allows one to wake it up using (WoL) Wake On LAN. Look for settings on your respective models.

$ sudo apt install wakeonlan 

wakeonlan is a script/utility which allows sending magic packets to networked devices which allow WoL.

The IP address can be found from modem admin utility which also shows the mac address for the TV.

Following command will turn the TV on.

$ wakeonlan -i "IP address of the TV" "Mac address of the TV"