You are not logged in.

#1 2017-06-06 18:29:12

GregHilmes
Member
Registered: 2017-06-06
Posts: 8

[SOLVED] Closing Minecraft turns off secondary monitor

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

#2 2017-06-06 19:13:07

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,887

Re: [SOLVED] Closing Minecraft turns off secondary monitor

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

#3 2017-06-06 20:15:29

GregHilmes
Member
Registered: 2017-06-06
Posts: 8

Re: [SOLVED] Closing Minecraft turns off secondary monitor

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

Board footer

Powered by FluxBB