Jump to content

New Emby app not maintaining window size


Recommended Posts

Posted

App runs great, very impressed with it so far.

But... When I turn my TV off and then turn it on again the next day the app is no longer fullscreen (see screenshot) and shrunk into the top left corner of the screen.

Fortunately, the app still responds to the IR remote so I can close and restart it again. When I exit the program it does go full screen for a split second and plays the closing animation (very cool btw)

If I recall correctly Emby Theater had the same issue in its early days as well.

Screenshot2024-12-24200856.thumb.png.b59ffb73e11d22cb59660c7b8023b67b.png

Posted (edited)

Does this work with any other application?

Edited by softworkz
Posted

Not quite sure what you're asking. But I use Chrome Fullscreen in Edge for YouTube that maintains its window size when the TV is turned off and on again, and of course Emby Theater maintained its windows size as well. These are the only apps I run on this machine. (main lounge room PC)

This is a very old issue that is basically caused by some TV's that disconnect the HDMI from the video card (akin to actually unplugging the cable) when they are off, whereas some TV's maintain that connection in the off/standby state. This causes windows to revert to some default internal resolution. I think the function in Windows that is/wasMy supposed to fix this is called Rapid Hot Plug Detect.

It's not just old TV's that do this, I have a 70" HiSense which is only a couple of years old.

It looks like based on the attached screenshot, that internal resolution is 1536x864, which seems a weird resolution. But, my desktop res is 4k, and which is 250% higher than this resolution, and my desktop scaling is set to 250%, so I'm guessing is where it's getting this from.

Posted

I'm aware of two cases when turning off the HDMI target:

  • Either: the output is maintained, so the desktop layout doesn't change - everything remains the same as if the TV (or other target) would still be ON
    You can move the mouse to this area and also drag windows there - you just don't see it
  • Or: the display is removed from the desktop area (like when unplugging the cable), which makes Windows move all windows which were shown on that display to the remaining display area, so you can see and work with them

Which of these applies to your situation?

Or are you saying you are seeing a 3rd  case where there's still a display which is extending your desktop but it has a lower resolution after switching it off?

Can you post a screenshots of your "Display Settings" in cases when it's on and off?

 

Posted

Hey Softworkz

I think you misconstrued my resolution comments, I have annotated the original screenshot and attached below.

The only part of it that can be interacted with is the shrunken Emby, the "white ish" area cannot be, you don't get resize arrows if you move the mouse to the edge of it or anything like that.

So, of your two case scenarios, this is kind of case 2 except that instead of shrinking the whole app to the top left corner, it maintains the 4k res with the white background and Emby shrunken.

Out of curiosity, as the ratio of the Emby displayed in the screen shot is exactly the same as the scale setting of 250%. I set scaling to 100% which of course makes everything impossibly tiny on the desktop, this fixes the issue when turning the TV off, so it's DEFINITELY something to do with the scaling setting. I would really prefer not to have to leave it at 100% as I do use that machine for work stuff (Zoom, Teams etc, I work from home).

Screenshot2024-12-24200856.thumb.png.4e0feb8acbeb34b0408907523071bf8e.png

As for the Display setting, this is with the TV on, then I turned it off and used an app called Remote Utilities to connect and the settings were identical so I didn't take another screenshot. 

Screenshot2024-12-26120043.png.2f8f1038231c7ba33a5dd7abaded3eee.png

 

Posted
18 minutes ago, pgriffith said:

As for the Display setting, this is with the TV on, then I turned it off and used an app called Remote Utilities to connect and the settings were identical so I didn't take another screenshot. 

Ah, so you don't have multiple displays, just the TV, and when it's off, and you use "remote utilities" these are probably creating a kind of virtual display which has 100% scaling I assume.

So effectively, your primary display is changing - from one with 250% scaling to one with 100% scaling and back. This makes it  a very specific and unusual case. It's not a typical use case. I don't have "remote utilities", neither do I want to install such software, which makes it difficult to even reproduce. 

Posted (edited)

It happens regardless of Remote Utilities, I just uninstalled it, and the same shrinking behaviour happens at 250% scaling. I only used Remote Utilities to get a look at the Display Settings for you when the TV was off.

 

Edit: Interestingly instead of closing shrunken Emby and restarting it, I instead opted to play a video. The video plays fullscreen as normal, if you then stop it the shrunken Emby remains onscreen while the fullscreen Video Backdrop plays under it. It was easier to take a photo of this than trying to screenshot it.

IMG_20241226_132521_455.thumb.jpg.3477420db5cd58fff79ffd3abd1068b1.jpg

Edited by pgriffith
Clarification
Posted

Hmm, that's odd...

Now how can I reproduce this? Like so?

  • Have a TV as the only display connected to the computer
    with display scaling > 100%
  • Remove the HDMI plug
  • (do nothing else in-between)
  • Re-connect HDMI

Does that lead to the situation you are seeing? 

Posted

I imagine that is the best way to simulate it, yes.

I did some testing between then and now, I went through all the different Scaling settings and found something interesting that might help you.

Obviously 100% scaling is fine, but weirdly so is 125%, 150%, & 175%. It only occurs with 200%, 250% & 300%, with 300% being Windows recommended scaling for the resolution I'm running at, 4K (3840 x 2160).

Hope this helps.

Posted
5 minutes ago, pgriffith said:

I imagine that is the best way to simulate it, yes.

I did some testing between then and now, I went through all the different Scaling settings and found something interesting that might help you.

Obviously 100% scaling is fine, but weirdly so is 125%, 150%, & 175%. It only occurs with 200%, 250% & 300%, with 300% being Windows recommended scaling for the resolution I'm running at, 4K (3840 x 2160).

Hope this helps.

Thanks. Will try next week when I'm back in the office.

  • Agree 1
Posted

I've tried this now:

  • Unplugged all displays except the 4k TV
  • 4k TV at 30Hz, 3840x2160 and 250% scale
  • Set the Emby app to full-screen
  • Unplugged the TV
  • Re-plugged the TV
    => Emby app still shown as full-screeen across the whole screen

Which OS do you have?
Which GPU?
Which GPU driver version?

Thanks

  • 2 weeks later...
pgriffith
Posted

Sorry mate, didn't see you had responded.

Windows 11 Pro 24H2

Nvidia GeForce GTX 1660

Driver version 566.14 (from November)

Posted

I'm having the same problem. My issue is identical to what pgriffith has described. I am running Windows 11 Pro 24H2 using integrated graphics on an AMD Ryzen 7 5700G. I have never used Remote Utilities.

As pgriffith has said, this was a problem with early versions of Emby Theater. I can reproduce the problem by turning off the AV receiver between my HTPC and my TV and turning it back on. When the TV reconnects, Emby is running in a shrunken area in the top left corner of the screen but all others open apps still use the full screen.

I did a quick test running both Emby Theater and the new app. Emby Theater does continue to use the full screen while the Emby app is reduced in size. Though, neither app formats the home screen correctly when the HDMI reconnects (which is not corrected until the apps are restarted).

I've been using Emby since the MB/WMC days. Love the new app. Great work!

Posted

Thanks for sharing but I don't believe it's related. It's less a windows size issue than the fact that the Emby UI only uses a portion of the full-screen window.

I did find an old thread where the same issue was posted for Emby Theater. Unfortunately, it does not end in a resolution:

 

Posted

Hey shredfiend

Does changing the Display Scaling change things for you?

As I posted above, I get the correct behaviour for 175% or lower. So until softworkz works out what is going on I've temporarily changed my scaling to 175%.

Posted

Yes, reducing the scaling to 175% corrects both issues I was experiencing. The Emby App continues to use the full screen and both the Emby App and Emby Theater retain proper formatting of the home screen when the HDMI connection is re-established.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...