using_a_samsung_tv_as_computer_screen

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revisionBoth sides next revision
using_a_samsung_tv_as_computer_screen [25.01.2017 00:13] Pascal Suterusing_a_samsung_tv_as_computer_screen [25.01.2017 00:13] Pascal Suter
Line 25: Line 25:
  if [ $? -eq 0 ]; then  if [ $? -eq 0 ]; then
  if [ "`cat /tmp/displaystate`" != "off" ]; then   if [ "`cat /tmp/displaystate`" != "off" ]; then 
- ssh pi@192.168.168.169 'echo 'standby 0' | cec-client -s RPI'+ ssh pi@<raspberryIP> 'echo 'standby 0' | cec-client -s RPI'
  echo "off" > /tmp/displaystate  echo "off" > /tmp/displaystate
  fi  fi
Line 31: Line 31:
  else   else 
  if [ "`cat /tmp/displaystate`" != "on" ]; then   if [ "`cat /tmp/displaystate`" != "on" ]; then 
-                 ssh pi@192.168.168.169 'echo 'on 0' | cec-client -s RPI'+                 ssh pi@<raspberryIP> 'echo 'on 0' | cec-client -s RPI'
                  echo "on" > /tmp/displaystate                  echo "on" > /tmp/displaystate
          fi          fi
  • using_a_samsung_tv_as_computer_screen.txt
  • Last modified: 25.01.2017 09:34
  • by Pascal Suter