Turn your Windows PC into a 1080p60 / 4K60 Smart TV controlled from bed with your smartphone — with automatic Headset ↔ Soundbar/TV audio switching, Screen Off/Wake, and Bedtime PC Shutdown.
Transforme seu PC Windows em uma Smart TV 1080p60 / 4K60 controlada da cama pelo celular — com troca automática de áudio Fone ↔ Soundbar/TV, Ligar/Apagar Tela e Desligamento do PC ao dormir.
Convierte tu PC Windows en un Smart TV 1080p60 / 4K60 controlado desde la cama con tu móvil — con cambio automático de audio Auriculares ↔ Barra de Sonido/TV, Encender/Apagar Pantalla y Apagado del PC.
🇺🇸 English • 🇧🇷 Português • 🇪🇸 Español • 🛠️ Build from Source
- ⏻ Shut Down PC When Tired (
Desligar PC quando cansar): Shut down Windows immediately from bed (with an 8-second cancelable safety countdown) or set a Sleep-to-Shutdown Timer (15m,30m,60m,90m). Before shutting down, BedTube automatically restores your Headset / PC default audio so your speakers never blast sound on next boot! - ☀️ Dedicated Wake Screen Button (
Ligar Tela): Turned off your PC monitor to listen in the dark and want the screen back? Tap☀️ Ligar Tela/Wake Screen(or the instant top banner) — uses native Win32SendInput+SC_MONITORPOWERto reliably wake Windows 10/11 monitors from Modern Standby. - ✨ Redesigned Obsidian + Electric Indigo UI & 60fps Animations: All-new sleek mobile remote & Desktop QR Pairing Hub featuring a 3D tactile Squircle D-Pad (
OKindigo halo), thick 48px gradient pill volume slider with drag glow, GPUtranslate3dsliding segmented controls (Soundbar / TV↔Fone / PC,1080p / Máx·4K / 720p / Auto), staggered entrance cascade, and micro-haptic touch physics.
If you use headphones/headset at your desk during the day, watching YouTube on your PC monitor or HDMI TV from bed or the couch is annoying: you have to get up to switch Windows audio outputs, lower loud desktop volume, grab a mouse, wake/turn off the screen, or get out of bed just to shut down the PC when sleepy.
BedTube Controller solves the entire bedroom/couch HTPC workflow in one tap from your smartphone:
- Wakes your PC screen and opens YouTube TV (Leanback Smart TV interface) in an isolated fullscreen engine — zero browser extension popups, zero desktop redirects, and unlocked 1080p60 / 1440p60 / 4K60 playback.
- Automatically switches Windows default audio (
<5ms) from your Headset/Headphones to your Soundbar / Speakers / HDMI TV at a safe Night Volume (e.g.,25%). - Gives your smartphone an installable Animated OLED Touch Remote (PWA) with tactile 3D Squircle D-Pad, instant text or YouTube URL search, GPU sliding
1080p / 4K / 720p / Autoquality switcher, pill volume slider, Turn Off / Wake PC Monitor, Sleep Timer, and PC Shutdown when tired. - Watchdog Auto-Restore: Whether YouTube TV closes from your phone,
Alt+F4, gamepad, Sleep Timer, or before a scheduled PC Shutdown, Windows audio automatically reverts to your Headset.
- 🎬 Unlocked 1080p60 & 4K60 YouTube TV on Windows: Isolated Electron Smart TV shell with Cobalt 27 / Starboard MSE profile and GPU hardware video decoding.
- 🔊 Instant Native CoreAudio Switcher (
<5ms): Direct WindowsIPolicyConfigCOM +pycawendpoint switching across Multimedia, Console, and Communications roles — zero PowerShell popups or virtual audio drivers. - ☀️ Screen Off & Instant Wake + ⏻ Bedtime PC Shutdown: Turn off the monitor while audio keeps playing, wake it back up in one tap (
SendInputhardware wake), or schedule/trigger full Windows shutdown from bed. - ☁️ Works When PC is on Wired Ethernet & Phone is on Wi-Fi: Built-in Cloudflare HTTPS Quick Tunnel + HMAC-SHA256 Encrypted MQTT Relay. Automatically bypasses router AP/LAN isolation and Android 15/16/17 Local Network blocks with zero port-forwarding.
- 📲 Reboot-Proof Mobile PWA & 60fps Gamepad Support: Install to iPhone/Android Home Screen once; also works out of the box with Xbox & PlayStation controllers.
- 🪄 Custom Dark-Mode Installer (
BedTube-Setup-0.0.2.exe): Fast native WPF installer & uninstaller in English, Portuguese, and Spanish — no Admin/UAC prompt required.
- Download
BedTube-Setup-0.0.2.exe(or the portable.zipfrom Releases). - Run the setup wizard and click Install.
- In the BedTube Pairing Hub that opens automatically, choose your TV / Soundbar audio device and your Headset / Desk audio device, then scan the QR Code with your phone camera!
Quem usa fone de ouvido (headset) no computador sabe o incômodo que é deitar na cama para assistir YouTube no monitor ou na TV HDMI: levantar para trocar a saída de som do Windows, abaixar o volume, ficar sem botão para religar a tela depois de apagá-la ou ter que levantar quando bate o sono só para desligar o PC.
O BedTube Controller v0.0.2 resolve tudo com 1 toque no celular:
- Acorda o monitor e abre o YouTube TV (interface oficial de Smart TV) em tela cheia totalmente isolada — sem janelas de extensões e com qualidade destravada em 1080p60 / 1440p60 / 4K60.
- Troca automaticamente o som do Windows em
<5msdo seu Fone/Headset para a Soundbar / Caixa de Som / TV HDMI já ajustada no Volume Noturno ideal (ex:25%). - Transforma seu celular em um Controle Remoto OLED Animado (PWA) com D-Pad Squircle 3D tátil, busca rápida, slider espesso de volume, pílulas deslizantes a 60fps (
Soundbar/TV ↔ Fone/PC,1080p / Máx·4K / 720p / Auto), botões dedicados Apagar Tela e ☀️ Ligar Tela, Sleep Timer e ⏻ Desligar PC quando cansar (Agoraou em15 / 30 / 60 / 90 min). - Watchdog Inteligente: Fechou a TV ou mandou desligar o PC? O áudio do Windows volta sozinho para o Fone de Ouvido antes de encerrar.
- Baixe o
BedTube-Setup-0.0.2.exe(ou a versão portátil.zipem Releases). - Execute o instalador e clique em Instalar BedTube Controller v0.0.2.
- Na central de QR Code que abrirá automaticamente, escolha sua Soundbar / Caixa de Som / TV e seu Fone de Ouvido, salve e escaneie o QR Code com a câmera do celular!
Si usas auriculares (headset) en el escritorio, ver YouTube en el monitor de tu PC o TV HDMI desde la cama o el sofá suele ser incómodo: levantarse para cambiar el audio de Windows, bajar el volumen, volver a encender el monitor tras apagarlo o levantarse con sueño para apagar la computadora.
BedTube Controller v0.0.2 automatiza todo con un solo toque desde tu móvil:
- Enciende el monitor y lanza YouTube TV (Smart TV Leanback) a pantalla completa en un motor aislado con 1080p60 / 1440p60 / 4K60 desbloqueados.
- Cambia automáticamente el audio de Windows en
<5msde tus Auriculares/Headset a tu Barra de Sonido / Altavoces / TV HDMI con Volumen Nocturno seguro. - Convierte tu smartphone en un Control Remoto OLED Animado (PWA) con cruceta D-Pad 3D, búsqueda rápida, control deslizante de volumen, Apagar Pantalla + botón dedicado ☀️ Encender Pantalla, Temporizador y ⏻ Apagar PC al cansarte (
Ahorao en15 / 30 / 60 / 90 min, restaurando tus auriculares antes de apagar Windows).
- Descarga
BedTube-Setup-0.0.2.exe(o el archivo portátil.zipen Releases). - Abre el instalador y haz clic en Instalar BedTube Controller v0.0.2.
- Selecciona tu Barra de Sonido / Altavoces / TV y tus Auriculares, ¡y escanea el Código QR con la cámara de tu celular!
# 1. Install Python dependencies (Windows 10/11, Python 3.10+)
pip install -r requirements.txt
# 2. Run directly from source and open the Pairing Hub
python bedtube.pyw --show-qr
# 3. Build standalone BedTube.exe + Portable ZIP + Custom WPF Installer (BedTube-Setup-0.0.2.exe)
# (Place cloudflared.exe in .\bin\cloudflared.exe and Electron runtime in .\runtime\electron\)
python build_release.py| Module | Responsibility |
|---|---|
bedtube.pyw |
System Tray daemon (pystray), single-instance mutex, High-DPI awareness & waitress HTTP host |
audio_manager.py |
Native Windows CoreAudio IPolicyConfig COM endpoint switching (<5ms) + pycaw volume/mute |
tv_manager.py |
Electron Smart TV lifecycle, Watchdog audio restore, Win32 SendInput monitor wake/off & PC Shutdown scheduler |
tv_shell/ |
Isolated YouTube TV Leanback shell with Cobalt 27 1080p60/4K60 MSE unlocker & 60fps Gamepad engine |
cloud_bridge.py |
Zero-config cloudflared HTTPS tunnel + Win32 Job Object + HMAC-SHA256 MQTT TLS Relay |
web_app.py |
Trilingual (EN/PT/ES) Animated Mobile OLED PWA Remote + Desktop QR Pairing & Audio Hub |
installer/ |
Native C# WPF Custom-UI Self-Extracting Installer (Setup.cs) & Uninstaller (Uninstaller.cs) |
- English: youtube tv on pc, youtube leanback windows 11, youtube tv 1080p 60fps 4k desktop, unlock 1080p youtube tv browser, control pc youtube from phone, smartphone remote control for windows pc, watch youtube from bed on pc, couch htpc remote pwa, automatic audio output switcher windows, switch headphones to speakers automatically, headset to soundbar switcher, turn off and wake pc monitor from phone, shutdown pc from phone bed timer, windows sleep timer remote app, youtube tv gamepad controller windows.
- Português: youtube tv no pc, youtube de smart tv no windows 10 11, youtube tv 1080p 60fps 4k pc, destravar 1080p youtube tv navegador, controlar youtube do pc pelo celular, controle remoto para pc pelo celular wifi, assistir youtube deitado na cama no pc, transformar pc em smart tv, trocar saida de audio automaticamente windows, alternar fone de ouvido e caixa de som sozinho, trocar headset para soundbar automatico, apagar e ligar tela do monitor pelo celular, desligar pc pelo celular quando dormir cansar, timer desligamento pc cama, youtube tv controle xbox playstation pc.
- Español: youtube tv en pc, youtube de smart tv en windows 10 11, youtube tv 1080p 60fps 4k escritorio, desbloquear 1080p youtube tv pc, controlar youtube de pc desde el celular movil, control remoto mando a distancia para pc desde el telefono, ver youtube desde la cama en pc, convertir pc en smart tv, cambiar salida de audio automaticamente windows, alternar auriculares y altavoces automaticamente, cambiar headset a barra de sonido, apagar y encender pantalla del monitor desde el movil, apagar pc computadora desde el celular cama temporizador, mando xbox playstation youtube tv pc.
Distributed under the MIT License.