There is probably some capacitance on the 5V line of the USB output port, which will keep the output high for a short time after the TV is turned off. The charge will slowly leak away and eventually change the state of the GPIO, so you won't get an instant "off" indication.It takes 1 to 2 seconds to detect when the USB port is off, but it works! Thanks.What's used on original Pico2:
connected to 5v: 5k6 (instead of your 220k)
connected to ground: 10k (instead of your 330k)
Statistics: Posted by ame — Sun Jun 22, 2025 11:17 pm