该文档说明了如何在Debian系统中使用NVIDIA的显卡。

开源驱动

Debian 有三种支持NVIDIA显卡的开源驱动,你可以查看到你正在使用哪一种:

$ grep -B2 'Module class: X.Org Video Driver' /var/log/Xorg.0.log

你可以简单地 配置X 来改变所使用的开源驱动。

没有一个开源驱动能够完全支持3D加速, 即使是 Nouveau 驱动拥有3D加速. 只有闭源的 nvidia 支持完全的3D加速。

vesa

vesa 驱动是一个通用的视频驱动程序。

nv

nv 驱动通常比vesa驱动得到更好的性能,但是它没有包含在wheezy或者更新的版本中。

Nouveau

除了vesa 和 nv, Debian从squeeze开始包含Nouveau驱动. Nouveau驱动从官方NVIDIA驱动经过逆向工程得到。这些驱动都是实验性的,这个驱动是不推荐的,除非你的nv驱动有问题并且你不想使用nvidia驱动。 Nouveau 驱动从Wheezy开始变得稳定.

驱动安装

为了使用 nouveau 驱动, 你的内核 drm 版本和你的 libdrm 版本需要匹配。基本上安装可以以这种方式来做:# apt-get install xserver-xorg-video-nouveau

然后 配置X并且设置 nouveau 作为你的设备驱动。

英伟达专有驱动

步骤

选择驱动程序版本

For GeForce 6xxx and higher GPUs.

For GeForce 5xxx / GeForce FX GPUs.

For GeForce 2, GeForce 3 and GeForce 4 GPUs.For GeForce 6xxx and higher GPUs, through to some GeForce 400 series.

For GeForce 5xxx / GeForce FX GPUs.

For GeForce 2, GeForce 3 and GeForce 4 GPUs.

71.86.xx 驱动 - 支持 NVIDIA NV4/NV5/NV6/NV10/NV15 GPUs 和相关变化型号 - 不可用,由于其不支持Xorg X server1.4以后的版本 (620526, 708338).

所有上面的驱动程序版本都只有 x86 和 x86-64 架构可用,分别对应 (Debian i386 和 AMD64).

安装

Debian 7 "Wheezy"

版本 304.88

增加 "contrib" 和 "non-free" 组件到 /etc/apt/sources.list, 例如:# Debian 7 "Wheezy"

deb http://http.debian.net/debian/ wheezy main contrib non-free

更新的可用的软件包列表.安装适当的 linux-headers 和 kernel module 软件包:# aptitude update

# aptitude -r install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') nvidia-kernel-dkms这也将安装推荐的 nvidia-glx 软件包. DKMS将为系统构建nvidia模块。

使用 手动方式 或者 nvidia-xconfig,这将创建一个基本的xorg.conf文件

重启系统以在启动时将nouveau(内核驱动)加入黑名单.

版本 173.14.35 (legacy GPUs)

为了支持英伟达(?GeForce)5xxx / FX GPUs (支持的设备).增加 "contrib" 和 "non-free" 组件到 /etc/apt/sources.list, 例如:# Debian 7 "Wheezy"

deb http://http.debian.net/debian/ wheezy main contrib non-free

更新的可用的软件包列表。安装适当的 linux-headers 和 kernel module软件包:# aptitude update

# aptitude -r install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') nvidia-kernel-legacy-173xx-dkms

这也将安装推荐的 nvidia-glx-legacy-173xx 软件包。DKMS将为系统构建nvidia模块。

使用 手动方式 或者 nvidia-xconfig,这将创建一个基本的xorg.conf文件

重启系统以在启动时将nouveau(内核驱动)加入黑名单.

版本 96.43.23 (legacy GPUs)

为了支持?GeForce 2, GeForce 3 和 GeForce 4 GPUs (支持的设备).增加 "contrib" 和 "non-free" 组件到 /etc/apt/sources.list, 例如:# Debian 7 "Wheezy"

deb http://http.debian.net/debian/ wheezy main contrib non-free

更新的可用的软件包列表。安装适当的 linux-headers 和 kernel module软件包:# aptitude update

# aptitude -r install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') nvidia-kernel-legacy-96xx-dkms

这也将安装推荐的 nvidia-glx-legacy-96xx 软件包。DKMS将为系统构建nvidia模块。

使用 手动方式 或者 nvidia-xconfig,这将创建一个基本的xorg.conf文件.

重启系统以在启动时将nouveau(内核驱动)加入黑名单.

Debian 6.0 "Squeeze"

版本 195.36.31

增加 "contrib" 和 "non-free" 组件到 /etc/apt/sources.list, 例如:# Debian 6.0 "Squeeze"

deb http://http.debian.net/debian/ squeeze main contrib non-free

更新的可用的软件包列表。安装适当的 linux-headers 和 kernel module软件包:# aptitude update

# aptitude -r install linux-headers-2.6-$(uname -r|sed 's,[^-]*-[^-]*-,,') nvidia-kernel-dkms这也将安装推荐的 nvidia-glx 软件包. DKMS将为系统构建nvidia模块。

更新 initial ramdisk 使其把 nouveau 包含在黑名单中.(613951):# update-initramfs -u

重启系统以在启动时将nouveau(内核驱动)加入黑名单.

版本 173.14.27 (legacy GPUs)

为了支持 GeForce 5xxx / GeForce FX GPUs (supported devices).增加 "contrib" 和 "non-free" 组件到 /etc/apt/sources.list, 例如:# Debian 6.0 "Squeeze"

deb http://http.debian.net/debian/ squeeze main contrib non-free

更新的可用的软件包列表。 Install the appropriate linux-headers and kernel module packages:# aptitude update

# aptitude -r install linux-headers-2.6-$(uname -r|sed 's,[^-]*-[^-]*-,,') nvidia-kernel-legacy-173xx-dkms

This will also install the recommended nvidia-glx-legacy-173xx package. DKMS will build the nvidia module for your system.

Update the initial ramdisk to include the nouveau blacklist (613951):# update-initramfs -u

重启系统以在启动时将nouveau(内核驱动)加入黑名单.

版本 96.43.18 (legacy GPUs)

为了支持 GeForce 2, GeForce 3 and GeForce 4 GPUs (supported devices).增加 "contrib" 和 "non-free" 组件到 /etc/apt/sources.list, 例如:# Debian 6.0 "Squeeze"

deb http://http.debian.net/debian/ squeeze main contrib non-free

更新的可用的软件包列表。 Install the appropriate linux-headers and kernel module packages:# aptitude update

# aptitude -r install linux-headers-2.6-$(uname -r|sed 's,[^-]*-[^-]*-,,') nvidia-kernel-legacy-96xx-dkms

This will also install the recommended nvidia-glx-legacy-96xx package. DKMS will build the nvidia module for your system.

Update the initial ramdisk to include the nouveau blacklist (613951):# update-initramfs -u

重启系统以在启动时将nouveau(内核驱动)加入黑名单.

配置

由于 Xorg不会自动检测英伟达显卡驱动,因此必须提供一个配置文件。例如:

/etc/X11/xorg.conf.d/20-nvidia.confSection "Device"

Identifier "My GPU"

Driver "nvidia"

EndSection

上面的配置文件可以通过以下命令来创建:# mkdir /etc/X11/xorg.conf.d

# echo -e 'Section "Device"\n\tIdentifier "My GPU"\n\tDriver "nvidia"\nEndSection' > /etc/X11/xorg.conf.d/20-nvidia.conf

请注意这个命令在使用了“英伟达-优驰”技术的系统中会破坏你的Xorg配置。对于这样的硬件, 参见 Bumblebee 。

这时候重启系统使 nouveau 驱动加入黑名单。

检查驱动是否工作

为了检查是否正在使用加速, 使用 glxinfo程序. 这个程序是在 mesa-utils 软件包中. 如果

$ glxinfo |grep rendering

返回值为 "direct rendering: Yes", 加速已经启用.

更多信息

For more information about the drivers, see: /usr/share/doc/nvidia-glx/README.Debian

/usr/share/doc/nvidia-glx/README.txt.gz

These files have loads of information about options and for troubleshooting NVIDIA's proprietary drivers. Here's an enticement for you to read them: somewhere in one of them you can find an explanation of how to suppress the NVIDIA splash screen every time you start an X server (hint: search for "NoLogo").

You can adjust the clock rates of your GPU and video RAM by running nvclock, nvclock_gtk, or nvclock_qt, available respectively in the nvclock, nvclock-gtk, and nvclock-qt packages. Obligatory warning: you can destroy your video hardware with these tools if you're not careful.

You can adjust some other, relatively obscure settings of the driver by running nvidia-settings, available in the nvidia-settings package.

另请参阅

linux内核驱动 debian,zh_CN/NvidiaGraphicsDrivers - Debian Wiki相关推荐

  1. vmlinux 反汇编_ARM Linux内核驱动异常定位方法分析--反汇编方式

    通常认为,产生异常的地址是lr寄存器的值,从上面的异常信息可以看到[lr]的值是c01a4e30. 接下来,我们可以通过内核镜像文件反汇编来找到这个地址.内核编译完成后,会在内核代码根目录下生成vml ...

  2. linux内核创建字符节点,Tiny6410学习ing—(四)、嵌入式Linux内核驱动进阶—(7)、高级字符设备驱动(自动创建节点)—#931...

    按照国嵌的视频教程上来说的,最后就是-自动创建设备文件! 其实我感觉以前完全可以直接是手动创建了设备文件,然后就可以直接讲述自动创建设备文件,为啥非要拖到最后来讲述,我也就不清楚了!! 不管了,写完收 ...

  3. linux内核下网络驱动流程,基于Linux内核驱动的网络带宽测速方法与流程

    本发明涉及一种测速方法,尤其是一种网络带宽测速方法. 背景技术: :电信运营商为客户提供一定带宽的Internet接入:为了检验带宽是否达标,一般均由客户使用个人电脑在网页上直接测速.但是随着智能网关 ...

  4. linux内核添加spi驱动,Linux内核驱动之spi子系统spi协议.docx

    Linux内核驱动之spi子系统spi协议 概况 SPI接口是摩托罗拉首先提出的全双工三线同步串行外围接口SCK,MOSI,MISO,采用主从模式(Master Slave)架构:支持多slave模式 ...

  5. 树莓派基于Linux内核驱动开发详解

    一.驱动认知 首先理解Linux内核框图 文件系统认知,Linux内核框图 1.什么是驱动 linux内核驱动.软件层面上的驱动 广义上是指:这一段代码操作了硬件去动,所以这一段代码就叫硬件的驱动程序 ...

  6. Linux内核驱动之efi-rtc

    Linux内核驱动之efi-rtc 1. UEFI与BIOS概述 1.1. BIOS 概述 1.1.1. BIOS缺点: 1.1.2. BIOS的启动流程 1.2 UEFI 概述 1.2.1 Boot ...

  7. Linux内核驱动 --ioctl函数解析

    1.前言 当我们在讨论linux内核驱动开发时,就不得不提到ioctl这个及其重要的函数.它是字符类设备驱动程序中实现对设备控制的接口之一. ioctl是设备驱动程序中对设备的I/O通道进行管理的函数 ...

  8. 从入门到精通ARM(4412)-Linux内核驱动编程【下】-李志勇-专题视频课程

    从入门到精通ARM(4412)-Linux内核驱动编程[下]-247人已学习 课程介绍         嵌入式绝对是当前IT领域最炙手可热的话题了.其主要应用领域涵盖与人类相关的各行各业: * 消费电 ...

  9. 嵌入式 Linux 内核驱动开发【The first day: 36093万字】

    嵌入式 Linux 内核驱动开发[1] 嵌入式 Linux 内核驱动开发前言 第1章 Linux 内核裁剪和定制 [1]Linux 内核开发简介 [2] Linux 源码阅读工具 [1.2.1]Sou ...

最新文章

  1. redux的compose源码,中文注释
  2. 无需SherlockActionbar的SlidingMenu使用详解(一)——通过SlidingMenu设置容器并解决滑动卡顿的问题
  3. [NOI2007]货币兑换
  4. oracle 换行符_python实现自动化报表(Oracle/plsql/Excel/多线程)
  5. WMRouter:美团外卖Android开源路由框架
  6. C#自定义控件:WinForm将其它应用程序窗体嵌入自己内部
  7. 有时便去寻找思维以外的精神
  8. 系统架构----(1) 负载均衡
  9. 数独基本规则_数独专题一:幼儿数独启蒙
  10. 设计Twitter时间轴并进行搜索
  11. vnc服务器注销了怎么登陆_vnc登录服务器常见问题
  12. Ext JS 6应用程序Build后出现“c is not a constructor return new c(a[0])”的处理
  13. 黑站利器-中国菜刀的功能介绍和使用方法
  14. matlab线性同余发生器,线性同余法生成伪随机数
  15. 宇视摄像头IP地址修改工具
  16. .NET Core技术研究-通过Roslyn代码分析技术规范提升代码质量
  17. 运行Map Reduce报错Got exception: java.net.ConnectException: Call From master.localdomain/127.0.0.1 to
  18. Win10系统新款便笺便签居然可以这么好用
  19. 全球 26 个主流视频网站高清视频下载全搞定,包括 P 站!
  20. 深度学习实战14(进阶版)-手写文字OCR识别,手写笔记也可以识别了

热门文章

  1. matlab中千分比怎么表示,将%换算为‰ (百分比换算为千分比)
  2. SAP中供应商冻结导致的成本核算时不能确定价格实例
  3. 中小企业融资难的四大原因
  4. 第02章 一个实例初识WorkBench分析流程-卡扣结构的动作分析
  5. CDUT新生赛wp crypto(密码方向
  6. 探寻职业教育中的人工智能技术
  7. String类的intern
  8. String中intern()方法
  9. Linux九阴真经之九阴白骨爪残卷4(自动化运维之ansible用法一)
  10. miranda- core src tree