[MC-2067] Switching to fullscreen does not work when running under Ubuntu 12.10 Created: 03/Nov/12  Updated: 03/May/15  Resolved: 23/Aug/13

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.2, Minecraft 1.4.3, Minecraft 1.4.7
Fix Version/s: None

Type: Bug
Reporter: Tamás Szelei Assignee: Unassigned
Resolution: Invalid Votes: 3
Labels: linux, nvidia, ubuntu
Environment:

Ubuntu 12.10 (64 bit)

$ java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.5) (6b24-1.11.5-0ubuntu1~12.10.1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

GPU: nvidia
Driver: proprietary, version: 304.51

no mods, no texture packs, lwjgl version is the one shipped with Minecraft.


Attachments: PNG File Minecraft_wrong_reder.png     File mc_fullscreen.webm     File minecraft_fullscreen_malfunction.log    
Issue Links:
Duplicate
is duplicated by MC-19751 Can't full screen on LinuxMint 14.1 C... Resolved
is duplicated by MC-31359 Linux fullscreen Minecraft doesn't work. Resolved
is duplicated by MC-34474 Toggle fullscreen doesn't work Resolved
is duplicated by MC-39352 Fullscreen not working on Ubuntu Linu... Resolved
is duplicated by MC-51657 Fullscreen Issue Resolved
is duplicated by MC-52239 Minecraft fullscreen is not working c... Resolved
is duplicated by MC-3463 Minecraft Linux fullscreen issue Resolved
Relates
relates to MC-46669 Fullscreen (F11) freezes Minecraft wi... Resolved
CHK:
Confirmation Status: Unconfirmed

 Description   

When running the game, I press F11.

*What I expected to happen*: the game switches to fullscreen

*What actually happened*: The screen becomes black for a moment (similarly to when it actually switches to fullscreen), but when it comes back, it is still running in a window, except it goes to the pause screen (and pressing ESC will not resume the game, too).

I have attached a video. The observable phenomenon is pretty much the same minus the white glitchy lines, I think they are caused by the recording.

*Steps to reproduce*:
1. Run Minecraft on Ubuntu 12.10 64 bit, using a nvidia GPU
2. Press F11

*Other information*
There is an AskUbuntu thread that discusses the same issue with some additional details regarding tried and not working troubleshooting methods:
http://askubuntu.com/questions/203326/minecraft-fullscreen-not-working



 Comments   
Comment by Andrew Burnell [ 09/Jul/14 ]

I have this problem on Ubuntu 14.04. If I try to enter fullscreen while minecraft is maximized, it freezes. If I try to enter fullscreen while minecraft is windowed, it works fine.

Comment by Kumasasa [ 23/Aug/13 ]

Thanks for the feeedback.

Comment by totokaka [ 23/Aug/13 ]

Crossposting the LWJGL forums thread and the Minecraft bug report

On my system this is working. I did an upgrade of the drivers, and I updated to Xorg 1.14. I can't say excately what fixed it but it's now working. As long as I disable the secound monitor first, anyways.

Comment by totokaka [ 14/Aug/13 ]

Ohh, and I suppose a Mod now migth say that I have included many bugs into one bug report, and that migth be true. I posted everything to give an as detailed as possible description.
I think this Issue should only be the issue that Minecraft closes the fullscreen rigth after it is made, and that someone(maybe me) should make issues for the turn around bug(AFAIk that exist already) and the wrongly redered/placed minecraft in the window.

Comment by totokaka [ 14/Aug/13 ]

a "jstack -l" log of the minecraft process after the screen is black with strange artifacts.
This is in an mcp environment, so it's deobfuscated after the mcp rules. The only changes is some System.out.println's for some fullscreen debugging.

Comment by totokaka [ 14/Aug/13 ]

I have been looking much into this bug, and the only thing I've found out is that this is either an OpenGL, graphics driver or LWJGL issue.
Even though this is not a Minecraft issue I will describe how it acts for me, so others can compare.

I have a dual-head setup, when I have the second monitor activated it never works, but here is what happens:
When I first set it to fullscreen, both monitors will go black, and then the secound monitor is disabled, and minecraft is back in it's windowed state(because of the check that closes fullscreen if minecraft is not in focus), but it is rendered wrongly in the window. It does not think of the window decaration, and therefor is of by as much as the window decaration is at the top, I'll take a screen shot of this and attach it to this bug report.
If I then try to go fullscreen again, the screen is all messed up, and is mostly black with a couple of strange graphical artifacts changing all the time. This is equal to how it's described in MC-3463. I did manage to use jstack to get a stack of minecraft when it is in this state, however. I will attach it to this bug report.

If I try running Minecraft after I have first disabled the other monitor the result is varying, but it tends to work if Minecraft have less than 1Gb of RAM.
However when minecraft then works in fullscreen it seems like the window is not correctely in focus, so when the cursor leaves the "real" window, Steve stops spinning around. This can be fixed by pressing Esc and then just press resume game with the cursor.
If it does not work when I have disabled the secound monitor the bug is like the issue author described it, and as shown in the video. This seems to be because of a check in the code that is supposed to go out of fullscreen if some other program take over the focus. A solution to this migth be to wait a second to see if minecraft is regaining it's focus.

So for a quick summarry: if the game tries to go to fullscreen and then closes, that is due to a check to prevent minecraft from being fullscreen while opening the Windows Start Menu for example. If you get strange artifacts on the screen, and you have to reboot/ attach another monitor and open another tty to restart the gdm, that is most likely an OpenGL or LWJGL issue. If minecraft is wrongly placed in the window after fullscreen(see screenshot) that is a minecraft issue, and is fixed by resizing the window. If you cannot turn while in fullscreen, or after it's closed, that is a LWJGL issue(probabely possible to fix through Minecraft though) and is fixed by opening the menu and closing it by using the "Resume" button.

EDIT: This proves that the fullscreen bug is actually many bugs. The original author of this issue did only have the problem that minecraft would go out of fullscreen again because of the check if the Minecraft window is active.

Comment by Majlo [ 13/Aug/13 ]

This is resolved in latest Minecraft for me. Probably bug in LWJGL.

Comment by Tails [ 29/Jun/13 ]

From MC-19751:

This is very likely a LWJGL issue, feel free to report it on: https://github.com/LWJGL/lwjgl/issues

There is very little we can do.

Comment by Kumasasa [ 29/Jun/13 ]

Reopened.

Comment by Tamás Szelei [ 29/Jun/13 ]

This IS a bug report. There is no JVM crash, read the BUG description. Please.

Comment by Tails [ 15/Mar/13 ]

This is a technical support issue; this site is for bug reports only. For technical support please use the Mojang Support Center.

Comment by Kumasasa [ 16/Nov/12 ]

I clearly see your point and your effort in this issue, and of course you are right that the other issues are not the same.
But this error tracker was made to track Minecraft errors, the "rest" like JRE, graphics drivers, operating systems etc. should be handled by the support, see Mojang Support Center.
To keep things here clear, some issues have to be consolidated.

Comment by Tamás Szelei [ 16/Nov/12 ]

Do what you think is best, I really tried to put effort into this one and I think you are wrong (BTW I switched to a different distribution, so I'm not affected by the bug at the moment).

As a side note, I think you should not be so eager to close bugs without substantial evidence of them being invalid or duplicates. For example, many bugs that are marked as a duplicate for this one have different symptoms. I understand that they might have the same root cause, but no evidence is provided so far. There is no crash involved with this bug, while lots of fullscreen crash bugs are reported as duplicate for it. In this case, it simply switches back to windowed mode, no crash whatsoever.

Comment by Kumasasa [ 16/Nov/12 ]

Yes, I see that this issue is not solved for you, but see the other fullscreen issues and crashes, they may be related and mostly cause by graphics driver / JRE.

Comment by Tamás Szelei [ 16/Nov/12 ]

Why do you think that? I just told you that I tried with another window manager and it didn't work. So it's not a Unity/Compiz bug.

Comment by Kumasasa [ 16/Nov/12 ]

I think we can close this ticket here, since this is probably no Minecraft issue.

Comment by Tamás Szelei [ 16/Nov/12 ]

Well, I tried with xfce on this same system, and I had the same issue.

Comment by Majlo [ 16/Nov/12 ]

Still the same issue after upgrade to new beta 310.14 driver .But fullscreen works in fluxbox/gnome 3 so this will be probably compiz/unity problem .I have filled bug in ubuntu bug tracker please feel free to contribute https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/1079731

Comment by Kumasasa [ 15/Nov/12 ]

Majlo, thanks for the update, looking forward to your test results.

Comment by Majlo [ 14/Nov/12 ]

Problem is nvidia driver 304.xx .I had same issue also on 12.04 when i did upgrade from stock 295.xx to 304.xx ( downgrade back to 295.xx fixed the issue .Problem persist in 12.10 with 304.51 .I will test new beta 310 driver and let you know.

Comment by Mustek [ 08/Nov/12 ]

Reopened this issue as it's not a duplicate of MC-1854

Comment by 5ives [ 06/Nov/12 ]

This isn't a dupe, re-read this and MC-1854.

Comment by Louis Lloyd-Besson [ 06/Nov/12 ]

bumping

Comment by Tamás Szelei [ 06/Nov/12 ]

Either way, there is clearly a problem.

Comment by Sileem Farghaly [ 06/Nov/12 ]

I find that its the opposite for me. Full screen works in Gnome Shell, but not in Unity 12.10

Comment by Tamás Szelei [ 06/Nov/12 ]

I'm using Unity.

Comment by [Mod] CubeTheThird [ 06/Nov/12 ]

Which desktop environment are you using? I find the fullscreen doesn't work for me in Gnome shell 3, but does in Unity.

Comment by Tamás Szelei [ 06/Nov/12 ]

No, this is not a duplicate of the other one, and as I already said, updating lwjgl does not solve the issue and neither does using the Oracle JVM.
I understand that you want to close as many bugs as possible, but please, be reasonable. Can we get this reopened, please?

Comment by Kumasasa [ 04/Nov/12 ]

Duplicate of MC-1854

Comment by Tamás Szelei [ 03/Nov/12 ]

Yes, the driver is up-to date. I just tried Oracle java, and it does not work (just like in the AskUbuntu thread).
Also, even if that was the problem, it would make sense to start supporting OpenJDK, since it is the official reference implementation from Java7 and up (see: https://blogs.oracle.com/henrik/entry/moving_to_openjdk_as_the). Also, it is the default runtime in Ubuntu, installing Oracle Java is not very straightforward for an average user.

Comment by [Mod] CubeTheThird [ 03/Nov/12 ]

This could be a problem caused by openJDK, so you might want to install oracle java instead. Also make sure your graphics card (if you have one) driver is installed and up to date.

Generated at Sun Jan 12 11:56:36 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.