Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong wallpaper size on second display #29

Closed
vitorlppf opened this issue Mar 17, 2020 · 16 comments
Closed

Wrong wallpaper size on second display #29

vitorlppf opened this issue Mar 17, 2020 · 16 comments
Labels
bug Something isn't working unable to reproduce

Comments

@vitorlppf
Copy link

Downloaded the software yesterday. I'm running Windows 8.1. It didn't display the wallpaper with the appropriate size on my second monitor. Instead of full screen, it shows up in reduced size. Upon closer inspection, it might be the size of my first monitor. Setting the layout to "Span" does fill the second display correctly, while "Duplicate" and "Per Display" don't.

While trying different wallpapers and layouts, the issue seemed to have corrected itself. Later, it resumed its glitchy behaviour, after restarting the program. I haven't managed to make it work properly since (though "Span" does still work as intended).

@rocksdanister
Copy link
Owner

rocksdanister commented Mar 17, 2020

Next time it happens, Exit the program & share the logfile
Documents\Lively Wallpaper\logfile.txt
File will be overwritten next time you launch unless there is an error, so make sure its the correct file.

@vitorlppf
Copy link
Author

I started Lively without any wallpaper set. I selected "Waves" as a wallpaper in "Duplicate" layout, then "Span", then "Per Display". Again, "Span" worked properly, while "Duplicate" and "Per Display" didn't.

2020-03-18 12:24:20.2352|INFO|livelywpf.SystemInfo|Lively v0.9.0.0 pt-BR 64Bit:False
2020-03-18 12:24:20.2612|INFO|livelywpf.SystemInfo|Portable build: False
2020-03-18 12:24:20.3070|INFO|livelywpf.SystemInfo|OS: Microsoft Windows 8.1 Pro 6.3.9600
2020-03-18 12:24:20.3184|INFO|livelywpf.SystemInfo|CPU: Intel(R) Core(TM) i5-4460 CPU @ 3.20GHz
2020-03-18 12:24:20.3355|INFO|livelywpf.SystemInfo|GPU: Intel(R) HD Graphics 4600
2020-03-18 12:24:20.8512|DEBUG|livelywpf.MainWindow|Detected Displays:- Screen[Bounds={X=0,Y=0,Width=1680,Height=1050} WorkingArea={X=0,Y=0,Width=1680,Height=1010} Primary=True DeviceName=\.\DISPLAY1
2020-03-18 12:24:20.8512|DEBUG|livelywpf.MainWindow|Detected Displays:- Screen[Bounds={X=-1920,Y=-30,Width=1280,Height=720} WorkingArea={X=-1920,Y=-30,Width=1280,Height=693} Primary=False DeviceName=\.\DISPLAY2
2020-03-18 12:24:20.8683|INFO|livelywpf.MainWindow|Restarting/Restoring All Wallpaper(s)
2020-03-18 12:24:33.0254|INFO|livelywpf.MainWindow|Loading Wallpaper (wp dir):- D:\Documentos\Lively Wallpaper\wallpapers\242tny3g.eod\index.html web_audio
2020-03-18 12:24:33.0454|INFO|livelywpf.MainWindow|Loading Wallpaper (wp dir):- D:\Documentos\Lively Wallpaper\wallpapers\2elw0opr.keh\index.html web
2020-03-18 12:24:33.0454|INFO|livelywpf.MainWindow|Loading Wallpaper (wp dir):- D:\Documentos\Lively Wallpaper\wallpapers\djcze13f.mlq\eternal_light_version2.mp4 video
2020-03-18 12:24:33.0824|INFO|livelywpf.MainWindow|Loading Wallpaper (wp dir):- D:\Documentos\Lively Wallpaper\wallpapers\fcyn5jal.wj2\index.html web
2020-03-18 12:24:33.0944|INFO|livelywpf.MainWindow|Loading Wallpaper (wp dir):- D:\Documentos\Lively Wallpaper\wallpapers\gyl1gr5r.hq4\waves.html web
2020-03-18 12:24:33.1114|INFO|livelywpf.MainWindow|Loading Wallpaper (wp dir):- D:\Documentos\Lively Wallpaper\wallpapers\gzmbwao1.2ii\index.html web
2020-03-18 12:24:33.1254|INFO|livelywpf.MainWindow|Loading Wallpaper (wp dir):- D:\Documentos\Lively Wallpaper\wallpapers\huryleus.43p\index.html web
2020-03-18 12:24:33.1254|INFO|livelywpf.MainWindow|Loading Wallpaper (wp dir):- D:\Documentos\Lively Wallpaper\wallpapers\kjmvxfbx.epw\cinemagraph.mp4 video
2020-03-18 12:24:33.1465|INFO|livelywpf.MainWindow|Loading Wallpaper (wp dir):- D:\Documentos\Lively Wallpaper\wallpapers\n0b34ct5.dyl\index.html web
2020-03-18 12:24:33.1555|INFO|livelywpf.MainWindow|Loading Wallpaper (wp dir):- D:\Documentos\Lively Wallpaper\wallpapers\s1qdxgqn.hhx\index.html web
2020-03-18 12:24:33.1555|INFO|livelywpf.MainWindow|Loading Wallpaper (wp dir):- D:\Documentos\Lively Wallpaper\wallpapers\upqwyiur.c4g\index.html web
2020-03-18 12:24:37.4331|INFO|livelywpf.MainWindow|Duplicating wp(s):D:\Documentos\Lively Wallpaper\wallpapers\gyl1gr5r.hq4\waves.html \.\DISPLAY1
2020-03-18 12:24:37.4381|INFO|livelywpf.MainWindow|Duplicating wp(s):D:\Documentos\Lively Wallpaper\wallpapers\gyl1gr5r.hq4\waves.html \.\DISPLAY2
2020-03-18 12:24:37.4381|INFO|livelywpf.MainWindow|Setting up wallpaper:-D:\Documentos\Lively Wallpaper\wallpapers\gyl1gr5r.hq4\waves.html
2020-03-18 12:24:37.4697|INFO|livelywpf.MainWindow|Setting up wallpaper:-D:\Documentos\Lively Wallpaper\wallpapers\gyl1gr5r.hq4\waves.html
2020-03-18 12:24:37.9506|INFO|livelywpf.SetupDesktop|Cefsharp Handle:- HWND263614
2020-03-18 12:24:37.9556|INFO|livelywpf.SetupDesktop|Cefsharp Handle:- HWND263548
2020-03-18 12:24:38.0857|INFO|livelywpf.SetupDesktop|Sending WP -> Screen[Bounds={X=-1920,Y=-30,Width=1280,Height=720} WorkingArea={X=-1920,Y=-30,Width=1280,Height=693} Primary=False DeviceName=\.\DISPLAY2
2020-03-18 12:24:38.1078|INFO|livelywpf.SetupDesktop|Relative Coordinates of WP -> -1920 -1067 1280 720
2020-03-18 12:24:38.1078|INFO|livelywpf.SetupDesktop|Coordinate wrt to screen ->0 0 1280 720
2020-03-18 12:24:38.0297|INFO|livelywpf.SetupDesktop|Sending WP -> Screen[Bounds={X=0,Y=0,Width=1680,Height=1050} WorkingArea={X=0,Y=0,Width=1680,Height=1010} Primary=True DeviceName=\.\DISPLAY1
2020-03-18 12:24:38.0297|INFO|livelywpf.SetupDesktop|searching workerWOrig..
2020-03-18 12:24:38.2509|INFO|livelywpf.SetupDesktop|searching again shell_tray..
2020-03-18 12:24:38.3049|INFO|livelywpf.SetupDesktop|Relative Coordinates of WP -> 0 1680 1680 1050
2020-03-18 12:24:38.3189|INFO|livelywpf.SetupDesktop|Coordinate wrt to screen ->1920 30 1680 1050
2020-03-18 12:24:52.3722|INFO|livelywpf.MainWindow|Setting up wallpaper:-D:\Documentos\Lively Wallpaper\wallpapers\gyl1gr5r.hq4\waves.html
2020-03-18 12:24:52.8033|INFO|livelywpf.SetupDesktop|Cefsharp Handle:- HWND329208
2020-03-18 12:25:03.3116|INFO|livelywpf.MainWindow|Setting up wallpaper:-D:\Documentos\Lively Wallpaper\wallpapers\gyl1gr5r.hq4\waves.html
2020-03-18 12:25:03.6628|INFO|livelywpf.SetupDesktop|Cefsharp Handle:- HWND394632
2020-03-18 12:25:03.6738|INFO|livelywpf.SetupDesktop|Sending WP -> Screen[Bounds={X=0,Y=0,Width=1680,Height=1050} WorkingArea={X=0,Y=0,Width=1680,Height=1010} Primary=True DeviceName=\.\DISPLAY1
2020-03-18 12:25:03.6889|INFO|livelywpf.SetupDesktop|Relative Coordinates of WP -> 0 1680 1680 1050
2020-03-18 12:25:03.7099|INFO|livelywpf.SetupDesktop|Coordinate wrt to screen ->1920 30 1680 1050
2020-03-18 12:25:06.1683|INFO|livelywpf.MainWindow|Setting up wallpaper:-D:\Documentos\Lively Wallpaper\wallpapers\gyl1gr5r.hq4\waves.html
2020-03-18 12:25:07.4352|INFO|livelywpf.SetupDesktop|Cefsharp Handle:- HWND656408
2020-03-18 12:25:07.5333|INFO|livelywpf.SetupDesktop|Sending WP -> Screen[Bounds={X=-1920,Y=-30,Width=1280,Height=720} WorkingArea={X=-1920,Y=-30,Width=1280,Height=693} Primary=False DeviceName=\.\DISPLAY2
2020-03-18 12:25:07.7805|INFO|livelywpf.SetupDesktop|Relative Coordinates of WP -> -1920 -1067 1280 720
2020-03-18 12:25:07.8095|INFO|livelywpf.SetupDesktop|Coordinate wrt to screen ->0 0 1280 720

@rocksdanister
Copy link
Owner

This is hard to read, share the file.

@vitorlppf
Copy link
Author

Here it is: logfile.txt.

@rocksdanister
Copy link
Owner

rocksdanister commented Mar 18, 2020

What are your screen resolutions, does any of them have display scaling enabled? if so what is it?
Can you send a screenshot/picture of how the wallpaper looks wrong?

@vitorlppf
Copy link
Author

Display 1 is 1680x1050, while Display 2 is 1920x1080. I'm not sure about display scaling, but I do believe it's enabled. It seems to be set in such a way that Windows automatically chooses the display scaling for each display, but I can't manually pick the scaling unless I set it uniformly across all of them. Additionally, the widget for selecting it is an unlabeled slider (except for "smaller" and "larger" at each end). My guess is that it's at 150%.

Here's what it looks like:

image

Additionally, if you look at the bottom left corner of that image, behind the task bar (look at the Internet Explorer logo), there is a small dark rectangle. I didn't have any other programs open (I checked with task manager), and it disappeared when I exited Lively. It doesn't look like intended behaviour, so I'm including yet another logfile: logfile.txt.

@rocksdanister
Copy link
Owner

Is it possible for you to test this same setup on a windows 10 machine?
Does this happen for video wallpapers?
Try to override the dpi scaling behavior for LivelyCefSharp.exe in external/cef

@vitorlppf
Copy link
Author

Sorry, but I don't have a Windows 10 Machine available.

I tried out a video wallpaper, but it wouldn't show at first. I followed the Video Guide, and ended up installing LAV. In the process, MMF started to work, and the wallpaper filled the screen. So did LAV. However, upon restart, the video wallpaper had the incorrect size. Changing the video player seems to correct it. Then, changing from a video wallpaper to another seems to maintain the intended behaviour, rather than the glitchy one. I restarted again, the issue was back, but corrected itself when I switched to a video wallpaper. I saved three different logfiles if you're interested in them.

I don't have proper training in C, C++, or C#. I'll see what I can do about it.

@rocksdanister
Copy link
Owner

rocksdanister commented Mar 22, 2020

More logfiles the better!
I'm not sure whats happening here tbh, the logfile does not show any display change event firing.

See if the lively_layout.json file in SaveData is getting messed up( "DeviceName" field?) as it is happening when you restart the program(?) or were you talking about restarting the wallpaper?

I don't have multiple monitors myself, the original code was tested quite a bit by others and I haven't changed the monitor part much.. I'm guessing this is some sort of win8 issue?

@vitorlppf
Copy link
Author

Here they are: logfile_01.txt, logfile_02.txt, and logfile_03.txt. Taking a look at them, the Height and Width properties of the WorkingArea object respective to Display 2 do change. Taking from logfile 3, there's line 20:

2020-03-20 20:54:17.5472|INFO|livelywpf.SetupDesktop|Sending WP -> Screen[Bounds={X=-1920,Y=-30,Width=1280,Height=720} WorkingArea={X=-1920,Y=-30,Width=1280,Height=693} Primary=False DeviceName=\.\DISPLAY2

and line 60:

2020-03-20 20:54:40.3681|INFO|livelywpf.SetupDesktop|Sending WP -> Screen[Bounds={X=-1920,Y=-30,Width=1920,Height=1080} WorkingArea={X=-1920,Y=-30,Width=1920,Height=1040} Primary=False DeviceName=\.\DISPLAY2

The Width and Height don't match Display 1's, which was my original guess. The ratio is correct though.

Indeed, when I said "restart" I meant the program. I will try to take a look at that .json file.

I wouldn't put away the chance of this being an issue with my monitor or its driver in particular, rather than Windows 8. That said, right now I'm changing to a video wallpaper and back whenever I start Lively (usually when booting up), which seems to fix the issue until I gotta start it again.

@ddukstas
Copy link

I have the same issue. I suspect this might be a result of different DPI scaling on each monitor. Enabling "high DPI scaling override" in compatibility settings gets me closer.

image

The Image fills the screen, but there's still an issue with "postprocessing window" (idk how to describe it, just see the screenshot):

image

@rocksdanister
Copy link
Owner

rocksdanister commented Mar 25, 2020

Windows 10?
Don't override Livlywpf.exe
Change LivelyCefsharp.exe

@ddukstas
Copy link

Yup

@rocksdanister
Copy link
Owner

I can't recreate the error,
What are the display resolutions and its scaling factors?

@ddukstas
Copy link

Display 1: 1920x1080, scaling - 150%
Display 2: 1920x1080, scaling - 100%

logfile.txt if it helps:

2020-03-25 23:05:33.6129|INFO|livelywpf.SystemInfo|Lively v0.9.0.0 lt-LT  64Bit:False
2020-03-25 23:05:33.6308|INFO|livelywpf.SystemInfo|Portable build: True
2020-03-25 23:05:33.7256|INFO|livelywpf.SystemInfo|OS: Microsoft Windows 10 Pro 10.0.17763
2020-03-25 23:05:34.8645|INFO|livelywpf.SystemInfo|CPU: Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
2020-03-25 23:05:34.8901|INFO|livelywpf.SystemInfo|GPU: Intel(R) UHD Graphics 620
2020-03-25 23:05:35.3938|DEBUG|livelywpf.MainWindow|Detected Displays:- Screen[Bounds={X=0,Y=0,Width=1920,Height=1080} WorkingArea={X=0,Y=0,Width=1920,Height=1034} Primary=True DeviceName=\\.\DISPLAY1
2020-03-25 23:05:35.3938|DEBUG|livelywpf.MainWindow|Detected Displays:- Screen[Bounds={X=1920,Y=0,Width=1920,Height=1080} WorkingArea={X=1920,Y=0,Width=1920,Height=1050} Primary=False DeviceName=\\.\DISPLAY2
2020-03-25 23:05:35.4028|INFO|livelywpf.MainWindow|Display(s) wallpapers to load:-\\.\DISPLAY2
2020-03-25 23:05:35.4028|INFO|livelywpf.MainWindow|Restarting/Restoring All Wallpaper(s)
2020-03-25 23:05:35.4263|INFO|livelywpf.MainWindow|Setting up wallpaper:-C:\Users\User\Downloads\Release\wallpapers\2elw0opr.keh\index.html
2020-03-25 23:05:35.7493|INFO|livelywpf.SetupDesktop|Cefsharp Handle:- HWND2099248
2020-03-25 23:05:35.7493|INFO|livelywpf.SetupDesktop|Sending WP -> Screen[Bounds={X=1920,Y=0,Width=1920,Height=1080} WorkingArea={X=1920,Y=0,Width=1920,Height=1050} Primary=False DeviceName=\\.\DISPLAY2
2020-03-25 23:05:35.7712|INFO|livelywpf.SetupDesktop|Relative Coordinates of WP -> 1920 3840 1920 1080
2020-03-25 23:05:35.7712|INFO|livelywpf.SetupDesktop|Coordinate wrt to screen ->1920 0 1920 1080
2020-03-25 23:05:35.9630|INFO|livelywpf.SetupDesktop|searching workerWOrig..
2020-03-25 23:05:35.9679|INFO|livelywpf.SetupDesktop|searching again shell_tray..

@ddukstas
Copy link

Windows 10?
Don't override Livlywpf.exe
Change LivelyCefsharp.exe

Oh, I somehow missed part of your message. I tried overriding only LivelyCefsharp.exe, got same results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unable to reproduce
Projects
None yet
Development

No branches or pull requests

3 participants