我在电脑上玩 Minecraft,每当我按 F3 时,它都会显示“NV98 上的 Gallium 0.4”我查了一下这是什么意思,发现它是一个默认的图形驱动程序。因此,我四处寻找如何为我的电脑安装 nvidia 驱动程序的方法,于是我运行了命令sudo apt-get install nvidia-current
。执行此操作后,再次启动 Minecraft 时,屏幕会快速弹出两次,然后它会崩溃并显示以下错误日志:
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
[15:17:20] [Client thread/INFO]: Setting user: XXXXXXXX
[15:17:20] [Client thread/INFO]: (Session ID is token:XXXXXXXXXXXXXXXXXX)
[15:17:22] [Client thread/INFO]: LWJGL Version: 2.9.4
Xlib: extension "NV-GLX" missing on display ":0".
[15:17:23] [Client thread/ERROR]: Couldn't set pixel format
org.lwjgl.LWJGLException: X Error - disp: 0x7fbce86da1d0 serial: 81 error: BadValue (integer parameter out of range for operation) request_code: 155 minor_code: 24
at org.lwjgl.opengl.LinuxDisplay.globalErrorHandler(LinuxDisplay.java:320) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
at org.lwjgl.opengl.LinuxContextImplementation.nCreate(Native Method) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
at org.lwjgl.opengl.LinuxContextImplementation.create(LinuxContextImplementation.java:51) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
at org.lwjgl.opengl.ContextGL.<init>(ContextGL.java:132) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
at org.lwjgl.opengl.Display.create(Display.java:850) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
at org.lwjgl.opengl.Display.create(Display.java:757) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
at ave.ap(SourceFile:521) [1.8.8.jar:?]
at ave.am(SourceFile:363) [1.8.8.jar:?]
at ave.a(SourceFile:310) [1.8.8.jar:?]
at net.minecraft.client.main.Main.main(SourceFile:124) [1.8.8.jar:?]
Xlib: extension "NV-GLX" missing on display ":0".
---- Minecraft Crash Report ----
// There are four lights!
Time: 8/19/15 3:17 PM
Description: Initializing game
org.lwjgl.LWJGLException: X Error - disp: 0x7fbce86da1d0 serial: 134 error: BadValue (integer parameter out of range for operation) request_code: 155 minor_code: 24
at org.lwjgl.opengl.LinuxDisplay.globalErrorHandler(LinuxDisplay.java:320)
at org.lwjgl.opengl.LinuxContextImplementation.nCreate(Native Method)
at org.lwjgl.opengl.LinuxContextImplementation.create(LinuxContextImplementation.java:51)
at org.lwjgl.opengl.ContextGL.<init>(ContextGL.java:132)
at org.lwjgl.opengl.Display.create(Display.java:850)
at org.lwjgl.opengl.Display.create(Display.java:757)
at org.lwjgl.opengl.Display.create(Display.java:739)
at ave.ap(SourceFile:534)
at ave.am(SourceFile:363)
at ave.a(SourceFile:310)
at net.minecraft.client.main.Main.main(SourceFile:124)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Stacktrace:
at org.lwjgl.opengl.LinuxDisplay.globalErrorHandler(LinuxDisplay.java:320)
at org.lwjgl.opengl.LinuxContextImplementation.nCreate(Native Method)
at org.lwjgl.opengl.LinuxContextImplementation.create(LinuxContextImplementation.java:51)
at org.lwjgl.opengl.ContextGL.<init>(ContextGL.java:132)
at org.lwjgl.opengl.Display.create(Display.java:850)
at org.lwjgl.opengl.Display.create(Display.java:757)
at org.lwjgl.opengl.Display.create(Display.java:739)
at ave.ap(SourceFile:534)
at ave.am(SourceFile:363)
-- Initialization --
Details:
Stacktrace:
at ave.a(SourceFile:310)
at net.minecraft.client.main.Main.main(SourceFile:124)
-- System Details --
Details:
Minecraft Version: 1.8.8
Operating System: Linux (amd64) version 3.19.0-15-generic
Java Version: 1.7.0_79, Oracle Corporation
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 72926576 bytes (69 MB) / 176979968 bytes (168 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.8
LWJGL: 2.9.4
OpenGL: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
GL Caps:
Using VBOs: Yes
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>
#@!@# Game crashed! Crash report saved to: #@!@# /home/mayatta65/.minecraft/crash-reports/crash-2015-08-19_15.17.24-client.txt
[15:17:24] [Client Shutdown Thread/INFO]: Stopping server
完成此操作后,我必须卸载软件包,以便恢复 Gallium 0.4 驱动程序。如何安装 Nvidia 驱动程序并让 Minecraft 正常运行?
答案1
我不知道 Minecraft 的情况,但如果你想安装 Nvidia 驱动程序,请查看这问题。
简而言之,你应该去额外的驾驶员,选择驱动程序所有权和已测试.然后安装nvidia-prime
包裹。