[WINDOWS] Dual Monitor support (Multiple Displays/Monitors)

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
CapnBry Offline
Fan
Posts: 406
Joined: Oct 2004
Reputation: 0
Location: Tampa, FL USA
Post: #21
Dammit Wiso, did you just trick me into fixing something? You clever bastard!
find quote
WiSo Offline
Team-XBMC Developer
Posts: 2,506
Joined: Oct 2003
Reputation: 0
Location: Germany
Post: #22
strike Laugh
You give me a finger - I take the whole hand Big Grin

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
rausch101 Offline
Fan
Posts: 580
Joined: Sep 2006
Reputation: 1
Location: Washington D.C.
Post: #23
I was struggling trying to get XBMC to launch on a second monitor through a remote control (Harmony) input over the weekend for someone that hated UltraMon and didn't want to use it (although I have nothing against it). For anyone who is interested, here's what I did:

I used EventGhost to take the IR input to absolute move the mouse to the top left of the primary screen (0,0), since absolute mouse movement can only take place on the primary display. I then relative moved the mouse to the XBMC shortcut icon that I had placed on the second screen and simulated a double-click. Since the shortcut to XBMC is located on the second monitor, XBMC is then launched in the second monitor (either fullscreen or windowed). It's about as crude as it gets, but it works well as long as the icon doesn't move.
(This post was last modified: 2009-07-28 00:24 by rausch101.)
find quote
AlexW Offline
Junior Member
Posts: 6
Joined: Jun 2009
Reputation: 0
Post: #24
Any news yet? I'm looking forward to be able to start xbmc on my secondary monitor in 'real fullscreen'. When I use UltraMon xbmc has black bars (about 20pixel thick) at the top and left side. Moving the screen in Video Calibration doesn't work... the black bars are still there.
find quote
CapnBry Offline
Fan
Posts: 406
Joined: Oct 2004
Reputation: 0
Location: Tampa, FL USA
Post: #25
Wiso, I've posted a new patch to the ticket but I'd like to point out a few things:

1) Every time someone touches this code, it gets uglier.

2) Adding this code may change some win32 users' resolution the next time they start up. This is because XBMC stores only the index of the selected resolution and this may reorder some items in the list

3) The amount of resolutions offered in Settings -> Appearance -> Screen is now in the realm of "staggering". My 2 monitor system has 143 resolutions. That's just awful.

4) Resolutions which are not on the default monitor are listed is (DISPLAY x). Note that DISPLAY 0 is not necessarily the primary display.

5) For backward compatibility, when changing resolution to "Primary Display, Resolution XxY", XBMC resizes the window on the current display instead of shifting it to the primary. If shifting back to Primary makes more sense, change CSurface::ResizeSurface to not do GetWindowRect(hwnd, &rBounds), just always use the code above it.

6) Don't think I'm going to get involved in this discussion again, I'm not working on the multimonitor branch!

EDIT: for BOLDing

For troubleshooting and bug reporting please make sure you read this first.
(This post was last modified: 2009-08-05 16:45 by CapnBry.)
find quote
WiSo Offline
Team-XBMC Developer
Posts: 2,506
Joined: Oct 2003
Reputation: 0
Location: Germany
Post: #26
1) I know and therefore I don't touch it anymore Wink
2) Ok, I would be fine with it. Once I've started to look into getting rid of the index numbers and work with resolutions strings but it involved too much changes which I don't wanna do.
3) Yeah it was already awful. Maybe we can rearrange stuff to get on option box for the resolutions and one for the refresh rate? as said you're already deeper into this topic than I'm Smile
6) Thats a pitty. Dunno if the multi monitor branch is still worked on. But I understand the decision.

Thanks for the help anyway. "Unfortunately" I've started a new job in a new town this week and have only partly time for doing XBMC things. Not sure if I can spent time on it soon, sorry :/

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,564
Joined: Oct 2003
Reputation: 138
Post: #27
We chatted about this at devcon. The system that I think we'd like to see is:

1. n+1 resolution options available, where n is the number of screens, and the +1 is for windowed.
2. Display at the native resolution of the screen.
3. Windowed mode is resizable in the normal manner.
4. If anyone wants anything else, make a custom setting that they configure themselves in advancedsettings.xml.

@CapnBry: Is the above plausible (excluding all the current cruft in the code ofcourse)?

Cheers,
Jonathan

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
davilla Offline
Team-XBMC Developer
Posts: 10,505
Joined: Feb 2008
Reputation: 58
Post: #28
I nuked multidisplay because it was so far out of date. Maybe I should branch again so we can attempt this again.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
CapnBry Offline
Fan
Posts: 406
Joined: Oct 2004
Reputation: 0
Location: Tampa, FL USA
Post: #29
jmarshall Wrote:@CapnBry: Is the above plausible (excluding all the current cruft in the code ofcourse)?
You know, that's actually incredibly simplified but I think it covers what most people want and for the rest we'll have to figure out what goes into advancedsettings.xml. Plus it gets rid of overscan settings on windowed resolutions which drove me batty.

I have 2 "what about?"s Actually, after I wrote them out I'm just going to keep my mouth shut because they'd fit into the advancedsettings concept and I don't want to turn this into a discussion thread.

The main issue would be synchronizing all platforms simultaneously to this new system, especially XBOX which would ... probably still use the old system?

EDIT: But you asked about the feasibility of implementing it as you described and I went off on a tangent. On Win32, the implementation is trivial once the cross-platform bits are complete.

For troubleshooting and bug reporting please make sure you read this first.
(This post was last modified: 2009-08-06 14:28 by CapnBry.)
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,564
Joined: Oct 2003
Reputation: 138
Post: #30
Yup - we love the simple, and I really think (especially with most TV devices actually having a fixed native resolution) that it is everything most people need.

XBox is kinda a different beast, but as you suggest, it's irrelevant for this discussion - it's code would stay as-is.

IMO start with a blank slate, don't reuse the existing resolution stuff at all, and reimplement it from scratch Smile

Cheers,
Jonathan

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote