Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: NVIDIA GT 540M Linux Driver

  1. #1
    Join Date
    Jun 2012
    Beans
    16

    Post NVIDIA GT 540M Linux Driver

    Hello Everyone,

    This post is for people who have sufficient knowledge with handling Nvidia graphics drivers installations

    Particularly with the GT 540M on a Kubuntu 12.10 (64 bit)

    I will explain what I did:
    1. Went to the Nvidia Website ---> http://www.nvidia.com/object/linux-d...32-driver.html

    2. I downloaded NVIDIA-Linux-x86_64-310.32.run

    3. I know I need to shutdown the X server and Nouveau (the reverse engineered nvidia replacement) in order to run the installer

    4. http://us.download.nvidia.com/XFree8...s.html#nouveau
    (an excerpt)

    What is Nouveau, and why do I need to disable it?

    A simple way to prevent Nouveau from loading and performing a kernel modeset is to add configuration directives for the module loader to a file in /etc/modprobe.d/. These configuration directives can technically be added to any file in /etc/modprobe.d/, but many of the existing files in that directory are provided and maintained by your distributor, which may from time to time provide updated configuration files which could conflict with your changes. Therefore, it is recommended to create a new file, for example, /etc/modprobe.d/disable-nouveau.conf, rather than editing one of the existing files, such as the popular /etc/modprobe.d/blacklist.conf. Note that some module loaders will only look for configuration directives in files whose names end with .conf, so if you are creating a new file, make sure its name ends with .conf.

    Whether you choose to create a new file or edit an existing one, the following two lines will need to be added:

    blacklist nouveau
    options nouveau modeset=0


    The first line will prevent Nouveau's kernel module from loading automatically at boot. It will not prevent manual loading of the module, and it will not prevent the X server from loading the kernel module; see "How do I prevent the X server from loading Nouveau?" below. The second line will prevent Nouveau from doing a kernel modeset. Without the kernel modeset, it is possible to unload Nouveau's kernel module, in the event that it is accidentally or intentionally loaded."


    5. Bear with me, i have to write a new file /etc/modprobe.d/
    The PROBLEM is that the directory is write-protected.

    6. How can i copy "disable-nouveau.conf" to /etc/modprobe.d/

    7. My goal is to remove Nouveau and use Nvidia's driver

    8. Now I await further instruction

  2. #2
    Join Date
    Aug 2012
    Beans
    14

    Re: NVIDIA GT 540M Linux Driver

    Quote Originally Posted by MartianTek3 View Post
    Hello Everyone,

    This post is for people who have sufficient knowledge with handling Nvidia graphics drivers installations

    Particularly with the GT 540M on a Kubuntu 12.10 (64 bit)

    I will explain what I did:
    1. Went to the Nvidia Website ---> http://www.nvidia.com/object/linux-d...32-driver.html

    2. I downloaded NVIDIA-Linux-x86_64-310.32.run

    3. I know I need to shutdown the X server and Nouveau (the reverse engineered nvidia replacement) in order to run the installer

    4. http://us.download.nvidia.com/XFree8...s.html#nouveau
    (an excerpt)

    What is Nouveau, and why do I need to disable it?

    A simple way to prevent Nouveau from loading and performing a kernel modeset is to add configuration directives for the module loader to a file in /etc/modprobe.d/. These configuration directives can technically be added to any file in /etc/modprobe.d/, but many of the existing files in that directory are provided and maintained by your distributor, which may from time to time provide updated configuration files which could conflict with your changes. Therefore, it is recommended to create a new file, for example, /etc/modprobe.d/disable-nouveau.conf, rather than editing one of the existing files, such as the popular /etc/modprobe.d/blacklist.conf. Note that some module loaders will only look for configuration directives in files whose names end with .conf, so if you are creating a new file, make sure its name ends with .conf.

    Whether you choose to create a new file or edit an existing one, the following two lines will need to be added:

    blacklist nouveau
    options nouveau modeset=0


    The first line will prevent Nouveau's kernel module from loading automatically at boot. It will not prevent manual loading of the module, and it will not prevent the X server from loading the kernel module; see "How do I prevent the X server from loading Nouveau?" below. The second line will prevent Nouveau from doing a kernel modeset. Without the kernel modeset, it is possible to unload Nouveau's kernel module, in the event that it is accidentally or intentionally loaded."


    5. Bear with me, i have to write a new file /etc/modprobe.d/
    The PROBLEM is that the directory is write-protected.

    6. How can i copy "disable-nouveau.conf" to /etc/modprobe.d/

    7. My goal is to remove Nouveau and use Nvidia's driver

    8. Now I await further instruction
    In the terminal type:

    Code:
    sudo kate /etc/modprobe.d/disable-nouveau.conf
    This will open the Kubuntu text editor with superuser privileges.
    Add whatever text you want and save it.
    Last edited by phthano; February 7th, 2013 at 08:46 AM.

  3. #3
    Join Date
    Jan 2008
    Beans
    32

    Re: NVIDIA GT 540M Linux Driver

    I did the following steps yesterday on 12.10 64bit
    with Nvidia 520GT and it worked for me but only on ubuntu
    (I tried on cubuntu as well but I could not get ride from the nouveau error so I hope it will work with kubuntu)->

    download nvidia binary form there website

    Code:
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get install build-essential linux-headers-$(uname -r)
    sudo apt-get remove --purge nvidia*
    sudo apt-get remove --purge xserver-xorg-video-nouveau

    In the vim / gedit or any other text editor, I added the following lines to /etc/modprobe.d/blacklist.conf :
    Code:
    blacklist amd76x_edac 
    blacklist vga16fb
    blacklist nouveau
    blacklist rivafb
    blacklist nvidiafb
    blacklist rivatv
    restart !

    go to tty1 or any other terminal (not in x) and stop x
    Code:
    sudo service lightdm stop
    now run nvidia driver as root (sudo Nvidia-bla-bla...)
    and follow the instructions (I clicked yes on every option including chage my xorg setting).

    I hope is some one can explain to me how can I make the driver to recompile on kernel update. I just had an update to day and had to manually download the new kernel headers and run the nvidia driver again. the thing is its a bunch of computers we use at work and I don't want to go and manually install the drivers again on every kernel update.

  4. #4
    Join Date
    Jun 2012
    Beans
    16

    Exclamation Re: NVIDIA GT 540M Linux Driver

    n00ne,
    I followed your instructions to the letter (maybe not)

    1.I did
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get install build-essential linux-headers-$(uname -r)
    sudo apt-get remove --purge nvidia*
    sudo apt-get remove --purge xserver-xorg-video-nouveau

    2.Then i gave superuser privileges to Kate in order to edit the blacklist.conf

    While editing the configuration file should i erase everything in it and paste the:
    blacklist amd76x_edac
    blacklist vga16fb
    blacklist nouveau
    blacklist rivafb
    blacklist nvidiafb
    blacklist rivatv

    3.I restarted and went into tty1 (Crtl-Alt-F1)stopped lightdm

    4. Navigated to the ~/Downloads
    5. sudo sh NVIDIA-Linux-x86_64.310.run
    6. It asks something like it will try to modifiy the xorg settings i click yes

    7. This where I got stumped... It told me that some how the nouveau driver was still running (even after i uninstalled it )

    8. Now my laptop is abit messed up due to this, Now i try to edit
    the blacklist file but its gone wacky no can do

    9. Waiting for more instruction

  5. #5
    Join Date
    Jun 2007
    Beans
    11,047

    Re: NVIDIA GT 540M Linux Driver

    So the question is: Do you have an Optimus system with both an nvidia and intel GPU?:
    Code:
    lspci | grep VGA

  6. #6
    Join Date
    Jun 2012
    Beans
    16

    Re: NVIDIA GT 540M Linux Driver

    Code:
    00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
    00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
    00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
    00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
    00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
    00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
    00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)
    00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b5)
    00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b5)
    00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 (rev b5)
    00:1c.7 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 8 (rev b5)
    00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
    00:1f.0 ISA bridge: Intel Corporation HM67 Express Chipset Family LPC Controller (rev 05)
    00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller (rev 05)
    00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
    01:00.0 VGA compatible controller: NVIDIA Corporation GF108 [GeForce GT 540M] (rev a1)
    01:00.1 Audio device: NVIDIA Corporation GF108 High Definition Audio Controller (rev a1)
    05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 05)
    09:00.0 Network controller: Intel Corporation Centrino Wireless-N 1030 (rev 34)
    0b:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 04)
    No I believe i do not have an Optimus setup only NVIDIA GPU

    * edit Wait! i do have it hmm

  7. #7
    Join Date
    Jan 2008
    Beans
    32

    Re: NVIDIA GT 540M Linux Driver

    Try to disable the built in gpu in the BIOS.

    but I think you will still need to find a way to get ride
    of the nouveau driver.
    I don't know why this proccess fail to disable it properly but it's sounds like the same problem I had with cubuntu. in the end I gave up and installed the regualar ubuntu version and only after fixing the graphic drivers installed cinnamon. so if you won't find any way to stop nouveau
    I'd go with installing fresh ubuntu and try again then install kde.

  8. #8
    Join Date
    Jun 2007
    Beans
    11,047

    Re: NVIDIA GT 540M Linux Driver


  9. #9
    Join Date
    Jun 2012
    Beans
    16

    Re: NVIDIA GT 540M Linux Driver

    Thanks I will try to install bumblebee

  10. #10
    Join Date
    Jun 2012
    Beans
    16

    Re: NVIDIA GT 540M Linux Driver

    Ok Bumblebee is installed

    And previously I had the Nouveau driver removed as shown by n00ne

    But the problem is once i uninstalled that driver, the headers for my programs disappeared I will show ya what i mean...


    Should i reinstall Nouveau and start over ( not going to remove KDE)

    Attached Images Attached Images

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •