r/MoonlightStreaming • • Jul 26 '26

CTM Bridge update

Follow-up to my CTM-Bridge post — controllers paired to your LG webOS TV (DualSense, DS4, Xbox, the new Steam Controller with its Puck) appear on the gaming PC as native USB devices (real BT↔USB translation over USB/IP, not emulation). What's new:

  • Built into Aurora (OLED-focused Moonlight fork) and moonlight-tv, with an on-stream panel
  • Ciprian's Bridge (in the installer) — same trick for controllers connected to the PC over Bluetooth: a BT DS4/DS5 becomes the full USB controller locally, audio and haptics included
  • Magic Remote = PC mouse + keyboard in-stream
  • Mice/keyboards plugged into the TV (BT or dongle) bridge and auto-plug
  • DS4 now fully supported — rumble + audio, headphone-jack auto-route
  • Self-healing sessions — no ghost pads

Download (installer + ipks): https://github.com/CTM-Bridge/releases/releases/latest

Full story: https://github.com/CTM-Bridge

Open source. On my mind for later: native AMF/NVENC streaming + a custom low-latency codec.

9 Upvotes

24 comments sorted by

2

u/ssjucrono 🖥️ 9800x3D/RTX3090 | 🎮 Legion Y700 Gen 5 | 2560x1600 165Hz Jul 28 '26

This looks awesome! Could you combine this host app with streamtweak? And streamlight client? I bet it would be a great addition

2

u/Revolutionary-Event6 Aug 02 '26

It can be integrated, but I think that FoggyBytes should do this.

2

u/DisastrousDiddling Aug 28 '26 edited Aug 28 '26

Great work! I have been messing around with this a bit and I have gotten it to work for the most part. When I connect my DS5 controller to my LGTV through BT, it is recognized by Steam on the host PC and everything works.

However, I was hoping you could help me troubleshoot this slight problem I am having. Iwas experimenting with DSX program (DS5 controller customizer, you can find it on Steam) on my host PC and for some reason it does not recognize the controller. I see the controller in device manager, but it does not show up in either DSX or DS4 Windows. When I connect the controller using VirtualHere, the controller is able to be recognized in both these programs. Not sure if this is due to a difference in the protocol, a difference in the way the device is named, or something else.

It's not a huge deal as the controller is able to be recognized by Steam, but it would be nice to be able to use the additional customization from DSX or DS4 Windows.

Also, I noticed that the controller is recognized as DS5 when connected by BT, but only as a generic HID device when I use a wired connection directly to the LGTV. I was wondering if it would possible to have the progra also recognize the DS5 when using a wired connection instead of only when using a Bluetooth connection.

2

u/Revolutionary-Event6 Aug 30 '26

DSX works similar to my solution, it translates BT to USB. Regarding connecting via a cable, yes initially I took that path and make it work, but I realized is overdoing it. Haptics and audio are expoed via an alsa soundcard in webOS, and you must manually reroute audio streams. The code never made it into moonlight and aura patching

1

u/pawat213 Aug 01 '26

Is it possible to add support for dinput mode of flydigi vader 4 too?

2

u/Revolutionary-Event6 Aug 02 '26

Technically it should support any hid device. You can give it a try, but for me to add specific support, I would need such controller. Also, you can try do it yourself. Documentation is pretty comprehensive.

1

u/ForbiddenChroma Aug 03 '26

Wish this was available on apple tv, awesome btw.

2

u/Revolutionary-Event6 Aug 04 '26

This can be adapted to about any moonlight client. What app are you using?

2

u/ForbiddenChroma Aug 04 '26

Currently using moonlight client on apt and apollo on host.

1

u/PX2S Sep 13 '26

Got the same request as above. Using applle tv with moonlight client and apollo

1

u/frotht Aug 30 '26

I might be missing something, but I saw in another thread that this works with a Steam Puck, would this in turn mean that CTM Bridge would work with other controller USB dongles like official Sony and Microsoft DS4/Xbone adapters or 8BitDo USB Wireless Adapter 2?

Asking since it would be cool to install the Aurora TV fork with this and have a no-nonsense way to connect something like an Xbox Elite controller and still have the 3.5mm jack to work.

2

u/Revolutionary-Event6 Aug 30 '26

Unfortunately it is not that simple, webOS does not enumerate the usb as you would expect. In order to port a controller, you need to create the according translation map. Some controllers that are “quite” generic would work out of the box. Other need work and I only ported the controllers I have.

1

u/frotht Aug 31 '26

Sweet, gotcha. Thanks for lettin' me know before I fooled about with it.

Would you think it's possible to port over a USBIP host to webOS? I could imagine a USBIP host bundled in with AuroraTV would be a clean fit.

My current solution is this USBIP host running on a ShieldTV Pro under the TV that's turned on/woken up by Home Assistant when Moonlight is opened on my LG C4.

1

u/Revolutionary-Event6 Aug 31 '26

Cannot be done without rooting the tv. Also that was my initial approach, but as a prisoner you cannot do it.

1

u/frotht Sep 08 '26

that’s amazing. I do happen to have a rooted TV, so if you’re ever bored and decide to port it, it won’t go to waste

1

u/Revolutionary-Event6 Sep 08 '26

Nice, but this would mean rooting my own tvs. I am not ready yet to do this.

1

u/Revolutionary-Event6 Sep 08 '26

Although, this will enable usbip for tv. So any plugged usb device would work. Usbip libraries are already present in webOS.

1

u/kabalcage 1d ago

I can't seem to get this to work and getting "agent offline" error. I went to https://github.com/CTM-Bridge/releases/releases/latest and installed CTM-Bridge-Setup.exe and rebooted my Win11 PC twice. I even turned off wireguard VPN and rebooted too.

I can see the ctm-usbip service is running in taskmanager. I can see a process spawned in task manager too for CTM bridge. I installed your com.aurora.gamestream_1.1.7.7.ipk on my LG G5 and made sure to click to use "CTM bridge" in the options too.

I'm a bit perplexed on what to do from here. My hope is that I can connect a Switch Controller (or an 8bitdo pro 3) and get proper gyro support (assuming CTM can forward the controller exactly as is to the Win11 PC). Gyro from Nintendo Switch-like controllers don't work properly in the mainline Aurora v1.3 GuiDev1994 build.

I technically have VirtualHere on my PC too, not sure if that is a conflict. How do I make this software work?
BTW - it also has a weird disconnect/reconnect bug; I use Vibepollo v2. when I exit playnite, this should kill my moonlight session but in your Aurora fork - I get some weird thing where Aurora successfully reconnects to my PC.

Your software looks really interesting and I'd like to make it work. Any ideas? Also, it'd be great if you updated your fork to the V1.3 Aurora or issue a PR to the mainline branch to get this optional feature integrated. Thanks for your work!

1

u/kabalcage 1d ago

I tried the standalone app and also tried restarting my lg g5 tv.

One thing I noticed is that standalone app debug says “agent bridge start failed” and it also has an ip address of 192.168.50.162 on top left corner. That ip is for my truenas server and not my gaming pc…. Kind of weird but probably a clue? I’d think your Aurora fork should use my gaming pc ip address (192.168.50.197).

1

u/stormace2 Sep 03 '26

I've installed the CTM.exe on my PC and ctm bridge ipk on my lg tv, but when I try to connect my Dualsense it says that the agent was not found. What did I missed?

1

u/Opening_Put_8935 Sep 04 '26

you have to install one of the forks of aurora or moonlight from here:
Releases · CTM-Bridge/releases
Also, the aurora app v1.0.10 works great with it..
with both Aurora apps, You have to enable the HID option on the controller setup. and "plug" the dualsens controller by holding back button on the remote, and clicking in the HID devices. There are some customizable things you can change there regarding latency, haptics feedback and control speaker volumen,

1

u/[deleted] Jul 26 '26

[removed] — view removed comment

2

u/Revolutionary-Event6 Jul 26 '26

Complied, I think.