Random change in screen resolution (1 Viewer)

cladinshadows85

Portal Pro
February 3, 2013
52
25
36
Home Country
Australia Australia
EDIT by Sebastiii :
***************************************
Added Installer with possible fix :

INSTALLER


***************************************

Hi

I have done a clean install of Windows and Mediaportal 1.7, and now having strange screen resolution changes which is becoming annoying.

I am using my Sony Bravia as the monitor at 1080p, Windows 7 screen resolution is at 1920x1080 60hz.

When I restart my HTPC, mediaportal is running at Windows screen resolution of 1080. At some point, the screen will then go to1024x768. The screen becomes stretched to fit the TV at 1080, and leaved all video playback with TV with a squished image with black bars up the top and bottom at 16:9 aspect ratio (which should naturally fill out the screen). I can change the zoom from normal to stretched and the playback is how it should be fitting at the screen but with a loss of clarity in the image. Everytime I change channel or play a new video file in TV Series or Moving Pictures I have change the aspect ratio.
I haven't been watching the TV whilst this change in resolution has occurred, I normally leave the HTPC running 24/7 and just turn off the TV. And 90% of the time, when I go back to watch TV the screen has changed resolution

I have taken a few screen shots of both, Screen shot files are of different resolutions from the changes, however, Windows 7 reports it is running at 1920 x 1080.

I have updated Intel HD graphics drivers to the latest with no change. In the mediaportal.log file I have noted the following that the HD Graphics becomes removed and then the following messge

Code:
[2014-04-27 01:00:01,664] [Log  ] [MPMain  ] [DEBUG] - Main: WM_DEVICECHANGE (Event: DBT_DEVICEREMOVECOMPLETE)
[2014-04-27 01:00:01,665] [Log  ] [MPMain  ] [DEBUG] - Main: Device type is DBT_DEVTYP_DEVICEINTERFACE - Name: Intel(R) HD Graphics
[2014-04-27 01:00:01,677] [Log  ] [MPMain  ] [DEBUG] - Main: WM_DEVICECHANGE (Event: DBT_DEVICEARRIVAL)
[2014-04-27 01:00:01,677] [Log  ] [MPMain  ] [DEBUG] - Main: Device type is DBT_DEVTYP_DEVICEINTERFACE - Name: Intel(R) HD Graphics
[2014-04-27 01:00:01,684] [Log  ] [MPMain  ] [DEBUG] - D3D: OnPaint()
[2014-04-27 01:02:26,856] [Log  ] [MPMain  ] [DEBUG] - D3D: OnPaint()
[2014-04-27 01:02:26,917] [Log  ] [MPMain  ] [DEBUG] - Main: WM_DEVICECHANGE (Event: DBT_DEVICEREMOVECOMPLETE)
[2014-04-27 01:02:26,917] [Log  ] [MPMain  ] [DEBUG] - Main: Device type is DBT_DEVTYP_DEVICEINTERFACE - Name: Intel(R) HD Graphics
[2014-04-27 01:02:27,033] [Log  ] [MPMain  ] [DEBUG] - Main: WM_DEVICECHANGE (Event: DBT_DEVICEARRIVAL)
[2014-04-27 01:02:27,033] [Log  ] [MPMain  ] [DEBUG] - Main: Device type is DBT_DEVTYP_DEVICEINTERFACE - Name: Intel(R) HD Graphics
[2014-04-27 02:05:20,893] [Log  ] [MPMain  ] [DEBUG] - Main: WM_DEVICECHANGE (Event: DBT_DEVNODES_CHANGED)
[2014-04-27 02:05:20,894] [Log  ] [MPMain  ] [DEBUG] - Main: WM_DEVICECHANGE (Event: DBT_DEVNODES_CHANGED)
[2014-04-27 02:05:20,894] [Log  ] [MPMain  ] [DEBUG] - Main: WM_DEVICECHANGE (Event: DBT_DEVNODES_CHANGED)
[2014-04-27 03:10:21,117] [Log  ] [MPMain  ] [DEBUG] - Main: WM_DEVICECHANGE (Event: DBT_DEVNODES_CHANGED)
[2014-04-27 03:10:21,119] [Log  ] [MPMain  ] [DEBUG] - Main: WM_DEVICECHANGE (Event: DBT_DEVNODES_CHANGED)
[2014-04-27 03:10:23,544] [Log  ] [MPMain  ] [DEBUG] - Main: WM_DEVICECHANGE (Event: DBT_DEVNODES_CHANGED)
[2014-04-27 09:29:29,900] [Log  ] [MPMain  ] [DEBUG] - Main: WM_DEVICECHANGE (Event: DBT_DEVICEREMOVECOMPLETE)
[2014-04-27 09:29:29,900] [Log  ] [MPMain  ] [DEBUG] - Main: Device type is DBT_DEVTYP_DEVICEINTERFACE - Name: Intel(R) Display Audio
[2014-04-27 09:29:30,002] [Log  ] [MPMain  ] [DEBUG] - Main: WM_DEVICECHANGE (Event: DBT_DEVICEREMOVECOMPLETE)
[2014-04-27 09:29:30,002] [Log  ] [MPMain  ] [DEBUG] - Main: Device type is DBT_DEVTYP_DEVICEINTERFACE - Name: Intel(R) Display Audio
[2014-04-27 09:29:30,007] [Log  ] [MPMain  ] [INFO ] - Main: Audio Renderer Intel(R) Display Audio removed
[2014-04-27 09:29:30,573] [Log  ] [MPMain  ] [DEBUG] - Main: WM_DISPLAYCHANGE
[2014-04-27 09:29:30,576] [Log  ] [MPMain  ] [INFO ] - Main: Screen MP OnDisplayChange is displayed on changed from \\.\DISPLAY1 to \\.\DISPLAY1
[2014-04-27 09:29:30,576] [Log  ] [MPMain  ] [INFO ] - Main: OnDisplayChange Bounds of display changed from 1920x1080 to 1024x768

Image at 1024x768 - Normal Zoom
On TV the image is scaled to 1080p with image becoming stretched sideways
768 - Normal.png

Image at 1024x768 - Strectch (Zoom Mode)
Image appears to be at 16:9 aspect ratio with TV scaling image to 1080p. Loss of clarity. (Need to take photo of TV to show this)
768 - Streched.png



Image at 1024x768, star rating are squished together
768 - ratings stars squished together.png


How the video playback is on first restart, 1920x1080
1080 - how it should be.png



Attached are the log files, if anyone has a solution please let me know
 
Last edited by a moderator:

Sebastiii

Development Group
  • Team MediaPortal
  • November 12, 2007
    16,574
    10,393
    France
    Home Country
    France France
    Hi,

    Normally the video change happen when Video device (hdmi is disconnect or when tv is off -> 1024) and should be back to 1920 when the TV goes ON (when Windows device arrival so when it detect the TV).

    1024 is native windows resolution when no device is connected and MP switch to that resolution and back to 1920 when TV is back.
    But you tell us that it happe, while watching Video and TV always ON ?

    The purpose of the detection change is too be able to MP restore his correct element to the resolution changed by windows.

    For example, if you start mp @ 1920 and you manually change resolution to 1280x720, MP will auto resize to 1280 and correct his element skin and Co.

    So in your case, it seems that windows switch to 1024 (so here the device remove and arrival happen late).

    Will analyse log but this is strange.
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,574
    10,393
    France
    Home Country
    France France
    From the log :

    On wakeup :
    Here it switch to 1024 video device removed :
    Code:
    [2014-04-27 09:29:30,573] [Log    ] [MPMain   ] [DEBUG] - Main: WM_DISPLAYCHANGE
    [2014-04-27 09:29:30,576] [Log    ] [MPMain   ] [INFO ] - Main: Screen MP OnDisplayChange is displayed on changed from \\.\DISPLAY1 to \\.\DISPLAY1
    [2014-04-27 09:29:30,576] [Log    ] [MPMain   ] [INFO ] - Main: OnDisplayChange Bounds of display changed from 1920x1080 to 1024x768
    [2014-04-27 09:29:30,576] [Log    ] [MPMain   ] [DEBUG] - Main: Screen MP OnDisplayChange current screen detected                                \\.\DISPLAY1
    [2014-04-27 09:29:30,577] [Log    ] [MPMain   ] [DEBUG] - Main: Screen MP OnDisplayChange current screen                                         \\.\DISPLAY1
    [2014-04-27 09:29:30,577] [Log    ] [MPMain   ] [DEBUG] - Main: Screen MP OnDisplayChange start screen                                           \\.\DISPLAY1
    [2014-04-27 09:29:30,577] [Log    ] [MPMain   ] [DEBUG] - Main: Screen MP OnDisplayChange change current screen \\.\DISPLAY1 with current detected screen \\.\DISPLAY1
    [2014-04-27 09:29:30,577] [Log    ] [MPMain   ] [DEBUG] - Main: Screen MP OnDisplayChange set current screen bounds {X=0,Y=0,Width=1024,Height=768} to Bounds {X=0,Y=0,Width=1920,Height=1080}
    [2014-04-27 09:29:30,578] [Log    ] [MPMain   ] [DEBUG] - Main: WM_GETMINMAXINFO Start (MaxSize: 1024x768 - MaxPostion: 0,0 - MinTrackSize: 2x2 - MaxTrackSize: 1036x780)
    [2014-04-27 09:29:30,646] [Log    ] [MPMain   ] [DEBUG] - Main: WM_GETMINMAXINFO End (MaxSize: 1920x1080 - MaxPostion: 0,0 - MinTrackSize: 1024x768 - MaxTrackSize: 1024x768)
    [2014-04-27 09:29:30,647] [Log    ] [MPMain   ] [DEBUG] - Main: WM_SIZE (SIZE_RESTORED: 1024x768)
    [2014-04-27 09:29:30,647] [Log    ] [MPMain   ] [DEBUG] - Main: Setting full screen bonds to: 1024x768 @ 0,0
    [2014-04-27 09:29:30,647] [Log    ] [MPMain   ] [DEBUG] - Main: WM_GETMINMAXINFO Start (MaxSize: 1024x768 - MaxPostion: 0,0 - MinTrackSize: 2x2 - MaxTrackSize: 1036x780)
    [2014-04-27 09:29:30,648] [Log    ] [MPMain   ] [DEBUG] - Main: WM_GETMINMAXINFO End (MaxSize: 1920x1080 - MaxPostion: 0,0 - MinTrackSize: 1024x768 - MaxTrackSize: 1024x768)
    [2014-04-27 09:29:30,648] [Log    ] [MPMain   ] [DEBUG] - Main: Screen MP OnDisplayChange recreate swap chain

    Seems here :
    Code:
    [2014-04-27 09:29:31,860] [Log    ] [MPMain   ] [DEBUG] - Main: Device type is DBT_DEVTYP_DEVICEINTERFACE - Name: Intel(R) Display Audio
    [2014-04-27 09:29:31,860] [Log    ] [MPMain   ] [DEBUG] - Main: WM_DISPLAYCHANGE
    [2014-04-27 09:29:31,861] [Log    ] [MPMain   ] [INFO ] - Main: Screen MP OnDisplayChange is displayed on changed from \\.\DISPLAY1 to \\.\DISPLAY1
    [2014-04-27 09:29:31,861] [Log    ] [MPMain   ] [INFO ] - Main: OnDisplayChange Bounds of display changed from 1024x768 to 1920x1080
    [2014-04-27 09:29:31,861] [Log    ] [MPMain   ] [DEBUG] - Main: Screen MP OnDisplayChange current screen detected                                \\.\DISPLAY1
    [2014-04-27 09:29:31,861] [Log    ] [MPMain   ] [DEBUG] - Main: Screen MP OnDisplayChange current screen                                         \\.\DISPLAY1
    [2014-04-27 09:29:31,861] [Log    ] [MPMain   ] [DEBUG] - Main: Screen MP OnDisplayChange start screen                                           \\.\DISPLAY1
    [2014-04-27 09:29:31,862] [Log    ] [MPMain   ] [DEBUG] - Main: Screen MP OnDisplayChange change current screen \\.\DISPLAY1 with current detected screen \\.\DISPLAY1
    [2014-04-27 09:29:31,862] [Log    ] [MPMain   ] [DEBUG] - Main: Screen MP OnDisplayChange set current screen bounds {X=0,Y=0,Width=1920,Height=1080} to Bounds {X=0,Y=0,Width=1024,Height=768}
    [2014-04-27 09:29:31,864] [Log    ] [MPMain   ] [DEBUG] - Main: WM_GETMINMAXINFO Start (MaxSize: 1920x1080 - MaxPostion: 0,0 - MinTrackSize: 2x2 - MaxTrackSize: 1932x1092)
    [2014-04-27 09:29:31,867] [Log    ] [MPMain   ] [DEBUG] - Main: WM_GETMINMAXINFO End (MaxSize: 1920x1080 - MaxPostion: 0,0 - MinTrackSize: 1920x1080 - MaxTrackSize: 1920x1080)
    [2014-04-27 09:29:31,873] [Log    ] [MPMain   ] [DEBUG] - Main: WM_SIZE (SIZE_RESTORED: 1920x1080)
    [2014-04-27 09:29:31,873] [Log    ] [MPMain   ] [DEBUG] - Main: Setting full screen bonds to: 1920x1080 @ 0,0
    [2014-04-27 09:29:31,874] [Log    ] [MPMain   ] [DEBUG] - Main: WM_GETMINMAXINFO Start (MaxSize: 1920x1080 - MaxPostion: 0,0 - MinTrackSize: 2x2 - MaxTrackSize: 1932x1092)
    [2014-04-27 09:29:31,875] [Log    ] [MPMain   ] [DEBUG] - Main: WM_GETMINMAXINFO End (MaxSize: 1920x1080 - MaxPostion: 0,0 - MinTrackSize: 1920x1080 - MaxTrackSize: 1920x1080)
    [2014-04-27 09:29:31,876] [Log    ] [MPMain   ] [DEBUG] - Main: Screen MP OnDisplayChange recreate swap chain
    [2014-04-27 09:29:31,878] [Log    ] [MPMain   ] [DEBUG] - Main: WM_GETMINMAXINFO Start (MaxSize: 1920x1080 - MaxPostion: 0,0 - MinTrackSize: 2x2 - MaxTrackSize: 1932x1092)
    [2014-04-27 09:29:31,879] [Log    ] [MPMain   ] [DEBUG] - Main: Screen MP OnGetMinMaxInfo (changeScreen) change current screen \\.\DISPLAY1 with current detected screen \\.\DISPLAY1
    [2014-04-27 09:29:31,879] [Log    ] [MPMain   ] [DEBUG] - Main: WM_GETMINMAXINFO End (MaxSize: 1920x1080 - MaxPostion: 0,0 - MinTrackSize: 1920x1080 - MaxTrackSize: 1920x1080)
    [2014-04-27 09:29:31,881] [Log    ] [MPMain   ] [DEBUG] - Main: WM_GETMINMAXINFO Start (MaxSize: 1920x1080 - MaxPostion: 0,0 - MinTrackSize: 2x2 - MaxTrackSize: 1932x1092)
    [2014-04-27 09:29:31,882] [Log    ] [MPMain   ] [DEBUG] - Main: WM_GETMINMAXINFO End (MaxSize: 1920x1080 - MaxPostion: 0,0 - MinTrackSize: 1920x1080 - MaxTrackSize: 1920x1080)
    [2014-04-27 09:29:31,882] [Log    ] [MPMain   ] [DEBUG] - D3D: OnPaint()

    TV is ON and switch goes to 1920.

    It looks ok so i don't understand.
     

    cladinshadows85

    Portal Pro
    February 3, 2013
    52
    25
    36
    Home Country
    Australia Australia
    Hi

    So when I turn the TV back on, it doesn't switch to 1920, but Mediaportal remains in 1024. When I minimize MP, Windows resolution is at 1920, when I return to MP it stays at 1024 (which I can verify by resolution of screenshots).

    I'll post a new log with photos with timestamps taken of actual TV so you can see what is happening to the display when I turn it on
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,574
    10,393
    France
    Home Country
    France France
    Ok :)

    MP detect the resolution change from log but did recreate swap (even if line is there) there is surely a bug somewhere lol.
    Ok for log with timestamp it will be usefull :)
     

    cladinshadows85

    Portal Pro
    February 3, 2013
    52
    25
    36
    Home Country
    Australia Australia
    Alright, I have some log files and some photos of my tv with the weird resolution.

    Last night turned off the TV screen and turned back on several times with varying time frames from 15 minutes to 2 hours and the screen remained at the 1920x1080. I turned it on this morning and it was at 1024x768 again.

    The first log file is from yesterday till this morning with the resolution change and some photos of the actual tv showing the screen

    1024 (1).JPG 1024 (2).JPG

    Second Log is from rebooting Windows after this with proper resolutions

    1920.JPG As you can see by the pics of the tv there is a clear change in the resolutions from the restart and display of videos

    Hope this helps
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,574
    10,393
    France
    Home Country
    France France
    Can you try something when it happen ?
    Manually change your resolution to another resolution (can be 1024x768 or other one) and back to 1920x1080.
    Does MP react correctly after that ?
    Thanks :)
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,574
    10,393
    France
    Home Country
    France France
    Also something else you could try:
    Disable ViewModeSwitcher to see what happen.
    From analysing first log (7H00) : It seems MP change correctly to 1920x1080.

    You can try to compare how MP is display (not the video but MP in general) @ 1024x768 versus 1920x1080 with the previous test :)

    If when it failed (with TV video) MP looks like the 1920x1080 resolution then it's maybe ViewModeSwitcher that need to be reinit or something.
     

    Luca Brasi

    MP Donator
  • Premium Supporter
  • November 14, 2007
    1,026
    119
    Home Country
    Germany Germany
    I have the same problem. Disabling ViewModeSwitcher doesn't change anything.
     

    Users who are viewing this thread

    Similar threads

    I have just tested the dll, and it works fine on my thpc too :)(y) Thanks
    I have just tested the dll, and it works fine on my thpc too :)(y) Thanks
    Since the update to MediaPortal 1.27 it takes about three seconds to jump to the next or previous track. Also adding files and...
    Replies
    11
    Views
    2K
    If it keeps annoying me enough I'll have to help you with that :whistle: That's weird, because video locks up first with audio still playing for a few more seconds before MediaPortal restarts, but this will give me a few more avenues to test for. The main difference is that when I was on 1.19-1.21 without this issue that it was HTPC...
    If it keeps annoying me enough I'll have to help you with that :whistle: That's weird, because video locks up first with audio...
    I've been dealing with weird crashes. The display would go into a checkerboard, or mainly a giant purple banner across the screen...
    Replies
    8
    Views
    828
    I notice that there is an MP start-up setting that may affect this, namely this one: Whichever value that setting currently has, it might be worthwhile trying the other value, just to see if it makes a difference. -- from CyberSimian in the UK
    I notice that there is an MP start-up setting that may affect this, namely this one: Whichever value that setting currently...
    Hi using v1.21.000.0 When mediaportal resumes the screen resolution is set to a low resolution, if I exit mediaportal the desktop...
    Replies
    3
    Views
    685
    Sorry for the late response. In my experience, the EPG grabbing of a single transponder takes 2 to 3 minutes. Afterwards it takes 1 to 2 minutes to write the data to disk. To speed up the EPG stuff (not only writing but also reading the EPG guide in MediaPortal), I changed the program table (and only that table) from InnoDB to...
    Sorry for the late response. In my experience, the EPG grabbing of a single transponder takes 2 to 3 minutes. Afterwards it takes...
    I get a few "Continuity error..." after the EPG scan finished: [2021-01-30 18:56:10,278] [4c45530] [18c8] - mhw reset [2021-01-30...
    Replies
    2
    Views
    1K
    this seems to be related to the Ares skin. It can be somewhat fixed by replacing the mytvrecordedtv.xml with the one found in the DefaultWide skin. It really messes up the overlays though.
    this seems to be related to the Ares skin. It can be somewhat fixed by replacing the mytvrecordedtv.xml with the one found in the...
    For the past year or so I have not been able to get into my TV recordings menu. MediaPortal wont crash, but it just hangs and...
    Replies
    1
    Views
    709
    Top Bottom