nomi-san / parsec-vdd

✨ Perfect 4K@240Hz Virtual Display
MIT License
2.41k stars 124 forks source link

Sunshine command support #13

Open SouljaVR opened 6 months ago

SouljaVR commented 6 months ago

Hi,

Thank you for your development. This has been really helpful/useful to me and I appreciate it a lot :) I just wanted to ask, is it possible to enable/disable or create/remove displays via command line? It would be cool if this was a thing if its not as Sunshine streamer allows for sending command when connecting/disconnecting a client. It would be perfect for creating/removing a display - or the better way to handle it would be enabling/disabling existing displays so the display ID doesnt change. Thank you!

nomi-san commented 6 months ago

Thanks, I will add CLI support in next patch.

vdd-cli.exe
  --add
  --remove [index]
  --remove-all
  --list
  --set-mode [1920x1080@120]
kmnkv1 commented 5 months ago

Thanks, I will add CLI support in next patch.

vdd-cli.exe
  --add
  --remove [index]
  --remove-all
  --list
  --set-mode [1920x1080@120]

Great, this will help a lot! Thank you very much, we are waiting.

nomi-san commented 3 months ago

Hello, here is the plan for the next CLI mode, any suggestions?

vdd-cli [command] [args...]
  add             - Add a virtual display
  remove N        - Remove the virtual display at index N (number)
                    use -1 to remove the last one
         all      - Remove all the added virtual displays
  list            - Show all the added virtual displays and specs
  set    N WxH    - Set resolution for a virtual display
                    where N is index number, WxH is size, e.g 1920x1080
                    use -1 to specify the last one
         N @R     - Set only the refresh rate R, e.g @60, @120 (hz)
         N WxH@R  - Set full display mode as above, e.g 1920x1080@144
  help            - Show this help

The CLI is actually a vdd-cli.cmd wrapper for ParsecVDisplay.exe, it will be added to PATH env via setup installer.

@echo off
start /wait "" "%~dp0ParsecVDisplay.exe" -cli %*
kmnkv1 commented 3 months ago

Hello, here is the plan for the next CLI mode, any suggestions?

vdd-cli [command] [args...]
  add             - Add a virtual display
  remove N        - Remove the virtual display at index N (number)
                    use -1 to remove the last one
         all      - Remove all the added virtual displays
  list            - Show all the added virtual displays and specs
  set    N WxH    - Set resolution for a virtual display
                    where N is index number, WxH is size, e.g 1920x1080
                    use -1 to specify the last one
         N @R     - Set only the refresh rate R, e.g @60, @120 (hz)
         N WxH@R  - Set full display mode as above, e.g 1920x1080@144
  help            - Show this help

The CLI is actually a vdd-cli.cmd wrapper for ParsecVDisplay.exe, it will be added to PATH env via setup installer.

@echo off
start /wait "" "%~dp0ParsecVDisplay.exe" -cli %*

Hi, thanks! You've already done a lot, and I really like your plan.

Maybe you could add an option to make the virtual display "primary" and then revert back to the default primary display when needed. This would be convenient for use with Sunshine, ensuring that applications always run on the virtual monitor.

Like this https://github.com/nomi-san/parsec-vdd/issues/35

изображение

lancoyan commented 1 month ago

Really need this feature, any chance to release a new build soon?

Wh1t3Rose commented 1 month ago

Also really need this feature. New Build soon?

nomi-san commented 1 month ago

Thank you for waiting, I will back in next week 😥

jaredallard commented 1 month ago

Thank you for waiting, I will back in next week 😥

cảm ơn a! 🙌