`
yangzb
  • 浏览: 3492363 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Xgl-nvidia

阅读更多

安装 XGL 和一些 Gnome 和 Nvidia 的小技巧

Nvidia 用户你们好。如果你是一个 ATI 用户,那么请使用下列向导:

http://www.ubuntuforums.org/showthread.php?p=739758

AMD64 用户看这个:

http://www.ubuntuforums.org/showthread.php?t=131659

一些注意事项:

你必须编译最新的 glitz 的 CVS 版本来使它能在 Nvidia cards that lack Pixel Shaders (aka anything older than a 5200 FX) 下正常工作。Hopefully this will be updated in the repository soon.

THIS BREAKS XINERAMA AND TWINVIEW so dual head use is more annoying.

Proceed at you own risk. This is new experimental stuff and I hope you are a little command line savy (or can call someone that is) because if something messes up you might be stuck on the command line.此过程中的风险由你自己承担。这是一种新的方法并且我希望你有一些命令行的基础,因为如果有配置搞糟了,你可能会被困在命令行界面的。

不要说我没有警告你。

Also I assume you have installed the newest Nvidia driver from the repos. To get it, this command:

sudo apt-get install nvidia-kernel-common nvidia-glx

现在我们来编辑 xorg.conf 。首要的事情是使用命令打开它:

sudo gedit /etc/X11/xorg.conf

找到 “Module” 部分。标注 “Glcore” 和 “dri “ 部分,并确认 “glx” 部分还在。基本上如同下面显示的:

# Load "GLcore"
# Load "dri"
Load "glx"

现在找到“Devices” 快。

更改所有的行,除了标有 “Identifier” 的那一行,就像我这样:

Section "Device"
Identifier- leave this line alone!
Driver          "nvidia"
BusID           "PCI:1:0:0"
Option          "RenderAccel"           "true"
EndSection

如果以后 compiz 不能在你那里工作 (and complains about composite extension):

添加这个到每个结尾:

Section "Extensions"
Option  "Composite" "Enable"
EndSection

不要添加到别的地方

非常重要:

确认你默认的颜色深度是 24 !

现在保存并关闭文件。

现在到了第二个部分了 - 安装 XGL。

我确定下面的命令会这样做。我是在一个很干净的系统上安装的:

sudo apt-get install compiz xserver-xgl libgl1-mesa xserver-xorg libglitz-glx1 compiz-gnome

这是很简单的。下一步是使它在 Gnome 启动的时候也启动。I get this from the ATI guide with modification. 非常感谢 JoWilly !

首先是命令:

sudo gedit /etc/gdm/gdm.conf-custom

确认它 是这样的。删除文件里所有其它的并和我帖的保持一致:

# GDM Configuration Customization file.
#
# This file is the appropriate place for specifying your customizations to the
# GDM configuration.   If you run gdmsetup, it will automatically edit this
# file for you and will cause the daemon and any running GDM GUI programs to
# automatically update with the new configuration.  Not all configuration
# options are supported by gdmsetup, so to modify some values it may be
# necessary to modify this file directly by hand.
#
# To hand-edit this file, simply add or modify the key=value combination in
# the appropriate section in the template below.  Refer to the comments in the
# gdm.conf file for information about each option.  Also refer to the reference
# documentation.
#
# If you hand edit a GDM configuration file, you should run the following
# command to get the GDM daemon to notice the change.  Any running GDM GUI
# programs will also be notified to update with the new configuration.
#
# gdmflexiserver --command="UPDATE_CONFIG <configuration key>"
#
# For example, the "Enable" key in the "[debug]" section would be specified by
# "debug/Enable".
#
# You can also run gdm-restart or gdm-safe-restart to cause GDM to restart and
# re-read the new configuration settings.  You can also restart GDM by sending
# a HUP or USR1 signal to the daemon.  HUP behaves like gdm-restart and causes
# any user session started by GDM to exit immediately while USR1 behaves like
# gdm-safe-restart and will wait until all users log out before restarting GDM.
#
# For full reference documentation see the gnome help browser under
# GNOME|System category.  You can also find the docs in HTML form on
# http://www.gnome.org/projects/gdm/
#
# NOTE: Lines that begin with "#" are considered comments.
#
# Have fun!
[daemon]
[security]
[xdmcp]
[gui]
[greeter]
[chooser]
[debug]
[servers]# Override display 1 to use Xgl (DISPLAY 1 IMPORTANT FOR ATI FGLRX).
0=Xgl
[server-Xgl]
name=Xgl server
command=/usr/bin/Xgl :0 -fullscreen -ac -accel glx:pbuffer -accel xv:fbo
flexible=true

That has a special line that I found works best for Nvidia cards- this might solve acceleration issues some people have!

Time for the last step: make compiz work! This part will work for ATI users as well.

Two ways to do that. Either go by what this post says (thanks g14) or use my small script:

这个:

http://www.ubuntuforums.org/showpost.php?p=760273&postcount=507

或者

首先是命令:

sudo gedit /usr/bin/thefuture

应当会出现一个空白的文件。使用下列文字来填充它:

#!/bin/bash gnome-window-decorator & compiz --replace gconf decoration wobbly fade minimize cube rotate zoom scale move resize place switcher &

保存这个文件。现在使用命令:

sudo chmod 755 /usr/bin/thefuture

阅读本文的剩余部分然后重启。在登录到 GDM 之后,打开一个终端输入这个(感谢 rjtd ):

xmodmap /usr/share/xmodmap/xmodmap.<language>

替换你的国家语言代码。对于美国英语,我使用这个命令:

xmodmap /usr/share/xmodmap/xmodmap.us

现在把命令放到终端里来运行 compiz :

thefuture

这就应当使 compiz 开始工作了。如果没有,就一直使用这个命令(也许要20次)直到它工作为止。如果你出现了问题,把它贴出来,以便获得帮助。

试验一下。这里有一个基本的键命令:

CTRL + ALT + 左箭头/右箭头。 Switches to the new side of the cube for me.

CTRL + ALT + SHIFT + Left/Right arrow key- Takes the in focused app around cube.

CTRL + ALT + Left Click on Desktop - allows you to use the mouse to rotate cube.

F12 - uses the Expose like trick

Alt- Tab - Vista 模式的切换

Now is to solve some general issues. One is the fact that the wobble seems off to many people with Nvidia cards. There is an easy fix thanks to roberTO:

Run the command:

gconf-editor

现在到

apps>compiz>general>screen0>option

然后关闭 "detect_refresh_rate" 选项。

然后设定 "refresh_rate" 为 60

It will work like a charm. Here is a neat trick if you want to take screenshots from npodges.

到 gconf-editor 里找到:

apps>compiz>general>screen0>options

把 “command0” 改成 "gnome-screenshot"

然后把 “run_command0” 改成 "Print"

Now the PrintScr button will take screenshots. More helpful advice on the different gconf-editor options can be found on this page:

http://gentoo-wiki.com/HOWTO_XGL

我希望你 enjoy 这个向导。

为了取消

这个命令:

sudo rm /etc/gdm/gdm.conf-custom

http://www.ubuntuforums.org/showthread.php?t=131267


文章来源:官方WIKI
翻译人员:WeiTao

分享到:
评论

相关推荐

    YAMAHA 雅马哈机器人 YK600XGLP.pdf

    YAMAHA 雅马哈机器人 YK600XGLPpdf,机械手臂长 120mm~1200mm!行业顶级的丰富产品系列,完全无皮带式结构,发挥出水平多关节机器人特征的极限!YK系列---行业顶级的丰富产品系列,发挥出水平多关节型机器人特征的...

    nVIDIA TNT2、GeForce、Quadro、GeForce2、Quadro2、GeForce3、GeForce2/3 Ti、Geforce4系列芯片显卡最新驱动28.32 WHQL版For Win2000/XP(2002年4月27日发布)

    nVIDIA、nVIDIA RIVA TNT、nVIDIA RIVA TNT2/TNT2 Pro、nVIDIA Aladdin ...XGL、nVIDIA Quadro4 200/400 NVS、nVIDIA GeForce3、nVIDIA GeForce3 Ti 200、nVIDIA GeForce3 Ti 500、nVIDIA Quadro DCC、nVIDIA GeForce4...

    【源代码】AMDVLK-AMD开源的Vulkan驱动源代码-分卷1

    cmake -G Ninja -S xgl -B builds/Release64 cmake --build builds/Release64 sudo cmake --install builds/Release64 --component icd 具体使用方法可见https://github.com/GPUOpen-Drivers/AMDVLK 3.注意:需要...

    【源代码】AMDVLK-AMD开源的Vulkan驱动源代码-分卷2

    cmake -G Ninja -S xgl -B builds/Release64 cmake --build builds/Release64 sudo cmake --install builds/Release64 --component icd 具体使用方法可见https://github.com/GPUOpen-Drivers/AMDVLK 3.注意:需要...

    【源代码】AMDVLK-AMD开源的Vulkan驱动源代码-分卷3

    cmake -G Ninja -S xgl -B builds/Release64 cmake --build builds/Release64 sudo cmake --install builds/Release64 --component icd 具体使用方法可见https://github.com/GPUOpen-Drivers/AMDVLK 3.注意:需要...

    YAMAHA 雅马哈机器人 YK700XGL.pdf

    YAMAHA 雅马哈机器人 YK700XGLpdf,机械手臂长 120mm~1200mm!行业顶级的丰富产品系列,完全无皮带式结构,发挥出水平多关节机器人特征的极限!YK系列---行业顶级的丰富产品系列,发挥出水平多关节型机器人特征的...

    Domino R8.0.x 软硬件环境要求

    - Linux: 128MB video RAM (with XGL-compatible video driver from hardware OEM for SLED 10) - Macintosh: 32MB video RAM 或更高 **6. 显示器:** - 彩显 - 最低分辨率: 1024x768 **7. 支持协议:** - ...

    xgl:利用JSX来利用WebGL

    XGL 利用来利用 。 XGL提供了创建3D场景的编程方法。 它在WebGL上放置了几乎不透明的抽象层,因此几乎不需要WebGL的经验。 您可以使用JSX声明性地创建场景,并在何时以及何时添加命令性代码。安装您可以使用克隆存储...

    XGL to JOGL Java Loader-开源

    【XGL to JOGL Java Loader】是一个开源项目,它的主要目标是实现对XGL标准文件格式的支持,并通过Java OpenGL(JOGL)库将其内容在3D空间中进行渲染和交互。XGL是一种高级的图形文件格式,常用于存储复杂的3D场景和...

    jetson-utils:适用于NVIDIA Jetson的C ++ Python Linux实用程序包装-相机,编解码器,CUDA,GStreamer,HID,OpenGLXGL

    XGL是NVIDIA提供的一个扩展,使得OpenGL可以在Wayland或X11窗口系统上运行,提供更好的性能和兼容性。通过jetson-utils,开发者可以充分利用Jetson的图形处理能力,构建高性能的图形应用程序。 在实际应用中,...

    QRTRJ020822021阳离子金黄XGL250%共9页

    QRTRJ020822021阳离子金黄XGL250%共9页.pdf.zip

    关于铁路试验检测表格填写的相关规定.doc

    - 细骨料:XGL - 抗压:KY - 水泥:SN - 抗渗:KS - 粉煤灰:FMH - 抗冻:KD - 矿粉:KF - 抗折:KZ - 硅灰:GH - 电通量:DTL - 减水剂:JSJ - 弹性模量:TM - 钢筋:GJ - 回弹:HT - 钢筋焊接:...

    suse10_hd_install

    本篇将详细介绍如何进行SUSE Linux 10的硬盘安装,以及在安装过程中可能会遇到的问题,包括驱动安装、软件源设置和XGL图形环境的配置。我们将基于"硬盘安装SUSE 10指导手册"及"支持U盘CDROM启动的GRLDR"两个关键资源...

    xgl:Vulkan API层

    Vulkan:registered:API层(XGL) Vulkan API层(XGL)将Vulkan API命令转换为PAL命令。 它使用基于LLVM的管道编译器(LLPC)库将构成特定VkPipeline对象的着色器编译为单个实体。

    程序员2002- 9期

    - **产品系列**:包括LeadtekQuadro4900XGL、LeadtekQuadro4750XGL等,这些产品基于nVIDIA公司的Quadro4显卡。 - **技术创新**:提供业界领先的性能以及创新特性,如出色的3D与2D性能。 - **市场定位**:面向专业...

    Linux下一代3D桌面XgI.pdf

    Linux下一代3D桌面XGL是Linux操作系统中一个重要的技术进步,它为用户带来了前所未有的3D图形体验。这项技术的出现满足了Linux爱好者对于类似3D桌面环境的期待。XGL(X over OpenGL)是由Novell公司从2004年起在...

    uyjulianPSXOGL:这是一个从 Peops XGL 插件中剔除所有废话的插件

    这是一个从 Peops XGL 插件中剔除所有废话的插件。 这个 repo 不是面向大众的,它只是供开发者环顾四周和 fork 请发送拉取请求和问题(和 fork!) 去做 • 弄清楚如何进行离屏硬件渲染(目前使用软件回退) • ...

    实达电脑STAR-SE4504宽带路由器.pdf

    ELSA推出的Quadro FX系列显卡使用了NVIDIA Quadro FX绘图芯片,支持Intel AGP3.0规范和AGP8X功能,提供了高带宽和稳定的性能,大幅提升了2D/3D速度性能。它们在Viewperf 7.0性能测试中超越了Quadro4 980XGL,性能...

    opengl x window part 1 of 2

    x window系统的opengl编程 英文版 xgl

Global site tag (gtag.js) - Google Analytics