ubuntu下终于安装好了nvidia的gt540显卡驱动。估计好多童鞋怕麻烦都放弃安装了哈。

先看看效果。

~$ lspci |grep -i vga
:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev )
:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 540M] (rev ff)

期间遇到了很多问题,记录一下。

参考链接:【使用 Bumblebee 控制 NVIDIA 双显卡(Ubuntu)】  http://www.linuxidc.com/Linux/2012-09/70418.htm

跟到第五部分:“测试效果”的时候,和作者描述的不同了,出现了一个问题:

执行 optirun glxgears 提示错误:

[ERROR]Cannot access secondary GPU - error: [XORG] (EE) No devices detected.

[ERROR]Aborting because fallback start is disabled.

然后继续查找资料,发现都是修改busid的pci编号。

如:http://www.linuxidc.com/Linux/2013-07/87369.htm

http://forum.ubuntu.org.cn/viewtopic.php?f=42&p=2986284

可是我的配置文件是对的,和他们问题的并不一样,无奈,继续查找资料。

没头绪了,注销、重启、重装,各种折腾。

又跟着 http://www.linuxidc.com/Linux/2012-09/70418.htm 重复做了一遍,这次多更新了下pci信息

sudo update-pciids

这时,问题不同了。

[ERROR]Cannot access secondary GPU, secondary X is not active.

又搜索了一番,还是没找到解决办法,差点儿要放弃了。突然想起安装系统的时候有个ask ubuntu。

找到了http://askubuntu.com/questions/295270/failing-to-initialize-nvidia-gpu

终于看到了一个不同的解决方法,顿时窃喜,怎么也得试一把。【PS:百度找到的真是千篇一律,google又无奈被强~~~ 只能呵呵了】

In order to fix my problem in Ubuntu 13.04, I performed the following:

sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install nvidia-

I then installed bumblebee by the method described by the wiki: https://wiki.ubuntu.com/Bumblebee

To test, I installed mesa-utils, and ran optirun glxgears with great success!

The only thing I would like to check now is whether the bumblebee version offered as default by the repro is the latest 3.2.1 released on the 26th of April. Either way it is not a hassle to upgrade.

ubuntu13和14的驱动差别应该不大,顺便看了下nvidia-319不是最新版本的。 去nvidia看了下,331很新。

sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install nvidia-

哈哈,安装、重启,再次查看vga信息。

lspci | grep -i vga
:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev )
:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 540M] (rev ff)

(rev ff)   貌似成功了。

测试一下:

optirun glxgears

继续:

打开n卡设置:

optirun nvidia-settings -c :

都ok了。

bumblebee的作用是禁用nvidia独立显卡,需要使用独显时,使用”optirun 程序名“手动开启nvidia来运行需要加速的程序。

如optirun vmware

驱动到此全部安装好了,感触很多哇。千万不要轻言放弃。

ubuntu下终于安装好了nvidia的gt540显卡驱动的更多相关文章

  1. Ubuntu下成功安装台式机网卡realtek的rtl8188eu芯片驱动并实现AP功能

    1,下载驱动 https://github.com/lwfinger/rtl8188eu 使用注意: https://github.com/lwfinger/rtl8188eu/issues/3 2. ...

  2. Ubuntu下Zabbix安装及使用问题

    1.configure: error: MySQL library not found MySQL library not found root@kallen:~# apt-get install l ...

  3. Torch7在Ubuntu下的安装与配置

    Torch7的本系列教程的主要目的是介绍Torch的入门使用.今天首先分享一下Torch7的安装.(在Ubuntu14.04安装torch7) 为什么选择Torch Torch的目标是在建立科学算法的 ...

  4. ubuntu下git安装及使用

    ubuntu下git安装及使用   其实,好几个月前,就已经安装好了,可是一直搁置在那儿,所以密码等一些其它细节都忘的差不多了,所以今天就重新部署了一下,并开始积极使用......... 1,git ...

  5. premake Ubuntu下的安装

    premake是个跨平台的编译工具,先看看在Ubuntu下怎么安装. 首先下载,在/usr目录下: sudo wget -O premake-4.4-beta4-linux.tar.gz http:/ ...

  6. linux,windows,ubuntu下git安装与使用

    ubuntu下git安装与使用:首先应该检查本地是否已经安装了git ,如果没有安装的话,在命令模式下输入 sudo apt-get install git 进行安装 输入git命令查看安装状态及常用 ...

  7. ubuntu下如何安装codeblocks集成开发环境

    codeblocks是一个十分优秀的C/C++开发IDE,虽然后起之秀codelite目前来看大有超越之势哦. 不过在ubuntu下安装codeblocks却比较麻烦,不像其他linux发行版,比如s ...

  8. ubuntu下makeinfo安装,其实真正安装的是texinfo包

    操作系统环境:ubuntu 在终端中执行命令:sudo apt-get install texinfo   今天在打包的时候有个包需要 makeinfo,当时就各种搜结果就没有 makeinfo 这个 ...

  9. Ubuntu下软件安装方式、PATH配置、查找安装位置

    Ubuntu 18.04, 安装方式 目前孤知道的Ubuntu下安装软件方式有3种(命令): 1.make 2.apt/apt-get 3.dpkg 方式1基于软件源码安装,需要经历配置(可选).编译 ...

随机推荐

  1. struts2_6_多个struts配置文件的应用

    在大部分应用里,随着应用规模的添加,系统中Action的数量也会大量添加.导致struts.xml配置文件变的很臃肿,为了避免struts.xml文件过于庞大.臃肿,提高struts.xml文件的可读 ...

  2. EasyNVR流媒体服务器接入EasyDSS云视频平台快照上传实现

    EasyNVR拥有接入EasyDSS云平台的功能 接入EasyDSS云平台会定时向云平台上传快照数据,这个快照数据用于云平台向客户端提供快照展示 遇到的问题 由于快照上传的间隔提供认为修改的功能,则我 ...

  3. WebService 简单应用

    Web服务全称:XML Web Service,是一种可编程的应用程序逻辑组件,它可以在Internet或企业网的Web应用程序之间共享.Web服务被设计成能够通过Internet与其它应用程序之间直 ...

  4. windows下的常用命令

    net start ... 启动某个服务 net stop ... 停止某个服务 net start     查看所有启动的服务 services.msc  打开服务的界面 ipconfig     ...

  5. 流畅的python学习笔记:第十一章:抽象基类

    __getitem__实现可迭代对象.要将一个对象变成一个可迭代的对象,通常都要实现__iter__.但是如果没有__iter__的话,实现了__getitem__也可以实现迭代.我们还是用第一章扑克 ...

  6. ubuntu安装opencv(自己编译)

    如果只需要python的,只需pip install opencv-python,然后apt-get一下下面第一点的东东. 1/ sudo apt-get install build-essentia ...

  7. java多线程---基础

    一, java多线程----线程与进程 进程: 程序(任务)的执行过程,拥有资源(共享内存,共享资源)和线程(一个或者多个,至少一个).  例如:打开任务管理器,qq,chrome,都属于进程. 线程 ...

  8. Android 普通okhttp、okhttp utils执行 post get请求,文件上传下载、请求图片

    public class OKHttpActivity extends Activity implements View.OnClickListener { public static final M ...

  9. Canvas动画按钮

    在线演示 本地下载

  10. 使用 HTML5 的 IndexedDB API

    1. [代码]判断是否支持 IndexedDB     var indexedDB = window.indexedDB || window.webkitIndexedDB || window.moz ...