Post Reply

Forums -> UltraMon™ -> How to switch to next display device with hotkeys? (just like with nView)
Andy   2011-06-23 19:38
Laptop Windows 7 32-Bit , GeForce 8600M-GS, Nvidia Drivers 267.24 (and later drivers same problem), UltraMon 3.0.10

Hi, I just switched operating systems from XP to Win7 on my laptop which has an Nvidia 8600M-GS video card. Before with Nvidia XP drivers for my video card I was able to activate nView (Nvidia Desktop Manager) and so was able to set up hotkeys for switching between display devices (so to be able to use either my internal laptop monitor, external 20" LCD monitor or projector one at a time very easily by just pressing a few buttons on my keyboard).

Now with Win7 32-Bit, drivers for my same Nvidia video card does not come with nview anymore (as I'm sure you know) so I have to use the laptop's function key + F3 to switch between the display devices which is inconvenient for me due to the laptop's location. I have two external displays hooked up to my laptop; an external 20" LCD monitor via the VGA port and a projector via the HDMI port. Using the Windows key + P only switches on/off my external LCD 20" monitor on the VGA port, it does not allow me to switch to my projector via the HDMI port (only allows to switch to one device and not the other). And using my laptop's Function + F3 keys are inconvenient for me due to the laptop's location (I use external keyboard). So I have decided to try UltraMon...

So I installed UltraMon and tried a coupla different scripts to include what I think is the one I need:

SwitchPrimary
Sets the next monitor (in numerical order) as the primary monitor. Only works on Windows 2000/XP or later.

But it didn't work, just my internal laptop screen flashed for a second and nothing changed. To reiterate, all I want to do is switch display devices, one at a time, to show the desktop (or whatever I am currently viewing), either on my laptop's internal screen, my external 20" video monitor via VGA port, or my projector via HDMI. Please help me set up keyboard hotkeys for that using UltraMon.

Thank you... Andy
Christian Studer   2011-06-24 07:53
Should be possible with display profiles or a custom script which switches between the different profiles, but you'll need to upgrade to 3.1.0 first, won't work with earlier releases.

SwitchPrimary will only change the primary monitor, ToggleSingleMon will do what you want, but only for a 2-monitor system.

I would recommend testing if ToggleSingleMon works for you to switch between the first two monitors. One problem you could have on Windows 7 is that the display settings are wrong, but if that's not the case I could upload a new version of the script which works with systems with more than 2 monitors.

Christian Studer - www.realtimesoft.com
Andy   2011-06-24 13:50
Hi, thanks for your help. I followed your instructions as follows:

1) I upgraded to 3.1

2) I tried out script "ToggleSingleMon" and it first it worked flawlessly switching between my 20" external monitor on the VGA port using my hotkey setup and my internal laptop screen. The varying display resolutions on each were kept everytime I switched back and forth. So so far so good. But then I plugged in my HDMI projector into the laptop just for gee whiz and of course it didn't work like you said it wouldn't. But now something got borked, the display resolution when I switch to my external monitor (1600x900) is now the same as the laptop (1280x800) everytime I switch.

So I uninstalled UltraMon, wiped the registry clean, deleted all folders UltraMon created, rebooted, reinstalled Ultramon, set up the script, only plugged in the external 20" monitor and it's still borked. Every time I switch to the external monitor 1280x800 is displayed instead of what's supposed to be 1600x900. I can can change it but the next time I switch it's back to the lower resolution.

So ummm... it worked at first but now not. Well, it sorta works now but it doesn't remember display resolutions. What can we do to remedy this? And second, after fixing this is it possible for a script to work to allow me to also switch to my HDMI projector?

Thanks ever so much..... Andy
Andy   2011-06-24 13:59
As a followup regarding the screen resolution not being remembered when switching displays, perhaps something can be done with the Display Profiles setting? I don't want to mess with it though till I hear from expert guidance. I think I've borked it up enough already on my own :-)

Thanks again.... Andy
Christian Studer   2011-06-25 08:54
I've seen this as well on Windows 7, happens if the operating system returns the wrong display mode for a disabled monitor when UltraMon gets the last used mode for the monitor.

Try setting up 3 display profiles via UltraMon menu > Display Profiles, with each profile having only a single monitor enabled. If switching between the 3 profiles works fine, let me know the name (as shown by UltraMon menu > Display Settings), resolution and connector (VGA, HDMI or internal) for each monitor, and I can send you a script which switches between the 3 profiles.

Christian Studer - www.realtimesoft.com
Andy   2011-06-25 19:14
Hi again. Well, I have seriously played around with this (the displaying wrong resolution problem) for the past three hours. I have uninstalled my Nvidia drivers, cleaned out the remnants with DriverCleaner, and then reinstalled them just to be working on a clean slate. And have come to a conclusion: The "ToggleSingleMon" script is missing a final step in it's execution. Hope I can adequately explain what I mean...

Am going to use just my VGA Acer 20" external monitor as an example for the following: Whenever I use the laptop Fn + F3 keys (not the script) to toggle displays between the laptop and Acer 20" external, it always takes two times pressing those keys to properly show its resolution. The first time I press Fn + F3, the laptop display is still on and the external monitor displays the internal laptop resolution (sound familiar?). Then when I press Fn + F3 keys for the second time, the internal laptop screen shuts off and the external monitor screen now displays the proper resolution and all is fine.

So to now to add on the HDMI projector behavior, when I press Fn + F3 keys again, the 20" external monitor shuts off, the internal laptop screen comes on and the projector also comes on but shows the internal laptop resolution (familiar again). When I press Fn + F3 keys again, the internal laptop screen shuts off and the projector now is showing its proper resolution, 720p. All is well. Then finally after pressing Fn + F3 for the final (fifth) time, the internal laptop screen comes on by itself (the other two displays are off) with no issues.

But when I use the "SingleMon" script with either just the VGA external monitor or HDMI projector plugged in (each separately at a time, never together) it seems to act like the same behavior as when I press Fn + F3 just the one (first) time. Sure the internal laptop screen shuts off but the proper resolution is not enforced on the external displays like what seems to happen when I then press Fn + F3 keys that pivotal second time.

So, hmmm, I really hope you followed what I tried to explain. Using the script, yes the displays switch but the proper resolution does not get enforced. Perhaps that is something that could get added to the script? The scripts really acts like that first time I press Fn + F3, it just needs that last step to show the proper resolution.

You said "Try setting up 3 display profiles via UltraMon menu > Display Profiles, with each profile having only a single monitor enabled. If switching between the 3 profiles works fine, let me know the name (as shown by UltraMon menu > Display Settings), resolution and connector (VGA, HDMI or internal) for each monitor, and I can send you a script which switches between the 3 profiles."

Well, I set up the three display profiles you asked for but using the "ToggleSingleMon" script incurs the problems explained above. Or was I supposed to try a different script?

These are the three profiles I created:
1) Mobile PC Display - resolution 1280x800.
Exact wording is "Mobile PC Display on Nvidia GeForce 8600M GS"

2) Acer P205H - (VGA) resolution 1600x900.
Exact wording is "Acer P205H on Nvidia GeForce 8600M GS via VGA"

3) Benq W100 - (HDMI) resolution 1280x720 60Hz Scan Progressive.
Exact wording is "W100 on Nvidia GeForce 8600M GS via HDMI"

Thank you so very much. I really hope you can create a script that allows me to switch displays devices and yet also enforces monitor resolutions (just like I guess that second press of Fn + F3)

Andy
Christian Studer   2011-06-26 10:53
Do the 3 display profiles work correctly if you apply them via UltraMon menu > Display Profiles, meaning the correct monitor gets enabled with the correct settings?

Christian Studer - www.realtimesoft.com
Andy   2011-06-26 19:00
Do the 3 display profiles work correctly if you apply them via UltraMon menu > Display Profiles, meaning the correct monitor gets enabled with the correct settings?

The answer is yes and no.

) If just the Acer 20" monitor via VGA is connected to the laptop, and I click it's display profile, then it works fine (correct resolution).

2) If just the Benq projector via HDMI is connected to the laptop, and I click it's display profile, then the projector displays fine (correct resolution).

3) But if I have both of them (VGA & HDMI) connected to the laptop at the same time, then I have a problem displaying the projector when I select the BenQ projector profile. Instead of getting a signal output to the projector, the external Acer monitor comes on instead but is displaying in the 720p resolution that the projector is supposed to be. Displaying the external 20" monitor is fine (correct 1600x900 resolution) when both are connected it's just the projector that doesn't want to work at all (gets shown on the external 20" monitor instead but with the correct (for it) 720p resolution but the wrong resolution for the external monitor.) Odd. It's like UltraMon doesn't even see the HDMI port when both HDMI and VGA are plugged in.

I hope I explained this very well.

Thanks for your continuing help... Andy
Christian Studer   2011-06-27 09:15
Might be an issue with the monitor numbers, please post the system information from UltraMon menu > About

- with only the Acer connected

- with only the Benq connected

- with both connected

Christian Studer - www.realtimesoft.com
Andy   2011-06-27 12:53
Hi again, here is the info you requested:

---- Just the internal Laptop display (nothing plugged in):

1 monitors
Current desktop: 1280x800 (0,0 - 1280,800)

Monitor 1 - Generic PnP Monitor (primary):
Settings: 1280x800, 32-bit color, 60 Hz refresh rate
Coordinates: 0,0 - 1280,800. Workspace: 0,0 - 1280,772
Video card: NVIDIA GeForce 8600M GS
Device: \\.\DISPLAY1\Monitor0

____________________________________________________


---- Just the Acer 20" External Monitor plugged in (but IS NOT selected for viewing):

2 monitors, 1 disabled
Current desktop: 1280x800 (0,0 - 1280,800)

Monitor 1 - Generic PnP Monitor (primary):
Settings: 1280x800, 32-bit color, 60 Hz refresh rate
Coordinates: 0,0 - 1280,800. Workspace: 0,0 - 1280,772
Video card: NVIDIA GeForce 8600M GS
Device: \\.\DISPLAY1\Monitor0

Monitor 2 - Acer P205H (disabled):
Settings: 1600x900, 32-bit color, 60 Hz refresh rate
Coordinates: 0,0 - 1600,900
Video card: NVIDIA GeForce 8600M GS
Device: \\.\DISPLAY2\Monitor0


---- Just the Acer 20" External Monitor plugged in (and IS selected for viewing): (working fine)

2 monitors, 1 disabled
Current desktop: 1600x900 (0,0 - 1600,900)

Monitor 1 - Generic PnP Monitor (disabled):
Settings: 1280x720, 32-bit color, 60 Hz refresh rate
Coordinates: 1280,0 - 2560,720
Video card: NVIDIA GeForce 8600M GS
Device: \\.\DISPLAY2\Monitor0

Monitor 2 - Acer P205H (primary):
Settings: 1600x900, 32-bit color, 60 Hz refresh rate
Coordinates: 0,0 - 1600,900. Workspace: 0,0 - 1600,872
Video card: NVIDIA GeForce 8600M GS
Device: \\.\DISPLAY1\Monitor0

____________________________________________________


---- Just the Benq W100 Projector plugged in (but IS NOT selected for viewing):

2 monitors, 1 disabled
Current desktop: 1280x800 (0,0 - 1280,800)

Monitor 1 - Generic PnP Monitor (primary):
Settings: 1280x800, 32-bit color, 60 Hz refresh rate
Coordinates: 0,0 - 1280,800. Workspace: 0,0 - 1280,772
Video card: NVIDIA GeForce 8600M GS
Device: \\.\DISPLAY2\Monitor0

Monitor 2 - W100 (disabled):
Settings: 1280x800, 32-bit color, 60 Hz refresh rate
Coordinates: 0,0 - 1280,800
Video card: NVIDIA GeForce 8600M GS
Device: \\.\DISPLAY1\Monitor0


---- Just the Benq W100 Projector plugged in (and IS selected for viewing): (working fine)

2 monitors, 1 disabled
Current desktop: 1280x720 (0,0 - 1280,720)

Monitor 1 - Generic PnP Monitor (disabled):
Settings: 1280x800, 32-bit color, 60 Hz refresh rate
Coordinates: 1280,0 - 2560,800
Video card: NVIDIA GeForce 8600M GS
Device: \\.\DISPLAY2\Monitor0

Monitor 2 - W100 (primary):
Settings: 1280x720, 32-bit color, 60 Hz refresh rate
Coordinates: 0,0 - 1280,720. Workspace: 0,0 - 1280,692
Video card: NVIDIA GeForce 8600M GS
Device: \\.\DISPLAY1\Monitor1

__________________________________________________

---- Both external monitor & projector are plugged in (About info from when only Internal Display is being displayed): (working fine)

3 monitors, 2 disabled
Current desktop: 1280x800 (0,0 - 1280,800)

Monitor 1 - Generic PnP Monitor (primary):
Settings: 1280x800, 32-bit color, 60 Hz refresh rate
Coordinates: 0,0 - 1280,800. Workspace: 0,0 - 1280,772
Video card: NVIDIA GeForce 8600M GS
Device: \\.\DISPLAY1\Monitor0

Monitor 2 - Acer P205H (disabled):
Settings: 1280x800, 32-bit color, 60 Hz refresh rate
Coordinates: 0,0 - 1280,800
Video card: NVIDIA GeForce 8600M GS
Device: \\.\DISPLAY2\Monitor0

Monitor 3 - W100 (disabled):
Settings: 800x600, 32-bit color, default refresh rate
Coordinates: 0,0 - 800,600
Video card: NVIDIA GeForce 8600M GS
Device:


---- Both external monitor & projector plugged in (About info from when when only Acer 20" external monitor is being displayed): (working fine)

3 monitors, 2 disabled
Current desktop: 1600x900 (0,0 - 1600,900)

Monitor 1 - Generic PnP Monitor (disabled):
Settings: 1600x900, 32-bit color, 60 Hz refresh rate
Coordinates: 0,0 - 1600,900
Video card: NVIDIA GeForce 8600M GS
Device: \\.\DISPLAY1\Monitor0

Monitor 2 - Acer P205H (primary):
Settings: 1600x900, 32-bit color, 60 Hz refresh rate
Coordinates: 0,0 - 1600,900. Workspace: 0,0 - 1600,872
Video card: NVIDIA GeForce 8600M GS
Device: \\.\DISPLAY2\Monitor0

Monitor 3 - W100 (disabled):
Settings: 800x600, 32-bit color, default refresh rate
Coordinates: 0,0 - 800,600
Video card: NVIDIA GeForce 8600M GS
Device:


---- Both external monitor & projector plugged in (About info from when only Benq projector is trying to be displayed): (obviously not working fine)

3 monitors, 2 disabled
Current desktop: 1280x720 (0,0 - 1280,720)

Monitor 1 - Generic PnP Monitor (disabled):
Settings: 1280x720, 32-bit color, 60 Hz refresh rate
Coordinates: 0,0 - 1280,720
Video card: NVIDIA GeForce 8600M GS
Device: \\.\DISPLAY1\Monitor0

Monitor 2 - Acer P205H (primary):
Settings: 1280x720, 32-bit color, 60 Hz refresh rate
Coordinates: 0,0 - 1280,720. Workspace: 0,0 - 1280,692
Video card: NVIDIA GeForce 8600M GS
Device: \\.\DISPLAY2\Monitor2

Monitor 3 - W100 (disabled):
Settings: 800x600, 32-bit color, default refresh rate
Coordinates: 0,0 - 800,600
Video card: NVIDIA GeForce 8600M GS
Device:

__________________________________________________

Well, right off the bat, even a dummy like me can see that there's no "Device:" for the projector when both the external monitor and projector are plugged in. This can't be good...
Christian Studer   2011-06-28 11:47
Thanks for the information. An empty device only means that you can't enable that monitor without disabling one of the others, due to the video card only supporting two monitors at a time.

The problem with the display profiles are the monitor numbers, depending on whether all monitors are plugged in or not the Benq (W100) is either #2 or #3, which will cause the issue you're seeing.

I have uploaded a new version of the ToggleSingleMon script, ToggleSingleMon2, which supports switching between more than 2 monitors, and applies specific display settings stored in the script itself. I have sent you a customized version of the script configured for your system via e-mail.

Christian Studer - www.realtimesoft.com
Andy   2011-06-28 20:44
Thanks for your help and the customized script. I tried it out and it works fine when either the external monitor is plugged in or the projector is plugged in (one at a time). When both are plugged in, the hotkey script only switches between the external 20" monitor and the BenQ projector. The laptop's internal monitor is being left out of the switching sequence. I rebooted the laptop and still same same.

Andy
Christian Studer   2011-07-01 06:49
The problem was due to monitor names not always being available, using monitor serial numbers instead with ToggleSingleMon2 fixed the problem.

Christian Studer - www.realtimesoft.com
Forums -> UltraMon™ -> How to switch to next display device with hotkeys? (just like with nView)

Post Reply