Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screenmute Feature #19

Open
DPStokesNZ opened this issue Nov 1, 2024 · 0 comments
Open

Screenmute Feature #19

DPStokesNZ opened this issue Nov 1, 2024 · 0 comments

Comments

@DPStokesNZ
Copy link

DPStokesNZ commented Nov 1, 2024

Not an issue per se, more of a feature/function update.

There's a "hidden" (i.e.: not documented in the MDC protocol document other than in the changelog) screen mute function available on the devices which quickly blanks/unblanks the screen (rather than powering on/off, standby, etc). The name is a bit of a misnomer but that's the name on the remote button for the Samsung SBox. It works on regular panels too.

diff --git a/samsung_mdc/commands.py b/samsung_mdc/commands.py
index a2be5ff..fe91cfb 100644
--- a/samsung_mdc/commands.py
+++ b/samsung_mdc/commands.py
@@ -1398,3 +1398,15 @@ class VIDEO_WALL_MODEL(Command):
     GET, SET = True, True
 
     DATA = [VideoWallModel('MODEL'), Int('SERIAL', range(1, 256))]
+
+class SCREEN_MUTE(Command):
+
+    CMD = 0xFE
+    SUBCMD = 0x51
+    GET, SET = True, True
+
+    class SCREEN_MUTE_STATUS(IntEnum):
+        ON = 0x00
+        OFF = 0xFF
+
+    DATA = [SCREEN_MUTE_STATUS]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant