Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
using_a_samsung_tv_as_computer_screen [25.01.2017 00:36] – 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@< | + | ssh pi@192.168.168.63 |
echo " | echo " | ||
fi | fi | ||
Line 31: | Line 31: | ||
else | else | ||
if [ "`cat / | if [ "`cat / | ||
- | ssh pi@< | + | ssh pi@192.168.168.63 |
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 |
- | </ | + | </ |
- | - make sure your rc-local service is activated and restart it to test your script: < | + | |
- in order to test if everything is working, you can force your screen to standby by running this command in a terminal < | - in order to test if everything is working, you can force your screen to standby by running this command in a terminal < | ||