this post was submitted on 20 Feb 2024
31 points (100.0% liked)
Steam Deck
14899 readers
44 users here now
A place to discuss and support all things Steam Deck.
Replacement for r/steamdeck_linux.
As Lemmy doesn't have flairs yet, you can use these prefixes to indicate what type of post you have made, eg:
[Flair] My post title
The following is a list of suggested flairs:
[Discussion] - General discussion.
[Help] - A request for help or support.
[News] - News about the deck.
[PSA] - Sharing important information.
[Game] - News / info about a game on the deck.
[Update] - An update to a previous post.
[Meta] - Discussion about this community.
Some more Steam Deck specific flairs:
[Boot Screen] - Custom boot screens/videos.
[Selling] - If you are selling your deck.
These are not enforced, but they are encouraged.
Rules:
- Follow the rules of Sopuli
- Posts must be related to the Steam Deck in an obvious way.
- No piracy, there are other communities for that.
- Discussion of emulators are allowed, but no discussion on how to illegally acquire ROMs.
- This is a place of civil discussion, no trolling.
- Have fun.
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Seems like a good idea, but why didn't the off script reset the SetPrimary monitor? And does the "turn off" command just temporarily turn the screens off, so any action on the desktop will turn the screens back on?
Edit: Also, the cd command seems a bit strange. I haven't written a batch file in a while, but I think there's a way to set the path as a variable and then call the executables directly. Probably doesn't matter, but changing directories in a .bat file just feels wrong for some reason, y'know?
Regardless, thanks for posting. This is a great idea, regardless of the specific implementation details.
So after sitting down and setting it up, I found that on my setup the script above didn't work for my machine. I had to set up my own scripts that specified the path of the executable, and then I used a command that toggles the monitor instead, it worked much better that way.
But scripting aside, now that it's working, it is beautiful! Set it up for my living room TV to be a 4k 120hz virtual monitor.
If you'd be willing to post your .bat file, that would be fabulous! I haven't had a chance to set this up yet.
I'm not sure if I did this right, but here it is! This is the script to run on moonlight launch, just reverse the numbers for your script to run on moonlight exit.
The instructions above worked well with the exception of the script. Make sure that the iddsampledriver folder is on the root of the C: drive. and make sure that Multimonitortool is inside that folder.
You'll have to switch the numbers in the script with your monitor values. You'll get those from MultiMonitorTool. Open MMT, right click on your monitor, click properties, and the value you're looking for is under "Name"
@echo off
:: Path to MultiMonitorTool.exe set "MultiMonitorToolPath=C:\IddSampleDriver\MultiMonitorTool.exe"
"%MultiMonitorToolPath%" /disable \.\DISPLAY1 "%MultiMonitorToolPath%" /enable \.\DISPLAY21 "%MultiMonitorToolPath%" /setprimary \.\DISPLAY21