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

如果我输入lspci| grep VGA 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 dpkg --list | egrep '(nvidia|bumbl)' | grep ^ii 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 

所以我想这表明,由于它不知道它是哪一张卡,它没有选择合适的驱动程序……

如果有帮助,计算机也是三星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 

好吧,因为你没有在你的问题中提到你有启用笔记本电脑的优化function,并且根据与其他用户的交互,很明显你陷入了混乱。 需要全新安装,让我向您解释一下

linux中的nvdia驱动程序不支持optimus 。 因此,如果您从任何仓库安装nvidia驱动程序。 您将无法启动GUI。 nvidia的linux驱动程序页面有一个警告,例如The driver won't work with few models (很少有意味着启用了Optimus的显卡)

因此,有一些非官方的工作至少要获得省电function(即关闭独立的GPU)。 第一次成功是由mj-casalogic 。(我不知道他的名字)他的第一个项目被命名为bumblebee然后他更新了它并将其改名为ironhide

然而,铁皮没有很好的设计,它有很多问题。 它现在是废弃的项目。

Bumblebee 3.0是原始大黄蜂项目的一个分支。 它具有更高的稳定性,整个代码被重写为C.现在一个守护进程从启动运行。 自动禁用离散GPU并仅在需要时使用它。 但这与ironhide或早期的bumblebee ironhide 。 你需要做很多事情来实现这个目标。 它更容易重新安装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命令前缀。 喜欢用nvidia卡类型运行glxspheres

 optirun glxspheres 

要运行firefox类型: optirun firefox &


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

相关问题:

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

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

不能在optimus笔记本上使用nvidia显卡/驱动程序

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

PS。 不要使用Ironhide或x-swat作为Optimus图形卡。 人们正在传播过时的信息。

你已经接受了问题的答案,但你有没有解决过这个问题? 如果您没有,并且其他人正在寻找有关让Optimus GT650M与大黄蜂和NVidia专有驱动程序一起工作的分步说明,您应该查看我在这里写的食谱: http : //eternalvoid.net /教程/ Linux的擎天柱,GT650M /

基本上,直到bumblebee 3.0.1和nvidia-current 304.22b都在Ubuntu存储库中,您可能必须遵循类似于我的配方的方法才能使用您的NVidia卡。

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

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

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

我让Bumblebee工作了。 我正在使用Mint 13 64bit Mate Maya,它非常接近Ubuntu 12.04,使用Intel Ivy Bridge hd4000 Intel GPU和Geforce gt 630m GPU以及使用i7-3615QM CPU的三星Series 7 Chronos NP700z5c Optimus笔记本电脑。

这个网站提供了很多帮助: 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=106262和http://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是薄荷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 

在联想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显卡?