Users of a 2 or more monitor-setup know this situation:
Trying to watch a video on the main screen is disturbed by that nasty glare of the other screen(s).
Here we have a quick way to make them go dark, with the press of a button.
Requirements for this tutorial:
- Plex Media Player is running on Windows
- Plex Media Player is not an umbrella term for all kinds of Plex clients.
I am talking about the software for Windows, Mac, Linux and ‘PMP embedded’ which you can download free of charge here from the plex.tv website.
Neither am I talking about the Plex app in the Microsoft App Store.
This is a workaround and requires still one button press by the user on his keyboard or remote control!
This will only work in TV mode!
- first, we need this excellent little tool Multiscreen Blank - Blank, dim, and mirror your screens in a multi-monitor setup
Download and extract it into a folder on your computer. - then we need a text editor. notepad.exe is sufficient, but I recommend you to use https://notepad-plus-plus.org/
- go to the folder
%LocalAppData%\PlexMediaPlayer\scripts
(copy this path and paste it into the address bar of Windows file explorer) - in there, create a new text file and copy these 2 lines into it:
@ECHO OFF
start C:\MultiscreenBlank2\MultiscreenBlank2.exe /minimized /toggle id \\.\DISPLAY2
If you extracted the MultiscreenBlank tool someplace else, adapt the path to it.
- save the file
- rename the file to
blankscreen.cmd - test it by double-clicking on it. If the wrong screen is dimmed, double-click it again, then adapt the monitor ID number.
For more details see the website of the Multiscreenblank author - if the test was successful, go to the folder
%LocalAppData%\PlexMediaPlayer\inputmaps
If you have already created a custom inputmap, you should see it here. If you didn’t yet, copy one from the subfolderexamples. For most users, thekeyboard.jsonis the one to start with. - open the just-copied
.jsonfile with your text editor and insert the following line somewhere in the middle
"D": "host:script blankscreen.cmd",
This tells PMP to start the script blankscreen.cmd after the user has pressed the d key on his keyboard.
To un-dim, press d again.
If you are using PMP with a different control method, pick a different
.jsonfile in step 8)
If you have found a way to achieve the same on Macintosh or Linux, please post it here!
A big Thank You! to @hopper886 who gave me the final tip how to do it. He has the script method with ‘PMP embedded’, to achieve something different btw.