如何让Ubuntu识别我的nvidia显卡?


14

如果我lspci| grep VGA在终端输入,我得到以下输出:

00:02.0 VGA compatible controller: Intel Corporation Ivy Bridge Graphics Controller(rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation Device 0fd1 (rev a1)

当我安装nvidia-current时,它将安装259.49,这是650m的错误驱动程序(259.59是正确的)。有什么想法吗?

编辑:我采用了此命令dpkg --list | egrep '(nvidia|bumbl)' | grep ^ii,其中输出

ii  bumblebee                              3.0-2~preciseppa1                       nVidia Optimus support
ii  bumblebee-nvidia                       3.0-2~preciseppa1                       nVidia Optimus support using the proprietary NVIDIA driver
ii  nvidia-common                          1:0.2.44                                Find obsolete NVIDIA drivers
ii  nvidia-current                         295.40-0ubuntu1                         NVIDIA binary Xorg driver, kernel module and VDPAU library
ii  nvidia-settings                        295.33-0ubuntu1                         Tool of configuring the NVIDIA graphics driver

所以我想这表明,由于不知道是哪张卡,因此无法选择正确的驱动程序...

此外,如果这有帮助,则计算机为Samsung Series 7(700Z7C)

运行optirun glxspheres在kern.log中给出此输出

NVRM: GPU at 0000:01:00.0 has fallen off the bus.
NVRM: GPU at 0000:01:00.0 has fallen off the bus.
NVRM: RmInitAdapter failed! (0x26:0xffffffff:1170)
NVRM: rm_init_adapter(0) failed

是笔记本电脑吗?您是否拥有nvidia optimus技术?
Web-E

是的,它是一台笔记本电脑,配备了NVIDIA
Optimus

Answers:


14

好的,正如您在问题中没有提到的那样,您已经启用了Optimus笔记本电脑,并且根据与其他用户的互动,很明显您陷入了混乱。需要全新安装,让我向您解释

optimusLinux中的nvdia驱动程序不支持。因此,如果您从任何存储库中安装nvidia驱动程序。您将无法启动到GUI。nvidia的linux驱动程序页面上有类似的警告The driver won't work with few models(很少表示启用了optimus的图形卡)

因此,有一些非官方的工作来至少获得节电功能(即关闭离散GPU)。第一次成功是(mj-casalogic。我不知道他的名字)他的第一个项目名为,bumblebee然后他对其进行了更新并重命名了ironhide

但是,铁皮的设计不够好,存在很多问题。现在是废弃项目。

Bumblebee 3.0是原始Bumblebee项目的分支。它具有更高的稳定性,整个代码都用C编写。现在,守护程序从启动处运行。自动禁用离散GPU,仅在需要时使用它。但这与ironhide或更早版本不兼容bumblebee。您必须做很多事情才能使它正常工作。它更容易重新安装ubuntu。

全新安装ubuntu后,请执行以下操作

有关安装Bumblebee的说明,以关闭离散GPU并仅在需要时启用

  1. 在终端中输入以下内容:

    sudo add-apt-repository ppa:bumblebee/stable
    sudo apt-get update
    
  2. 要使用专有的nvidia驱动程序安装Bumblebee:

    对于12.04-13.04

    sudo apt-get install bumblebee bumblebee-nvidia virtualgl linux-headers-generic
    

    对于13.10:

    sudo apt-get install bumblebee bumblebee-nvidia primus linux-headers-generic
    
  3. 重启。


如果您只想禁用nvidia卡,则无需学习以下内容

使用说明:

要使用nvidia卡运行程序,请optirun在终端中使用前缀命令。喜欢以glxspheresnvidia卡类型运行

optirun glxspheres

要运行Firefox,请输入: optirun firefox &


要获取图形卡型号,请安装mesa-utils 安装mesa-utils请记住,显卡型号将不是nvidia one。这将是intel,因为在nvidia optimus中nvidia卡不会直接暴露。Nvidia卡通过英特尔®有线连接

链接的问题:

Nvidia Optimus卡在12.04中的支持程度如何?

Ubuntu是否支持采用Optimus技术的NVIDIA GeForce?

无法在Optimus笔记本电脑上使用nvidia卡/驱动程序


1
做了一个全新的安装,输入命令,运行optirun glxspheres,得到了:[ERROR]Cannot access secondary GPU - error: [XORG] (EE) NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:1:0:0. Please [ERROR]Aborting because fallback start is disabled.
twf0001 2012年

我的感觉是,由于Ubuntu不知道哪种型号,因此它如何知道要安装的驱动程序(除非我不正确地理解该概念)。我知道这是自我购买以来的650M,但Ubuntu在任何地方都没有显示。
twf0001 2012年

ubuntu确实如此。请参阅的输出lspci | grep VGA。Sepero发布了650m的大黄蜂问题。驱动程序是最近发布的。回购将需要几天的时间。驱动程序链接。295.53不支持您的产品,而295.59支持。请等待几天。而且您还缺了一点,所以Nvidia 650m不会在中列出System info。因为英特尔已连接到笔记本电脑显示屏,所以nvidia已连接至英特尔。nvidia不会与显示管理器接触。
Web-E

要将显卡从更改为unknownintel您需要我发布的包装。
Web-E

如果有误,请纠正我(我lspci | grep VGA在原始帖子中发布了输出),难道不是说NVIDIA Corporation Device [GeForce 650M]不是0fd1吗?我猜这是我在想电脑无法识别我的卡的地方。
twf0001 2012年

6

您要为系统使用Bumblebee打包的驱动程序。您应该可以按照与此处相同的步骤解决问题:Ubuntu 12.04上的可切换笔记本电脑图形问题?

PS。不要将铁皮或x-swat用于Optimus图形卡。人们正在传播过时的信息。


我按照他们在程序中所说的做了,但是,当我运行时,optirun glxspheres我得到了这个输出。 [ERROR]Cannot access secondary GPU - error: Could not load GPU driver [ERROR]Aborting because fallback start is disabled.查看sudo apt-get update输出,我看到了(其中3个Sources,amd64和i386) W: Failed to fetch http://ppa.launchpad.net/mj-casalogic/bumblebee/ubuntu/dists/precise/main/binary-i386/Packages 404 Not Found
twf0001 2012年

同样,无法识别GPU模型的原始问题也没有得到解决
twf0001 2012年

我以为您说您拥有650M,这是什么意思?您似乎正遭受与此人相同的错误:Nvidia Geforce GT 650M错误
Sepero 2012年

我知道它是650M,但计算机不会显示此内容
twf0001 2012年

它也不会在我的系统上显示。我有一台GT 630M
Sepero,2012年

1

您已经接受了问题的答案,但是您是否解决了这个问题?如果您还没有这样做,并且对于其他正在寻找使Optimus GT650M与大黄蜂和NVidia专有驱动程序一起使用的逐步说明的人,您应该查看我在此处编写的食谱:http : //eternalvoid.net / tutorials / linux-optimus-gt650m /

基本上,在Bumblebee 3.0.1和nvidia-current 304.22b存储在Ubuntu存储库中之前,您可能必须遵循与我的食谱类似的方法才能使用NVidia卡。

简而言之,这涉及到安装NVidia驱动程序的新测试版(正式版本),但是在安装该驱动程序时必须使用许多命令行开关,以便将其安装在非标准位置,因此不会删除所有现有的OpenGL内容。

然后,您必须从其git存储库中安装bumblebee 3.0.1,并将其配置为能够找到所有NVidia库,而且还可以在访问帧缓冲区时使用Intel驱动程序。

我提供的链接上有完整说明,但是请仅在全新安装的Ubuntu上关注它们,所有内容均已备份到其他地方。


0

我让大黄蜂工作。我在使用Intel Ivy Bridge hd4000 Intel GPU和Geforce gt 630m GPU并使用i7-3615QM CPU的Samsung Series 7 Chronos NP700z5c Optimus笔记本电脑上使用Mint 13 64bit Mate Maya,它非常接近Ubuntu 12.04。

该站点提供了很多帮助:http : //www.noobslab.com/2012/06/nvidia-drivers-collection-for.html

进行步骤7以外的所有步骤,然后您必须在终端中执行以下操作:

sudo gedit /etc/modprobe.d/blacklist.conf

现在,将以下行添加到文件末尾并保存:

blacklist amd76x_edac
blacklist vga16fb
blacklist nouveau
blacklist rivafb
blacklist nvidiafb
blacklist rivatv

您将需要在终端中执行以下操作:

sudo gedit /etc/bumblebee/bumblebee.conf

在文件中更改它们并保存:

Driver="empty or whatever" to  Driver=nvidia
kernelDriver=nvidia-current to KernelDriver=nvidia

sudo update-initramfs -u

启动可能有点麻烦,必须先Ctrl+ Alt+ F6然后Ctrl+ Alt+ F8才能摆脱对Mint 13的恐慌。

Ubuntu的使用不同的密钥Ctrl+ Alt+ F1,然后Ctrl+ Alt+ F7

sudo reboot

然后运行您的更新管理器。我的大黄蜂直到OS推出新产品后才起作用。

optirun glxgears在终端中尝试。

这些网站对我的三星有很大帮助:

http://forums.linuxmint.com/viewtopic.php?f=59&t=106262http://openideals.org/2012/04/15/tuning-ubuntu-on-samsung-series-7-laptop/

我跑了:

optirun firefox    and played www.quakelive.com 
optirun glxgears, and optirun glxspheres.

pluma是mint 13 mate maya的文本编辑器。

该文件如下所示:

sudo pluma /etc/modprobe.d/blacklist.conf

# This file lists those modules which we don't want to be loaded by
# alias expansion, usually so some other driver will be loaded for the
# device instead.

# evbug is a debug tool that should be loaded explicitly
blacklist evbug

# these drivers are very simple, the HID drivers are usually preferred
blacklist usbmouse
blacklist usbkbd

# replaced by e100
blacklist eepro100

# replaced by tulip
blacklist de4x5

# causes no end of confusion by creating unexpected network interfaces
blacklist eth1394

# snd_intel8x0m can interfere with snd_intel8x0, doesn't seem to support much
# hardware on its own (Ubuntu bug #2011, #6810)
blacklist snd_intel8x0m

# Conflicts with dvb driver (which is better for handling this device)
blacklist snd_aw2

# causes failure to suspend on HP compaq nc6000 (Ubuntu: #10306)
blacklist i2c_i801

# replaced by p54pci
blacklist prism54

# replaced by b43 and ssb.
blacklist bcm43xx

# most apps now use garmin usb driver directly (Ubuntu: #114565)
blacklist garmin_gps

# replaced by asus-laptop (Ubuntu: #184721)
blacklist asus_acpi

# low-quality, just noise when being used for sound playback, causes
# hangs at desktop session start (Ubuntu: #246969)
blacklist snd_pcsp

# ugly and loud noise, getting on everyone's nerves; this should be done by a
# nice pulseaudio bing (Ubuntu: #77010)
blacklist pcspkr

# EDAC driver for amd76x clashes with the agp driver preventing the aperture
# from being initialised (Ubuntu: #297750). Blacklist so that the driver
# continues to build and is installable for the few cases where its
# really needed.

blacklist amd76x_edac
blacklist vga16fb
blacklist nouveau
blacklist rivafb
blacklist nvidiafb
blacklist rivatv









 Here is what this file look like,
sudo pluma /etc/bumblebee/bumblebee.conf

# Configuration file for Bumblebee. Values should **not** be put between quotes
## Server options. Any change made in this section will need a server restart
# to take effect.
[bumblebeed]
# The secondary Xorg server DISPLAY number
VirtualDisplay=:8
# Should the unused Xorg server be kept running? Set this to true if waiting
# for X to be ready is too long and don't need power management at all.
KeepUnusedXServer=false
# The name of the Bumbleblee server group name (GID name)
ServerGroup=bumblebee
# Card power state at exit. Set to false if the card shoud be ON when Bumblebee
# server exits.
TurnCardOffAtExit=false
# The default behavior of '-f' option on optirun. If set to "true", '-f' will
# be ignored.
NoEcoModeOverride=false
# The Driver used by Bumblebee server. If this value is not set (or empty),
# auto-detection is performed. The available drivers are nvidia and nouveau
# (See also the driver-specific sections below)
Driver=nvidia

## Client options. Will take effect on the next optirun executed.
[optirun]
# The method used for VirtualGL to transport frames between X servers.
# Possible values are proxy, jpeg, rgb, xv and yuv.
VGLTransport=proxy
# Should the program run under optirun even if Bumblebee server or nvidia card
# is not available?
AllowFallbackToIGC=false
# Driver-specific settings are grouped under [driver-NAME]. The sections are
# parsed if the Driver setting in [bumblebeed] is set to NAME (or if auto-
# detection resolves to NAME).
# PMMethod: method to use for saving power by disabling the nvidia card, valid
# values are: auto - automatically detect which PM method to use
#         bbswitch - new in BB 3, recommended if available
#       switcheroo - vga_switcheroo method, use at your own risk
#             none - disable PM completely

## Section with nvidia driver specific options, only parsed if Driver=nvidia
[driver-nvidia]
# Module name to load, defaults to Driver if empty or unset
KernelDriver=nvidia
Module=nvidia
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia-current:/usr/lib32/nvidia-current
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia-current/xorg,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia
## Section with nouveau driver specific options, only parsed if Driver=nouveau
[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau

0

在带有ThinkPad T430的NVIDIA GPU型号NVS 5400M的Ubuntu 15.10上,我需要做的是:

sudo apt-get install nvidia-352

在哪里nvidia-352找到最新的驱动程序:

sudo apt-cache search nvidia-

GUI选项将运行:

software-properties-gtk

然后在“其他驱动程序”标签下,获取显示“已测试”的GPU驱动程序。

重启后,我检查它是否如以下所述正常工作:如何检查Ubuntu是否正在使用NVIDIA图形卡?

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.