显示分辨率和 Unity:重启之前完美

显示分辨率和 Unity:重启之前完美

今天我重新启动了系统,经过 11 多天的正常运行(每天暂停一次)以及几天前涉及 fglrx 的更新后,发现屏幕分辨率已经发生了变化。

在设置中的“显示”中,只有两种分辨率选项:1024x768和800x600。

在此处输入图片描述

此外,所有启动器图标都更大(我使用 MyUnity 时,它们比默认图标更小)。打开 MyUnity 时,我收到以下消息:

您的 Ubuntu 12.04 正在以 2D 模式运行。许多功能将不可用。

我尝试重启了几次,但没有任何变化。我尝试按照以下方法安装 mesa-utilshttps://askubuntu.com/a/85322但也什么也没有改变。

我最终按照以下方法删除了 xorg 配置文件https://askubuntu.com/a/407663

sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.nvidia

当我重新启动时,分辨率恢复正常并且其他分辨率重新出现在“显示器”下。

在此处输入图片描述

剩下的问题是我卡在了 2D 模式。我该如何返回正常模式?(是的,我确实退出了并选择“Unity”而不是“Unity 2D”)

此外,有人能帮忙解释一下为什么会发生这种情况吗?

技术信息:NVIDIA GF119 [GeForce GT 520M]、ATI RV730 XT [Mobility Radeon HD 4670、Ubuntu 12.04.4、内核 3.2.0-58-generic。

谢谢

更新 于是我再次搜索并发现了同样的问题:如何从 Unity 2D 转换为 3D?

但我的情况是一台笔记本电脑;我无法升级我的卡。

此外,它工作正常。我不明白发生了什么。如果有帮助,以下是更多信息(带有“...”的行表示重复的行:

    $ /usr/lib/nux/unity_support_test 
X Error of failed request:  BadRequest (invalid request code or no such operation)
  Major opcode of failed request:  135 (GLX)
  Minor opcode of failed request:  19 (X_GLXQueryServerString)
  Serial number of failed request:  22
  Current serial number in output stream:  22

User@home:~$ unity --replace
Checking if settings need to be migrated ...no
Checking if internal files need to be migrated ...no
Backend     : gconf
Integration : true
Profile     : unity
Adding plugins
Initializing core options...done
compiz (core) - Warn: failed to receive ConfigureNotify event on 0x3e00004
....

Initializing composite options...done
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
compiz (opengl) - Error: initScreen failed
compiz (core) - Error: Couldn't activate plugin 'opengl'
compiz (core) - Error: Plugin 'opengl' not loaded.

Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
....

Initializing decor options...done
Initializing vpswitch options...done
Initializing snap options...done
Initializing mousepoll options...done
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
Initializing resize options...done
Initializing place options...done
Initializing move options...done
compiz (core) - Error: Plugin 'opengl' not loaded.

compiz (core) - Error: InitPlugin 'wall' failed
compiz (core) - Error: Couldn't activate plugin 'wall'
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
Initializing grid options...done
I/O warning : failed to load external entity "/home/user/.compiz/session/103b5073b092edf68e139368147689533800000024950007"
Initializing session options...done
Initializing gnomecompat options...done
compiz (core) - Error: Plugin 'opengl' not loaded.

compiz (core) - Error: InitPlugin 'animation' failed
compiz (core) - Error: Couldn't activate plugin 'animation'
compiz (core) - Error: Plugin 'opengl' not loaded.

compiz (core) - Error: InitPlugin 'fade' failed
compiz (core) - Error: Couldn't activate plugin 'fade'
compiz (core) - Error: Plugin 'opengl' not loaded.

compiz (core) - Error: InitPlugin 'unitymtgrabhandles' failed
compiz (core) - Error: Couldn't activate plugin 'unitymtgrabhandles'
compiz (core) - Error: Plugin 'opengl' not loaded.

Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
Initializing workarounds options...done
compiz (core) - Error: Plugin 'opengl' not loaded.

compiz (core) - Error: InitPlugin 'scale' failed
compiz (core) - Error: Couldn't activate plugin 'scale'
compiz (core) - Error: Plugin 'opengl' not loaded.

compiz (core) - Error: InitPlugin 'expo' failed
compiz (core) - Error: Couldn't activate plugin 'expo'
compiz (core) - Error: Plugin 'opengl' not loaded.

compiz (core) - Error: InitPlugin 'ezoom' failed
compiz (core) - Error: Couldn't activate plugin 'ezoom'
compiz (core) - Error: Plugin 'opengl' not loaded.

compiz (core) - Error: InitPlugin 'unityshell' failed
compiz (core) - Error: Couldn't activate plugin 'unityshell'
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
compiz (core) - Warn: unhandled ConfigureNotify on 0x8400090!
compiz (core) - Warn: this should never happen. you should probably file a bug about this.
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
compiz (core) - Warn: unhandled ConfigureNotify on 0x8400093!
compiz (core) - Warn: this should never happen. you should probably file a bug about this.
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
compiz (core) - Warn: unhandled ConfigureNotify on 0x8400096!
compiz (core) - Warn: this should never happen. you should probably file a bug about this.
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
compiz (core) - Warn: unhandled ConfigureNotify on 0x8400099!
compiz (core) - Warn: this should never happen. you should probably file a bug about this.
compiz (core) - Warn: unhandled ConfigureNotify on 0x8400096!
compiz (core) - Warn: this should never happen. you should probably file a bug about this.
compiz (core) - Warn: unhandled ConfigureNotify on 0x8400093!
compiz (core) - Warn: this should never happen. you should probably file a bug about this.
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
...

compiz (core) - Warn: unhandled ConfigureNotify on 0x840009f!
compiz (core) - Warn: this should never happen. you should probably file a bug about this.
compiz (core) - Warn: unhandled ConfigureNotify on 0x8400096!
compiz (core) - Warn: this should never happen. you should probably file a bug about this.
...
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
compiz (core) - Warn: unhandled ConfigureNotify on 0x8400096!
....

compiz (core) - Warn: this should never happen. you should probably file a bug about this.
compiz (core) - Warn: unhandled ConfigureNotify on 0x8400093!
compiz (core) - Warn: this should never happen. you should probably file a bug about this.
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
Initializing animation options...done
Initializing expo options...done
Initializing ezoom options...done
Initializing fade options...done
Initializing opengl options...done
Initializing scale options...done
Initializing staticswitcher options...done
Initializing unitymtgrabhandles options...done
Initializing unityshell options...done
Initializing wall options...done
Setting Update "main_menu_key"
Setting Update "run_key"
Starting gtk-window-decorator
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
...

compiz (decor) - Warn: requested a pixmap type decoration when compositing isn't available
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
....

compiz (decor) - Warn: requested a pixmap type decoration when compositing isn't available
...

Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
x^[ Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
Segmentation fault (core dumped)

答案1

您试过这个吗?在软件和更新、附加驱动程序选项卡中选择默认图形,选择:使用 x.org X 服务器,然后重新启动。重新加载后,返回并选择 fglrx(专有)并再次重新启动。这应该可以解决问题。

相关内容