mojira.dev
MC-77279

Game sets monitor to half resolution on exit on Linux

Starting with 1.8.2-pre5, the game sets my monitor resolution to 960x1200 when exiting. This is exactly half its native 1920x1200 in the x-direction. I have a dual-monitor setup:

Primary: 1920x1200
Secondary: 1920x1080 (right of primary)

Steps:
1. Select version 1.8.2-pre6 in the launcher.
2. Start the game on the primary monitor.
3. At the main menu, quit the game. At no point do I enter fullscreen mode or even attempt to resize the window.
4. Both monitors briefly flash. Primary monitor is now at 960x1200 according to its on-screen display; secondary is still at 1920x1080.

To fix the resolution, simply starting 1.8.2-pre4 or earlier and quitting resets it back to 1920x1200.

For the benefit of other players running into this, a more convenient fix involves the xrandr command. The commands are (the --output names will vary, use xrandr -q for a list)

xrandr --auto --output DVI-I-2 --mode 1920x1200
xrandr --auto --output DVI-I-3 --mode 1920x1080 --right-of DVI-I-2

Comments 12

Likely caused by LWJGL update, which came out with that pre-release.

Is this still an issue in the current Minecraft Snapshot 15w47c or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Yes it still happens with 15w47c. I agree that it is likely an LWJGL issue.

Issue is still present in Minecraft 1.10.2 under Debian Jessie and NVidia non-free drivers, no debian ljwgl installed, and only one monitor.

Minecraft resizes the screen to 960x1200 if screen is 1920x1200. But if I switch to 1920x1080 using "xrandr -s 1920x1080" before starting the game, screen doesn't flash, isn't resized, can switch to and from full screen without problem. I can normally resize my screen after exit with xrandr -s 1920x1200. I so created a simple script which does this. to play at now.

Hello,

Just for information : I added 16w39c to give a try and issue remains the same. Resolution is altered to ½Horiz x Vert (960x1200) when set to native (1920x1200 or 1200x1920 rotated) on my single monitor but not in 1920x1080, 1600x1200, 1600x1050... (Minecraft vanilla + faithfull 32x texture pack + optifine on 1.10.2, no shaders, no mods if it can help)

2 more comments

New try with NVidia 375.66 and minecraft 1.12 (vanilla as always) on latest debian stable+backports. Same 960x1200 instead of 1920x1200 problem (switch just before showing main menu after Mojang Logo).

Bug still appears on 1.12.2.

I tried restoring 1920x1200 while minecraft is running using xrandr but it doesn't work.

New things I saw and tried that might help to understand what's happening.

The NVidia panel says 1920x1200-0-0 instead of 1920x1200+0+0 when resolution is wrong.
Pannings (-0-0) are set each time I put minecraft to full screen, whether minecraft resolution is set to "auto" or "manual".
When I force minecraft to 1920x1080, it restores 1920x1200-0-0 instead of 1920x1200+0+0

Can someone please check if this is still an issue in the latest snapshot 17w43b?

Hello,

Starting and playing at 1920x1200 is ..ok !
Switch from and to full screen tries : current, 1600x1200, 1920x1080, 1440x900, 1280x900 all are .. ok !
Great job and thank you !

Kahr

(Unassigned)

Community Consensus

lwjgl

Minecraft 1.8.2-pre5, Minecraft 1.8.2-pre6, Minecraft 1.8.2-pre7, Minecraft 1.8.3, Minecraft 15w47c, Minecraft 1.10.2, Minecraft 16w39c, Minecraft 16w43a, Minecraft 1.12, Minecraft 1.12.2

Minecraft 17w43a

Retrieved