Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| using_a_samsung_tv_as_computer_screen [25.01.2017 00:13] – Pascal Suter | using_a_samsung_tv_as_computer_screen [25.01.2017 09:34] (current) – Pascal Suter | ||
|---|---|---|---|
| Line 22: | Line 22: | ||
| #!/bin/bash | #!/bin/bash | ||
| while true; do | while true; do | ||
| - | xset -q | grep " | + | xset -q | grep " |
| - | if [ $? -eq 0 ]; then | + | if [ $? -eq 1 ]; then |
| if [ "`cat / | if [ "`cat / | ||
| - | ssh pi@192.168.168.169 'echo ' | + | ssh pi@192.168.168.63 'echo ' |
| echo " | echo " | ||
| fi | fi | ||
| Line 31: | Line 31: | ||
| else | else | ||
| if [ "`cat / | if [ "`cat / | ||
| - | ssh pi@192.168.168.169 'echo 'on 0' | cec-client -s RPI' | + | ssh pi@192.168.168.63 'echo 'on 0' | cec-client -s RPI' |
| echo " | echo " | ||
| fi | fi | ||
| Line 38: | Line 38: | ||
| done | done | ||
| </ | </ | ||
| - | - now make sure this script is started as background process on boot. in ubuntu you can simply | + | - now make sure this script is started as background process on boot. I simply |
| - | </ | + | </ |
| + | - in order to test if everything is working, | ||