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. WebApi 传参详解(转)

    一.无参数Get请求 一般的get请求我们可以使用jquery提供的$.get() 或者$.ajax({type:"get"}) 来实现: 请求的后台Action方法仍为上篇文章中 ...

  2. js实现网页中的"运行代码"功能

    <!DOCTYPE html> <html> <head> <meta charset='utf8' /> <title>网页中的运行代码功 ...

  3. Grunt 学习笔记【1】----基础知识

    题记:虽然现在大家都在推Webpack,无奈业务需要,因此研究下Grunt. 说明:本文是基于Grunt 0.4.5版本. 一 说明 为何要用构建工具? 一句话:自动化.对于需要反复重复的任务,例如压 ...

  4. BZOJ1815: [Shoi2006]color 有色图

    BZOJ1815: [Shoi2006]color 有色图 Description Input 输入三个整数N,M,P 1< = N <= 53 1< = M < = 1000 ...

  5. python网络爬虫之如何识别验证码

    有些网站的登录方式是验证码登录的方式,比如今天我们要测试的网站专利检索及分析. http://www.pss-system.gov.cn/sipopublicsearch/portal/uilogin ...

  6. Java for LeetCode 099 Recover Binary Search Tree

    Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing ...

  7. iOS app submission : missing 64-bit support

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

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

  9. fragment静态加载

    import android.os.Bundle; import android.support.v4.app.FragmentActivity; import android.util.Log; / ...

  10. HTML5/CSS3简易版俄罗斯方块游戏

    在线演示 本地下载