Minecraft and xorg.conf

Screen resolution, 3D Acceleration, nVidia, ATI
Forum rules
Before you post please read this
Post Reply
Dukenukemx
Level 3
Level 3
Posts: 170
Joined: Thu Nov 24, 2011 1:06 am

Minecraft and xorg.conf

Post by Dukenukemx »

I just installed 17.3 on my HTPC machine and because my HDTV is a DLP and has overscan, I have a custom made xorg.conf file to give me more resolution options. But as soon as I create the xorg.conf I'm not able to run Minecraft. Minecraft uses XRandR to identify my display and always creates this error.

Can someone take a look at my xorg.conf and see if everything is correct? I can't figure out what's wrong?

Code: Select all

    Section "Monitor"     
       Identifier    "Monitor0"
       HorizSync       24.0 - 94.0   
       VertRefresh     24.0 - 85.0
#       DisplaySize 1550 870
       Option "PreferredMode" "1920x1080"
       Modeline "1920x1080"  74.25  1920 2008 2052 2200  1080 1085 1095 1125 interlace +hsync +vsync
       Modeline "1600x900_60.00"  118.25  1600 1696 1856 2112  900 903 908 934 -hsync +vsync
       Modeline "1776x1000_60.00"  147.25  1776 1888 2072 2368  1000 1003 1013 1038 -hsync +vsync
       Modeline "1792x1008_60.00"  149.50  1792 1904 2088 2384  1008 1011 1016 1046 -hsync +vsync
       Modeline "1600x1050_60.00"  140.00  1600 1704 1872 2144  1050 1053 1063 1089 -hsync +vsync
       Modeline "1680x1008_60.00"  140.50  1680 1784 1960 2240  1008 1011 1018 1046 -hsync +vsync
       Modeline "1440x960_60.00"  113.75  1440 1528 1672 1904  960 963 973 996 -hsync +vsync
    EndSection

    Section "Device"
       Identifier   "Radeon"
       Driver   "radeon"   
       Option "Monitor-HDMI-0" "Monitor0"
    EndSection

    Section "Screen"           
       Identifier   "Screen0"
       DefaultDepth   24
       SubSection     "Display"
          Depth       24
          Modes "1920x1080"
       EndSubSection
    EndSection

Code: Select all

---- Minecraft Crash Report ----
// I bet Cylons wouldn't have this problem.

Time: 12/11/15 3:42 PM
Description: Initializing game

java.lang.ExceptionInInitializerError
	at ave.ar(SourceFile:560)
	at ave.am(SourceFile:361)
	at ave.a(SourceFile:310)
	at net.minecraft.client.main.Main.main(SourceFile:124)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
	at org.lwjgl.opengl.XRandR.findPrimary(XRandR.java:326)
	at org.lwjgl.opengl.XRandR.ScreentoDisplayMode(XRandR.java:315)
	at org.lwjgl.opengl.LinuxDisplay$3.run(LinuxDisplay.java:746)
	at org.lwjgl.opengl.LinuxDisplay$3.run(LinuxDisplay.java:743)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:743)
	at org.lwjgl.opengl.Display.<clinit>(Display.java:138)
	... 4 more


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
	at ave.ar(SourceFile:560)
	at ave.am(SourceFile:361)

-- Initialization --
Details:
Stacktrace:
	at ave.a(SourceFile:310)
	at net.minecraft.client.main.Main.main(SourceFile:124)

-- System Details --
Details:
	Minecraft Version: 1.8.9
	Operating System: Linux (amd64) version 4.2.0-19-generic
	Java Version: 1.7.0_91, Oracle Corporation
	Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 62833808 bytes (59 MB) / 158539776 bytes (151 MB) up to 1060372480 bytes (1011 MB)
	JVM Flags: 5 total; -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
	Launched Version: 1.8.9
	LWJGL: 2.9.4
	OpenGL: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
	GL Caps: 
	Using VBOs: No
	Is Modded: Probably not. Jar signature remains and client brand is untouched.
	Type: Client (map_client.txt)
	Resource Packs: 
	Current Language: ~~ERROR~~ NullPointerException: null
	Profiler Position: N/A (disabled)
	CPU: <unknown>

cwsnyder
Level 6
Level 6
Posts: 1242
Joined: Wed Oct 20, 2010 6:49 am
Location: Nappanee, IN, USA

Re: Minecraft and xorg.conf

Post by cwsnyder »

XRandR hasn't worked with xorg.conf since about 12.04 on my machine, and xrandr hasn't worked alone on my machine since about 14.04.1 or the Mint 17.1 equivalent. xrandr seems to totally ignore any /etc/X11/xorg.conf settings that I have and creating a new one to change video settings has not worked at all. I have a 17" 1280x1024 video display which has an invalid EDID and does not work with either motherboard based video or video card for Unity, Gnome, KDE, Cinnamon, Compiz, or Compton. I have used it since Ubuntu 7.10 days and have had to fight to get settings above the default since that time. I first used /etc/X11/xorg.conf, then about 10.04 release with unity, xorg.conf went spotty. As I said above, at 12.04, I finally used only xrandr to set my resolution, later xrandr went funky, and I ran with vga=795 from Linux Video Mode Numbers listed on the table at https://en.wikipedia.org/wiki/VESA_BIOS_Extensions on my GRUB linuz line.

I updated my screen to a Sansui 24 inch 1080p television/display and haven't played with video modes in a few months, so I don't know if that would help, or if something else has changed. I have noted that with an HDMI connection on the 24 inch Sansui I can't get full 1920x1080 resolution, only on the 15 pin VGA connection.
LMDE Mate 64-bit, LM17.3 Cinnamon 64-bit
Debian Mate 64-bit, Xubuntu xenial 64-bit, Ubuntu-Mate 14.04 64-bit, Antergos Xfce 64-bit, PCLinuxOS Mate 64-bit

User avatar
roblm
Level 12
Level 12
Posts: 4049
Joined: Sun Feb 24, 2013 2:41 pm

Re: Minecraft and xorg.conf

Post by roblm »

Dukenukemx,

For every modeline in the Monitor section, there should be a corresponding resolution in the Modes line of the Screen SubSection. So the line would be this:

Code: Select all

Modes "1920x1080" "1600x900" "1776x1000" "1792x1008" "1600x1050" "1680x1008" "1440x960"
But I would remove the modelines that you don't use. In your previous topic, AMD 6850 TV overscan, you only used these 3 resolutions:

1776x1000, 1792x1008, and 1440x960. You said using 1920x1080 overscanned the screen.

I would also remove the hash mark in front of this line, which gives the horizontal and vertical dimensions of the screen in millimeters, but you can check it with a ruler:

Code: Select all

DisplaySize 1550 870

Dukenukemx
Level 3
Level 3
Posts: 170
Joined: Thu Nov 24, 2011 1:06 am

Re: Minecraft and xorg.conf

Post by Dukenukemx »

Thanks roblm, I've tried that and Minecraft still gives me those errors. I've tried removing the xorg.conf and still won't allow minecraft to run. I haven't tried removing the monitors.xml file at all. Not sure if I need to when messing with xorg.conf.

User avatar
roblm
Level 12
Level 12
Posts: 4049
Joined: Sun Feb 24, 2013 2:41 pm

Re: Minecraft and xorg.conf

Post by roblm »

I Googled this message found in your Minecraft Crash Report:
java.lang.ArrayIndexOutOfBoundsException: 0
at org.lwjgl.opengl.XRandR.findPrimary(XRandR.java:326)
From reading the article at THIS WEB SITE, post 7, I would try changing all the modelines by removing the refresh rate. For example, this modeline:

Code: Select all

Modeline "1600x900_60.00"  118.25  1600 1696 1856 2112  900 903 908 934 -hsync +vsync
Would be changed to this:

Code: Select all

Modeline "1600x900"  118.25  1600 1696 1856 2112  900 903 908 934 -hsync +vsync
Then change this line:

Code: Select all

Option "PreferredMode" "1920x1080"
To this:

Code: Select all

Option "PreferredMode" "1600x900"
If that doesn't work, try the other resolutions.

EDITED: The article at THIS WEB SITE, shows the first line of your error message and discusses updating Minecraft's lwjgl library to version 2.6

Dukenukemx
Level 3
Level 3
Posts: 170
Joined: Thu Nov 24, 2011 1:06 am

Re: Minecraft and xorg.conf

Post by Dukenukemx »

Roblm that worked. Minecraft will now start! I hope this is useful to anyone else in the future. I also didn't install Java 8 on this machine, as I usually do with other Mint setups I have.

User avatar
roblm
Level 12
Level 12
Posts: 4049
Joined: Sun Feb 24, 2013 2:41 pm

Re: Minecraft and xorg.conf

Post by roblm »

What method worked. Just changing the modelines, or updating Minecraft's lwjgl library?

Dukenukemx
Level 3
Level 3
Posts: 170
Joined: Thu Nov 24, 2011 1:06 am

Re: Minecraft and xorg.conf

Post by Dukenukemx »

The PreferredMode change and removing the refresh rate worked. Didn't touch Minecraft's lwjgl library.

cwsnyder
Level 6
Level 6
Posts: 1242
Joined: Wed Oct 20, 2010 6:49 am
Location: Nappanee, IN, USA

Re: Minecraft and xorg.conf

Post by cwsnyder »

Just a comment, removing the refresh rate in the name of the mode should not affect ANYTHING, since the 'refresh rate' should simply be part of the label and treated as random text.
LMDE Mate 64-bit, LM17.3 Cinnamon 64-bit
Debian Mate 64-bit, Xubuntu xenial 64-bit, Ubuntu-Mate 14.04 64-bit, Antergos Xfce 64-bit, PCLinuxOS Mate 64-bit

Dukenukemx
Level 3
Level 3
Posts: 170
Joined: Thu Nov 24, 2011 1:06 am

Re: Minecraft and xorg.conf

Post by Dukenukemx »

cwsnyder that maybe the case but Minecraft is still working. Though no other game was effected so, Minecraft problems?

Post Reply

Return to “Graphics Cards & Monitors”