OS SIERRA 2 displays problem
#16
provide a clean Debug Log
first_time_user (wiki) | free content (wiki) | forum rules (wiki) | PVR (wiki) | Debug Log (wiki)

IMPORTANT:
The official Kodi version does not contain any content what so ever. This means that you should provide your own content from a local or remote storage location, DVD, Blu-Ray or any other media carrier that you own. Additionally Kodi allows you to install third-party plugins that may provide access to content that is freely available on the official content provider website. The watching or listening of illegal or pirated content which would otherwise need to be paid for is not endorsed or approved by Team Kodi.
Reply
#17
'debug log':
is that not the log file i already posted above? please clarify if it's something different
Reply
#18
here it is again:

https://paste.ubuntu.com/25096462
Reply
#19
*bumpity bump
Reply
#20
Hi guys,

I have the very same issue for couple months. Unfortunately I haven't used my second screen/projector for a while and in the meantime I've upgraded MacOS to High Sierra and also Kodi to 17.6, so I can't tell if there is any dependency Sad

any advice will be highly appreciated  

pRst
Reply
#21
This problem has also troubled me for a few months, since I installed kodi-18.0-Leia_rc5.2-x86_64.dmg.
I tried upgrading but had the same problem with kodi-18.1-Leia-x86_64.dmg so I reverted back to kodi-18.0-Leia_rc5.2-x86_64.dmg, where I found the following fix.

Initially I encountered the problem with MacOS High Sierra installed, and it persisted after upgraded to Mojave.

I have since re-installed kodi-18.1-Leia-x86_64.dmg and verified that this fix also works with kodi-18.1-Leia-x86_64.dmg

Here are the details - I hope it helps someone, or that developers will take note and perhaps advise me if there is a better way to handle the problem than I have done.

-- PROBLEM DESCRIPTION

Kodi usually opens on the default display (iMac) when I have it configured to use SONY TV display.

This happens after quitting Kodi when opened from the task bar / Finder, either manually or by RemoteBuddy.

However, if I launch Kodi from the terminal, it opens correctly on SONY TV display.

Also, if I leave Kodi app running and log out or restart, Kodi also opens on correct SONY TV display.


-- MY SYSTEM (from kodi.log)

Running MacOS Mojave 10.14.3

With kodi-18.1-Leia-x86_64.dmg installed:

2019-03-12 14:58:37.100 T:4761925056  NOTICE: Starting Kodi (18.1 Git:20190217-8cfdc895f3). Platform: OS X x86 64-bit
2019-03-12 14:58:37.100 T:4761925056  NOTICE: Using Release Kodi x64 build
2019-03-12 14:58:37.100 T:4761925056  NOTICE: Kodi compiled 2019-02-17 by Clang 9.0.0 (clang-900.0.37) for OS X x86 64-bit version 10.9.0 (1090)
2019-03-12 14:58:37.101 T:4761925056  NOTICE: Running on Apple Inc. iMac14,2 with OS X 10.14.3, kernel: Darwin x86 64-bit version 18.2.0
2019-03-12 14:58:37.101 T:4761925056  NOTICE: FFmpeg version/source: 4.0.3-Kodi
2019-03-12 14:58:37.101 T:4761925056  NOTICE: Host CPU: Intel® Core™ i7-4771 CPU @ 3.50GHz, 8 cores available

With kodi-18.0-Leia_rc5.2-x86_64.dmg installed:

14:28:25.068 T:4687054272  NOTICE: Starting Kodi (18.0-RC5 Git:20190112-3cbd6c1eec). Platform: OS X x86 64-bit
14:28:25.068 T:4687054272  NOTICE: Using Release Kodi x64 build
14:28:25.068 T:4687054272  NOTICE: Kodi compiled 2019-01-12 by Clang 9.0.0 (clang-900.0.37) for OS X x86 64-bit version 10.9.0 (1090)
14:28:25.068 T:4687054272  NOTICE: Running on Apple Inc. iMac14,2 with OS X 10.14.3, kernel: Darwin x86 64-bit version 18.2.0
14:28:25.068 T:4687054272  NOTICE: FFmpeg version/source: 4.0.3-Kodi
14:28:25.068 T:4687054272  NOTICE: Host CPU: Intel® Core™ i7-4771 CPU @ 3.50GHz, 8 cores available

-- MY RESEARCH

I tried setting environmental variables so that perhaps I could edit one of Kodi .plist files to force it to always use SONY TV display.

However, Apple seems to have changed the method of setting environmental variables over time.
The latest info I have on setting environmental variables is:

Edit /etc/launchd.conf

I tried the following method but it didn't work, even after restart:

https://www.dowdandassociates.com/blog/c...chd-plist/
>HowTo: Set an Environment Variable in Mac OS X - launchd.plist

I also failed to find any useful, current method in a general search:

https://duckduckgo.com/?q=Kodi+set+envir...fnt&ia=web

So, next, I enabled debug logging in Kodi and restarted to try and find out what the running Kodi app environment looked like: display names that might be useful in forcing it to use SONY TV.

Here is part of what I found:

>13:17:47.223 T:123145569652736   DEBUG: Thread ActiveAE start, auto delete: false
13:17:47.223 T:123145570189312   DEBUG: Thread AESink start, auto delete: false
13:17:47.247 T:123145569652736  NOTICE: Found 1 Lists of Devices
13:17:47.247 T:123145569652736  NOTICE: Enumerated DARWINOSX devices:
13:17:47.247 T:123145569652736  NOTICE:     Device 1
13:17:47.247 T:123145569652736  NOTICE:         m_deviceName      : default
:13:17:47.247 T:123145569652736  NOTICE:         m_displayName     : Default
13:17:47.247 T:123145569652736  NOTICE:         m_displayNameExtra: HDMI
13:17:47.247 T:123145569652736  NOTICE:         m_deviceType      : AE_DEVTYPE_HDMI
13:17:47.247 T:123145569652736  NOTICE:         m_channels        : FL, FR
13:17:47.247 T:123145569652736  NOTICE:         m_sampleRates     : 48000,44100,32000
13:17:47.247 T:123145569652736  NOTICE:         m_dataFormats     : AE_FMT_S24LE3,AE_FMT_S24NE3,AE_FMT_S16LE,AE_FMT_S16NE
13:17:47.247 T:123145569652736  NOTICE:         m_streamTypes     : STREAM_TYPE_AC3,STREAM_TYPE_DTS_512,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTSHD_CORE
13:17:47.247 T:123145569652736  NOTICE:     Device 2
13:17:47.248 T:123145569652736  NOTICE:         m_deviceName      : Built-in Output-50Confusedtream0
13:17:47.248 T:123145569652736  NOTICE:         m_displayName     : Built-in Output
13:17:47.248 T:123145569652736  NOTICE:         m_displayNameExtra: Internal Speakers
13:17:47.248 T:123145569652736  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
13:17:47.248 T:123145569652736  NOTICE:         m_channels        : FL, FR
13:17:47.248 T:123145569652736  NOTICE:         m_sampleRates     : 96000,88200,48000,44100
13:17:47.248 T:123145569652736  NOTICE:         m_dataFormats     : AE_FMT_S24LE3,AE_FMT_S24NE3,AE_FMT_S16LE,AE_FMT_S16NE,AE_FMT_FLOAT
13:17:47.248 T:123145569652736  NOTICE:         m_streamTypes     : No passthrough capabilities
13:17:47.248 T:123145569652736  NOTICE:     Device 3
13:17:47.248 T:123145569652736  NOTICE:         m_deviceName      : HDMI-65Confusedtream0
13:17:47.248 T:123145569652736  NOTICE:         m_displayName     : HDMI
13:17:47.248 T:123145569652736  NOTICE:         m_displayNameExtra: SONY TV
13:17:47.248 T:123145569652736  NOTICE:         m_deviceType      : AE_DEVTYPE_HDMI
13:17:47.248 T:123145569652736  NOTICE:         m_channels        : FL, FR
13:17:47.248 T:123145569652736  NOTICE:         m_sampleRates     : 48000,44100,32000
13:17:47.248 T:123145569652736  NOTICE:         m_dataFormats     : AE_FMT_S24LE3,AE_FMT_S24NE3,AE_FMT_S16LE,AE_FMT_S16NE
13:17:47.248 T:123145569652736  NOTICE:         m_streamTypes     : STREAM_TYPE_AC3,STREAM_TYPE_DTS_512,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTSHD_CORE

Notice that SONY TV appears as "Device 3":
    m_displayName     : HDMI
    m_displayNameExtra: SONY TV
    
Next I can look into some Kodi .plist files to see where the current display name appears:

Is it 'Device 1', m_deviceName, m_displayName or m_displayNameExtra?

-- Existing Configuration

I found the following excerpt in file:

     /Library/Kodi/userdata/guisettings.xml

<settings>
     
   <videoscreen>
        <blankdisplays default="true">false</blankdisplays>
        <fakefullscreen default="true">true</fakefullscreen>
        <limitedrange default="true">false</limitedrange>
        <monitor default="true">Default</monitor>
        <preferedstereoscopicmode>2</preferedstereoscopicmode>
        <resolution>30</resolution>
        <screen>1</screen>
        <screenmode>10072000480060.00000pstd</screenmode>
        <stereoscopicmode default="true">0</stereoscopicmode>
        <vsync default="true">2</vsync>
    </videoscreen>

</settings>

Also discovered that the related user config file:

     /Users/greg/Library/Application Support/Kodi/userdata/guisettings.xml
     
Contains the following:

    <setting id="videoscreen.fakefullscreen" default="true">true</setting>
    <setting id="videoscreen.monitor">SONY TV</setting>


-- SOLUTION: I modified Kodi configuration file, /Library/Kodi/userdata/guisettings.xml

Though it is not recommended to edit the default Kodi system config, I did.

I changed the default monitor from original "Default", which is using what is called m_displayName in the kodi.log file.

The kodi.log file refers to my SONY TV via m_displayName "HDMI"

I edited the user config file replacing "Default" with "HDMI":

     /Library/Kodi/userdata/guisettings.xml
    
<settings>
     
   <videoscreen>
        <blankdisplays default="true">false</blankdisplays>
        <fakefullscreen default="true">true</fakefullscreen>
        <limitedrange default="true">false</limitedrange>
        <monitor default="true">HDMI</monitor>
        <preferedstereoscopicmode>2</preferedstereoscopicmode>
        <resolution>30</resolution>
        <screen>1</screen>
        <screenmode>10072000480060.00000pstd</screenmode>
        <stereoscopicmode default="true">0</stereoscopicmode>
        <vsync default="true">2</vsync>
    </videoscreen>

</settings>


PROBLEM SOLVED!
Reply
#22
(2019-03-13, 00:13)gkeraunen Wrote: PROBLEM SOLVED!
 Looks like I spoke too soon.
It tested fine - until after I turned off the TV and turned it on again, launched Kodi and once again displays on iMac "Default" monitor.
Even after quitting and trying again - same problem. I don't know why it worked correctly after my 'fix'.
Sorry.
Reply
#23
In my case, this problem has three parts

-- PART 1. Kodi will not load its startup window on my external SONY TV display UNLESS:

Kodi System Settings Resolution config MATCHES the iMac Preferences Display Resolution config for this display.
    
Some of problems I've been were caused by:

    A) Kodi System Settings SONY TV Display Resolution = 1280 x 720p
    B) iMac Preferences SONY TV Display Resolution = "Default for Display"

The solution was to edit iMac Preferences:
    iMac Preferences > Display >
        SONY TV Resolution =  "Scaled" 720p

-- PART 2. If my external display (SONY TV) gets turned off or the TV input is changed, while Kodi is running [which often happens if another family member comes along], then:

    A) Kodi window automatically moves to the primary iMac display
    B) Kodi display setting is changed from Full Screen to Windowed mode
    C) Kodi display setting is still set to SONY TV, even though it is now using the iMac display
    D) iMac display preferences is unchanged: still set to Scaled @ 720p

Now, if I quit Kodi, it remembers the last setting ("Windowed" mode) and, after I turn the TV back on and restart Kodi, again it will run on the iMac monitor, even though the Display Settings still say it is running on "SONY TV"

This seems like a bug to me.
When the TV is turned off, Kodi knows to switch to Windowed mode on the iMac monitor, but it fails to realize it is running on the iMac and thinks it is running on the TV.

-- PART 3. This is where things get a bit hairy.

Now, Kodi is in this confused state, with TV display turned on.

Kodi assumes:
    A) That it is running on the TV display, though, in fact it is running on the iMac display.
    B) That the "TV display" has the resulution of the iMac display [1600 x 900, in my case]
    
Now, when I try to fix the problem by editing Kodi settings from the iMac window it is running in things go from bad to worse.

I change Kodi Display Mode to "Full Screen", hoping it will pop the window back onto the SONY TV (Which used to be the way things worked in Jarvis and Krypton).

Instead, Kodi changes the window resolution but remains on the iMac display.
The result is that I can no longer see the full Kodi window since now it is too big to fit in the window on the iMac, yet it now thinks it is running in "Full Screen" mode and I cannot resize its window!

It is a total mess now - I cannot even navigate to get back into System settings since buttons are no longer all visible, etc. and I cannot even drag this window over to the TV display since Kodi thinks it is running in Full Screen.

To get out of this mess, I do the following:

    A) Force Quit Kodi [Cmd-Opt-Esc]
    B) Restart Kodi
    C) Change Kodi Display Mode setting to "Windowed"
    D) Drag Kodi's window from the iMac back to the TV
    E) Change Kodi Display Mode setting back to "Full Screen"
    
At this point, Kodi window automatically moves back onto a window on the iMac monitor again!
And, again, Kodi thinks it is running Full Screen on the TV and I am back where I started so I have to try something different ...

This time (with Kodi running on the iMac, in "Full Screen" mode, still thinking it is running on the TV):
    A) I Change Kodi Display to "iMac"
    
The result is that Kodi settings now change to the exact OPPOSITE of what I just set it to!
Now Kodi config says:
    Display = "SONY TV"
    Display Mode = "Windowed"
    
Even though it is still running on the iMac.
Now I can drag the window of to the TV, quit and relaunch Kodi.
Result is the same as before: it launches again on the iMac but is now in "SONY TV" "Full Screen" mode and I can no longer even drag this window back onto the TV display.

A total mess.
Reply
#24
Previous problems were with earlier version of Kodi.
Now I am back to running the latest release [Kodi (18.1 Git:20190217-8cfdc895f3)] and it is much better!

Now, if somebody turns the TV display off, Kodi no longer switches to the iMac monitor, like before.
Now it is Locked-On to the TV and simply waits for me to turn the TV back on - perfect!
Even if I quit Kodi and re-launch, it is still 'running' on the TV display, even when it is off and settings don't get messed up anymore.

Since this has been a persistent problem over many Kodi releases, in case it happens in future releases, here is my condensed solution from prior experience.

With TV on, iMac display preferences set to 1280 x 720p resolution [same as Kodi has for "SONY TV"]

A) Launch Kodi: it displays on iMac but thinks it is on SONY TV, in Windowed mode
B) Change Kodi display setting from SONY TV, Windowed to SONY TV, Full Screen
C) Switch to the Finder: right-click on Kodi app icon in the Dock > Options
    It will be set to "Display on Desktop 2"
D) Change this from the Dock: Kodi app > Options = "None"
E) Now change it back: Dock: Kodi app > Options = "Display on Desktop 2"
    Finally, the Kodi window will relocate to the TV display, in Full Screen mode!
F) Quit Kodi to save the current settings before it crashes again.
G) Restart Kodi and it correctly runs on the TV display, in Full Screen mode, every time.
Reply
#25
You are using separate spaces for apps and/or are utilizing the macos fullscreen mode (by using either the green „+“ button or the context manu „display at desktop2“ or what it is called). This is unfortunately unsupported and leads to the mess you see.
Not saying multi monitor support is bug free on macos - but it shouldn‘t be such a cluster fuck you saw either.

I think you found a solution now for your use case.
Just for the future - that wall of text doesn‘t help anything when there is no debug log (wiki) which mirrors the behavior you wrote about.
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#26
(2019-03-16, 12:53)Memphiz Wrote: You are using separate spaces for apps and/or are utilizing the macos fullscreen mode (by using either the green „+“ button or the context manu „display at desktop2“ or what it is called). This is unfortunately unsupported and leads to the mess you see.
Not saying multi monitor support is bug free on macos - but it shouldn‘t be such a cluster fuck you saw either.

I think you found a solution now for your use case.
Just for the future - that wall of text doesn‘t help anything when there is no debug log (wiki) which mirrors the behavior you wrote about.
 I don't know what you mean about "separate spaces for apps".

As detailed previously in my postings - I have tried many approaches to solving this problem, which apparently has affected MacOS Kodi users since 2016.

Unfortunately, I have not found a solution - the "Display on Destop 2" only move the Kodi Full Screen window temporarily. Same problem with dragging the Kodi in "windowed" mode to the TV display: both of these methods only work a few times (max) before they fail to work.

Now I'm back to running Kodi in Windowed mode since it is easier to drag a window than to use the context menu. In both cases the current version is much worse than prior Krypton or Jarvis since those versions always opened on the correct TV display without forcing me to get up and walk across the room to fiddle.

I'd be happy to post a debug log if anyone would actually find it useful in fixing this bug.
Just let me know specifically what you need, if you know that somebody might care.
Reply
#27
Well I am the one who cares. No idea why this didn’t make it through to you yet.

For completeness. In macos settings in “mission control” there is a stetting to enable spaces for multiple monitors / screens.
Ensure that this is disabled.
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#28
(2019-03-18, 08:08)Memphiz Wrote: Well I am the one who cares. No idea why this didn’t make it through to you yet.

For completeness. In macos settings in “mission control” there is a stetting to enable spaces for multiple monitors / screens.
Ensure that this is disabled.
 You started out disparaging my "wall of text" as unhelpful on my first thread to this board. Maybe that has something to do why I didn't think you cared.
I'm an old QA guy and developer and I am always grateful for user data, in addition to logs. It helps to have as much detail as possible.

While I'd be happy to share my log data with you or other Kodi staff privately, I don't feel comfortable uploading publicly to pastebin, as required on this forum.

Thank you for the suggestion on disabling the "Display have separate Spaces" option in Mission Control, however I tried that and even rebooted but it didn't help or change anything except actually made things a bit worse: previously, with this option enabled (by default, I believe) Kodi did correctly launch on the TV display - until the TV was turned off and turned on again, that is. At that point Kodi reverted to launching onto the iMac display. Also, the change of "Spaces" option did not fix the problem with Kodi thinking it was still running on TV display even after launching itself on the iMac display several times - both in windows and full-screen mode.

I also tried disabling ALL other options in Mission Control but that also did not help things.
Reply
#29
Wall of text was not meant as criticism. It’s just a fact. I have read to all of it and nothing happens for me the same way like it does for you. That’s were the textual description looses its value for me as a base for trying to fix issues.

With seperate spaces for screens turned on - none of my second monitors are usable with Kodi at all. And that’s what other users reports aswell. I didn’t find a solution for that because the API from apple ignores our display settings.

So it is indeed interesting that it works better for you with this setting turned - but it doesn’t help me in finding bugs because that setting is already known to break multi monitor support in Kodi ...
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#30
(2019-03-19, 18:38)Memphiz Wrote: Wall of text was not meant as criticism. It’s just a fact. I have read to all of it and nothing happens for me the same way like it does for you. That’s were the textual description looses its value for me as a base for trying to fix issues.

With seperate spaces for screens turned on - none of my second monitors are usable with Kodi at all. And that’s what other users reports aswell. I didn’t find a solution for that because the API from apple ignores our display settings.

So it is indeed interesting that it works better for you with this setting turned - but it doesn’t help me in finding bugs because that setting is already known to break multi monitor support in Kodi ...
Yes, this is interesting that my Spaces setup works and yours does not.
Perhaps best to focus on fixing this before worrying about my problem or similar - though probably related in some way.

My first thought was: "Is there an open source project that successfully handles Spaces that could inform Kodi development on how to successfully implement Apples API?"
Perhaps the Kodi team could have a look through some other open source projects that have better support in this area.

I have tested Firefox (is it still open source? dunno) - and it sort of works with Spaces - at least about as well as Kodi does on my system.
Does Spaces work for you with Firefox or any other MacOS app besides Kodi? If not, then this is a Kodi bug, not necessary a problem of the API ignoring your display settings.

I have 8 Firefox windows open and two Desktops: Desktop 1 is the iMac display; Desktop 2 is the TV display.
I drag one of the Firefox windows to Desktop 2 on the TV and restart Firefox.
Funny thing is that after Firefox restarts, I don't always get the window I dragged displaying on the TV - it seems to alternate which window goes to the TV, but there is always ONLY ONE Firefox window on the TV; all the other 7 are on the iMac.

In the case of Kodi, I believe there are always two windows, the main window and a blank (white window).
When I drag the main Kodi window to the TV, with Spaces setting ON, usually that window will reappear on the TV after restarting Kodi but the blank Kodi window remains on the iMac which may be partially why Kodi gets confused when the TV is turned off or I switch from windowed to fullscreen mode and the main window bounces over to the iMac, yet display settings never change and it thinks it is drawing to the TV.
 My guess is that this is probably a hardware related issue such as TV or cabling since you and I have such different experiences.

I have an older SONY WEGA KD-36XS955.
Unlike more modern TVs, this TV has no 'standby' mode so this may confuse some apps like Kodi and explain the resulting confusion about what display a window is current displayed on.
Also, if it matters, TV is connected to the iMac by way of CableMatters™ Thunderbolt to HDMI adapter -> SIIG™ HDMI to DVI adapter -> DVI to HDMI cable -> TV
Reply

Logout Mark Read Team Forum Stats Members Help
OS SIERRA 2 displays problem1