           {
             irsend.sendNEC(tv_input, 32);
             delay(3000);
+
             for ( int i = 0 ; i < o_channelGap ; i++ ) {
               irsend.sendNEC(tv_left, 32);
               delay(300);
             }
+
             irsend.sendNEC(tv_enter, 32);
-            tvPowerStatus = 1;
+
+            if ( bywhat == 0 ) {
+              tvPowerStatus = 1;
+            }
+
             delay(300);
             irrecv.enableIRIn();
           }

          if ( tvPowerStatus == 1 )
          {
            irsend.sendNEC(tv_onoff, 32);
            tvPowerStatus = 0;
            temp_Mills = millis();
            delay(300);
            irrecv.enableIRIn();
          }

  lcd.backlight();
  lcd.clear();

  delay(1000);

  // Timer start
  temp_Mills = millis();
