zoukankan      html  css  js  c++  java
  • Disable Nvidia in Lenovo Y470 Debian wheezy

      1、add the apt-key as 'root' (! don't do this as 'sudo' )

    $ su root
    $ wget -O - http://suwako.nomanga.net/suwako.asc | apt-key add -

      2、add the repository to source.list

    $ sudo vim /etc/apt/source.list
    
    # bumblebee
    deb http://suwako.nomanga.net/debian sid main contrib
    deb-src http://suwako.nomanga.net/debian sid main

      3、install bumblebee

    $ sudo apt-get update 
    $ apt-get install bumblebee bumblebee-nvidia

      TIPS: 

    If you are on amd64 architecture and want to run 32 bit applications (e.g. Wine), you need to install virtualgl-libs:i386 package. Blob users should install libgl1-nvidia-glx:i386 package also. But due to bug #640499 it's not possible now. You can use packages from here as a workaround.

      check the official-wiki website:

    http://suwako.nomanga.net/

      or just enter:

    sudo apt-get install virtualgl-libs:i386 libgl1-mesa-glx:i386 libc6:i386

      4、add user to bumblebee group

    $ adduser $(USER) bumblebee

      5、download bbswitch

    $ git clone git://github.com/Bumblebee-Project/bbswitch.git -b hack-lenovo 
    $ cd bbsswitch
    $ sudo mkdir /usr/src/acpi-handle-hack-0.0.1

      6、copy the files to acpi-handle-hack-0.0.1

    $ sudo cp Makefile acpi-handle-hack.c /usr/src/acpi-handle-hack-0.0.1 
    $ sudo cp dkms/acpi-handle-hack.conf /usr/src/acpi-handle-hack-0.0.1/dkms.conf 
    $ sudo dkms add acpi-handle-hack/0.0.1 
    $ sudo dkms build acpi-handle-hack/0.0.1 
    $ sudo dkms install acpi-handle-hack/0.0.1 

      7、reboot

    $ echo acpi-handle-hack | sudo tee -a /etc/modules 
    $ sudo update-initramfs -u 
    $ sudo shutdown -r now

      8、check the nvidia driver after reboot

    $ lspci | grep -i vga
    00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
    01:00.0 VGA compatible controller: NVIDIA Corporation Device 0df6 (rev ff)

      the "rev ff" means nvidia was turned off.

      

  • 相关阅读:
    faster rcnn学习(三)
    too many values to unpack (expected 2)
    RuntimeWarning: overflow encountered in ubyte_scalars
    C#中excel读取和写入
    C#中使用Sql对Excel条件查询
    IIS上部署MVC网站,打开后ExtensionlessUrlHandler-Integrated-4.0解决方法IIS上部署MVC网站,打开后500错误
    C#微信公众平台账号开发,从零到整,步骤详细。
    VS快捷键大全
    ASP.NET将文件写到另一服务器
    开放api接口签名验证
  • 原文地址:https://www.cnblogs.com/plinx/p/3151874.html
Copyright © 2011-2022 走看看