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

DisplayMagician CurrentProfile doesn't provide an output #223

Open
EthanGJ123 opened this issue May 16, 2023 · 4 comments
Open

DisplayMagician CurrentProfile doesn't provide an output #223

EthanGJ123 opened this issue May 16, 2023 · 4 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@EthanGJ123
Copy link

When using DisplayMagician CurrentProfile, the program doesn't return a value, and exits.

Steps to reproduce the behaviour:

  1. Go to command prompt
  2. cd to the DiaplayMagician directory
  3. Execute the command DisplayMagician CurrentProfile
  4. See that the program exits without output

I would expect either a name or identifier of a profile

DisplayMagician-Support-20230516-0719.zip

  • Windows Version: Win11 Pro
  • DisplayMagician Version 2.5.0.352
  • Video Card: MSI NVIDIA GTX1050Ti
  • Number and make/model of monitors: 2x Acer S240HL, 1x MSI G271
  • Video driver version: 528.49
  • Windows version: 22621.1702
@EthanGJ123 EthanGJ123 added the bug Something isn't working label May 16, 2023
@terrymacdonald
Copy link
Owner

@EthanGJ123 I just tested and yes, you are correct. It has stopped working at some point, so I will have to go back and try and troubleshoot why that is. Thank you for bringing this to my attention.

Pleas note it will be a month or so before I'll be able to work on this in depth, as real life has gotten substantially busier over the last little while. I'll do my best to investigate as the issue hopefully won't be too difficult to fix.

Thanks
Terry

terrymacdonald added a commit that referenced this issue Jan 12, 2024
This fixes CurrentProfile so that it outputs the profile name currently in use. Fixes #223. Have to monitor this to make sure that it doesn't introduce a memory leak....
@terrymacdonald terrymacdonald added this to the 2.6.0 milestone Jan 12, 2024
@terrymacdonald
Copy link
Owner

@EthanGJ123 I tried to get the CurreentProfile to work on this WinForms application but unfortunately I haven't been able to get this to work. WinForms apps don't natively have support for console output, so you have to kind of glue it in there, and every method I tried didn't work.

So, I've decided to work on creating a separate console programme that will use the shared profile libraries to provide that feedback, much like Soroush Falahati did with the original Helios Display Management back in the day. This will take a little while to sort out, but I'm hopeful I'll be able to get the basics built in before the next release happens. We shall see.

Thanks
Terry

terrymacdonald added a commit that referenced this issue Feb 10, 2024
Tweaked and tuned the DIsplayMagicianConsole.exe so that you can use either the Profile UUID or the Profile Name to select it. Also updated the CurrentProfile command so that it reports the currentProfile UUID as well as the name, so to make it easier for  the user to use.

Also added in the ability to run "DIsplayMagicianConsole.exe AllProfiles" to get a list of all the DisplayProfiles currently available.

Also added a -p flag to change the ourput from human readable to one delimited by the vertical pipe character "|" to make it easier to parse in scripts.

Fixes #223
@terrymacdonald
Copy link
Owner

@EthanGJ123 Good news! I've made a new separate console application called DisplayMagicianConsole.exe that allows you to interact with DisplayMagician Display Profiles from a script. This allows the following three commands:

  • DisplayMagiciancConsole.exe CurrentProfile: This will show the name and UUID of the display profile in use
  • DisplayMagiciancConsole.exe AllProfiles: This will show the name and UUID of all the available display profile that have been saved within DisplayMagician.
  • DisplayMagiciancConsole.exe ChangeProfile <ProfileName|UUID>: This will change to the display profile with the Name or UUID provided by the user. If the Display Profile is valid to use right now then it will be applied. You can re-apply the same profile that is in use now. If applying the display profile is not successful then you will be given an error message explaining what happened.

The idea is that you use the first two commands to figure out which Display Profile you want to use, and then use the last command to swap to it.

I've made a special new test version of DIsplayMagician for you to try. Please give it a test and give me any feedback.

DisplayMagicianSetup-v2.6.0.517-console.zip

And if you like what I do, then I'm open to receiving donations. I'm hoping to save up for an Intel Arc video card so that I can add some Intel Arc support to DisplayMagician.

Thanks
Terry

@terrymacdonald
Copy link
Owner

Oops I broke the setup with my previous version. This version has a corrected setup that should install everything properly.

DisplayMagicianSetup-v2.6.0.522-corrected-setup.zip

Thanks
Terry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants