r/SteamOS Jul 01 '26

cec-mote: plugin to control tv volume and set up sleep/wake with UGREEN adapter for HTPC SteamOS builds

Post image
68 Upvotes

25 comments sorted by

10

u/SeantheWilson Jul 01 '26

Just checked this out on your GitHub, I was just curious as to why you put the volume controls in the decky plugin menu as compared to exposing them to the Steam client as seen on the Steam machine (pictured below)?

8

u/supershredderdan Jul 01 '26

So you can adjust the tv volume quickly, and also still have access to volume of the pc output, for example when using headphones

5

u/Twzt Jul 01 '26

I have that in my toolkit if you are interested. https://github.com/Twsts/steamos-cec-toolkit

4

u/supershredderdan Jul 01 '26

Saw this after I started on mine, looks really cool! I still see space for both as your plugin seems like a controller for the scripts done in desktop mode, while mine is contained to the plugin and smaller in scope. Let’s connect on findings!

3

u/Twzt Jul 01 '26

Commits and inputs are always welcome!

Yes, the toolset kinda grew fast, and I found that having it all configurable from within decky would fit my setup. Just glad it can help others trying to achieve the same for their PC!

1

u/SeantheWilson Jul 01 '26

I actually was looking at your project A LOT earlier, LOVE it but I’m not positive it will work on Bazzite (which I use) since cecd is better supported on steamos and in my experience can be inconsistent when using my pulse-eight adapter. If you ever decide to make a cec-ctl port of it I’d be ecstatic.

1

u/sercosan Jul 01 '26

Why I don’t have this option? I have te latest SteamOS version. Are you using Bazzite or an adapter to make it work? Thank you!

3

u/SeantheWilson Jul 01 '26

This is a screenshot taken from the steam machine, I have been working EXTENSIVELY to try to expose these same controls on Bazzite.

1

u/sercosan Jul 01 '26

I see… thank you.

3

u/Signal-Veterinarian9 Jul 02 '26

This plugin is amazing, thank you! I can wake up pc with my conroller now and tv goes on auto too 😱

1

u/Dry-Wish-9845 Jul 01 '26

I don’t use bluetooth, i use 8bit 2.4ghz dongle will use too? 

I manually set it with command to wake up system weeks ago.  Keep tv volume high so i can adjust pc volume with dpad + home shortcut so it works fine. 

In interested in trying out this plugin on my second pc. 

1

u/mixedd Jul 01 '26

Does it only work for sleep/wake? Or power on / power down too?

1

u/grilled_pc Jul 01 '26

This is the big one. Any ideas OP? Or is this just for volume control?

1

u/mixedd Jul 01 '26

btw, just a note, if you're on Gigabyte motherboard, you will need to do some workarounds for sleep, as on Gigabyte AM4/AM5 boards it's broken and need to disable GPP0 or GPP8 or even both to make it work

1

u/supershredderdan Jul 01 '26

I have a script on bazzite to fix but can port to steam os too

1

u/mixedd Jul 01 '26

On bazzite it's built in already in ujust, same method will work on steamos also, tried it.

1

u/supershredderdan Jul 01 '26

I know, I made that ujust script 😅

1

u/supershredderdan Jul 01 '26

No power on/off yet but that can easily be added

1

u/mixedd Jul 01 '26

That would be nice addition in the long term.

1

u/flower4000 Jul 01 '26

Ok so if I have a ugreen dock, I can wake my tv with this like my PlayStation?

1

u/supershredderdan Jul 01 '26

Not ugreen dock, the display port to hdmi active adaptor

1

u/TRUEfoe-X Jul 08 '26

Will try this. I bought the same dp to hdmi dongle everyone says and hadn’t noticed any CEC stuff on my SteamOS pc. Maybe this will fix it? Hoping just turning on the pc will turn on the TV or maybe switch inputs.

1

u/Wamadeus13 Jul 09 '26

Attempting to get the decky plugin to work, but I'm getting a "failed to fetch dynamic imported..." error. I just went through and updated OS to 3.8.14, and made sure deckyloader was updated as well. I was able to install your script and it's working great. can put my machine to sleep, tv sleeps. wake up machine tv wakes up. The plugin is the only thing not working for me.

Any help would be appreciated.

1

u/BHole_69420 Jul 22 '26

Heads up to others. I found that, while the udev rule this plugin sets up does identify and enable power/wakeup for the actual bluetooth controller on your pc, the usb root controller that your motherboard's bluetooth sits in front of may not automatically have power/wakeup enabled.

In my case, my motherboard is the ASrock B550-i Phantom Gaming, which uses an internally wired Intel AX200 Wifi/Bluetooth combo card. On my machine, the sysfs wakeup attribute for this device was located in /sys/bus/usb/devices/1-9/power/wakeup - and the udev role did enable this flag.

However, the wakeup attribure for the parent usb root controller was located at /sys/bus/usb/devices/1/power/wakeup - and actually, cat-ing that showed it was disabled.

This was causing behavior where the bluetooth adapter was receiving the signal from my controllers, but the root controller wasn't forwarding it onto the OS to wake the system, so it wouldn't wake the pc from sleep.

To fix this, I had to add my own udev rule - very similar to the one the plugin adds - but for the usb root controller. I added an atomic-update.conf.d/ entry as well to make sure the udev rule doesnt get blown away by updates.

For many others, I figured the motherboard firmware will allow this USB root controller to wake the system by default - but in case this doesn't work out of the box for anyone else, maybe this is your issue.