You are not logged in.
I play Minecraft and launch it via MultiMC5. Gameplay works perfectly normally, but when closing the Minecraft (not the MultiMC) window, my secondary monitor turns off. Then I'm required to go and open settings, re-enable and re-position the monitor, and all goes back to normal.
This same effect happens under all of these conditions:
Closing the window with the "X" button
Closing the window via Alt-F4 key combo
Ending the java process in the task manager
Closing the window while it is on the affected monitor
Closing the window while maximized
Closing the window while in default opening resolution
Closing the window while minimized
Closing the window via the "Quit Game" button in Minecraft
In ALL cases, it is the non-primary monitor that becomes disabled. (I even tried switching my primary monitor to the other one; still happens)
The only time this does not happen is by using the "Kill" button in MultiMC, which I would rather not use all the time. Additionally, the Minecraft log shows no signs of error upon closing.
System Info:
KDE Plasma - 5.9.5
Kernel - 4.11.3-1
Architecture - 64 bit
Graphic - AMD Cypress PRO [Radeon HD 5850]
- xf86-video-ati driver
Halp pls.
Last edited by GregHilmes (2017-06-06 20:15:42)
Offline
minecraft relies on the xrandr tool what likely means it's using it in the most naive possible way...
Most basic solution is to wrap minecraft into a script and use xrandr to set your preferred screen layout after minecraft exited.
More sophisticated would be to store the layout, run minecraft and restore it, but that's not gonna be a trivial script on top of xrandr...
Offline
Interesting. I had never installed xrandr explicitly, so it turns out all I needed to do was install the xorg-xrandr package and that did the trick.
Offline