Results 1 to 50 of 376

Thread: (Guide) Installing Nvidia + Bumblebee + CUDA for Optimus enabled Laptops

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    2014-Nov
    Posts
    18

    apt-get install complains -- 'nvidia-installer --uninstall'

    I followed Post 25 to download and install the nvidia-drivers from nvidia's website. Now, each time I run 'apt-get install' to install something, apt-get asks me to run 'nvidia-installer --uninstall'. Do you folks also face the same issue? I have commented out the wheezy-backport from sources.list but still the problem persists.

    Code:
    │                                                                                                                                   │  
    │ The nvidia-installer program was found on this system. This is probably left over from an earlier installation of the non-free   │  
    │ NVIDIA graphics driver, installed using the NVIDIA *.run file directly. This installation is incompatible with the Debian        │  
    │ packages. To install the Debian packages safely, it is therefore necessary to undo the changes performed by nvidia-installer.    │  
    │                                                                                                                                  │  
    │ Run "nvidia-installer --uninstall"?
    │                                       <Yes>                                          <No>                                        │
    Last edited by nikkipolya; 2014-11-08 at 07:54.

  2. #2
    Join Date
    2014-Nov
    Posts
    18
    Ok, I've solved the 'nvidia-installer --uninstall' problem. There was the nvidia-installer-cleanup package in 'iF' status. Doing the following solved the problem:
    Code:
    apt-get purge nvidia-installer-cleanup

  3. #3
    Join Date
    2014-Nov
    Posts
    18
    Hi static0node,

    Here's my configuration:

    Code:
    root@kali:~# cat /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
    # Directory with a dummy config file to pass as a -configdir to secondary X
    XorgConfDir=/etc/bumblebee/xorg.conf.d
    
    ## Client options. Will take effect on the next optirun executed.
    [optirun]
    # Acceleration/ rendering bridge, possible values are auto, virtualgl and
    # primus.
    Bridge=auto
    # The method used for VirtualGL to transport frames between X servers.
    # Possible values are proxy, jpeg, rgb, xv and yuv.
    VGLTransport=proxy
    # List of paths which are searched for the primus libGL.so.1 when using
    # the primus bridge
    PrimusLibraryPath=/usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus
    # 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
    # https://github.com/Bumblebee-Project/Bumblebee/wiki/Comparison-of-PM-methods
    
    ## 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
    PMMethod=auto
    # colon-separated path to the nvidia libraries
    LibraryPath=/usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/nvidia
    # comma-separated path of the directory containing nvidia_drv.so and the
    # default Xorg modules path
    XorgModulePath=/usr/lib/nvidia,/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
    
    root@kali:~#
    And strangely, none of the colon separated directories in my 'LibraryPath' exist!
    Code:
    root@kali:~# cd /usr/lib/x86_64-linux-gnu/nvidia
    bash: cd: /usr/lib/x86_64-linux-gnu/nvidia: No such file or directory
    root@kali:~# cd /usr/lib/i386-linux-gnu/nvidia
    bash: cd: /usr/lib/i386-linux-gnu/nvidia: No such file or directory
    root@kali:~# cd /usr/lib/nvidia
    bash: cd: /usr/lib/nvidia: No such file or directory
    root@kali:~#
    I see that nVidia libraries are in /usr/lib. If I include that in my LibraryPath, then optirun glxgears dumps.
    Code:
    /usr/lib/libkwinnvidiahack.so.4
    /usr/lib/libkwinnvidiahack.so.4.8.0
    /usr/lib/libnvidia-cfg.so
    /usr/lib/libnvidia-cfg.so.1
    /usr/lib/libnvidia-cfg.so.340.46
    /usr/lib/libnvidia-compiler.so.340.46
    /usr/lib/libnvidia-eglcore.so.340.46
    /usr/lib/libnvidia-encode.so
    /usr/lib/libnvidia-encode.so.1
    /usr/lib/libnvidia-encode.so.340.46
    /usr/lib/libnvidia-fbc.so
    /usr/lib/libnvidia-fbc.so.1
    /usr/lib/libnvidia-fbc.so.340.46
    /usr/lib/libnvidia-glcore.so.340.46
    /usr/lib/libnvidia-glsi.so.340.46
    /usr/lib/libnvidia-ifr.so
    /usr/lib/libnvidia-ifr.so.1
    Code:
    root@kali:~# optirun -vv glxgears
    [22184.002479] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
    [22184.003239] [INFO]Configured driver: nvidia
    [22184.003544] [DEBUG]optirun version 3.2.1 starting...
    [22184.003587] [DEBUG]Active configuration:
    [22184.003621] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
    [22184.003658] [DEBUG] X display: :8
    [22184.003692] [DEBUG] LD_LIBRARY_PATH: /usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/nvidia:/usr/lib
    [22184.003729] [DEBUG] Socket path: /var/run/bumblebee.socket
    [22184.003762] [DEBUG] Accel/display bridge: auto
    [22184.003797] [DEBUG] VGL Compression: proxy
    [22184.003829] [DEBUG] VGLrun extra options: 
    [22184.003863] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus
    [22184.003969] [DEBUG]Using auto-detected bridge virtualgl
    [22191.468977] [INFO]Response: Yes. X is active.
    
    [22191.469014] [INFO]Running application using virtualgl.
    [22191.469293] [DEBUG]Process vglrun started, PID 5223.
    X Error of failed request:  BadWindow (invalid Window parameter)
      Major opcode of failed request:  137 (NV-GLX)
      Minor opcode of failed request:  4 ()
      Resource id in failed request:  0x200002
      Serial number of failed request:  38
      Current serial number in output stream:  38
    [22191.630283] [DEBUG]SIGCHILD received, but wait failed with No child processes
    [22191.630313] [DEBUG]Socket closed.
    [22191.630332] [DEBUG]Killing all remaining processes.
    root@kali:~# optirun -b primus -vv glxgears
    [22199.144120] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
    [22199.144849] [INFO]Configured driver: nvidia
    [22199.145104] [DEBUG]optirun version 3.2.1 starting...
    [22199.145143] [DEBUG]Active configuration:
    [22199.145164] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
    [22199.145184] [DEBUG] X display: :8
    [22199.145205] [DEBUG] LD_LIBRARY_PATH: /usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/nvidia:/usr/lib
    [22199.145226] [DEBUG] Socket path: /var/run/bumblebee.socket
    [22199.145247] [DEBUG] Accel/display bridge: primus
    [22199.145268] [DEBUG] VGL Compression: proxy
    [22199.145292] [DEBUG] VGLrun extra options: 
    [22199.145311] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus
    [22207.331180] [INFO]Response: Yes. X is active.
    
    [22207.331221] [INFO]Running application using primus.
    [22207.331496] [DEBUG]Process glxgears started, PID 5250.
    X Error of failed request:  BadWindow (invalid Window parameter)
      Major opcode of failed request:  137 (NV-GLX)
      Minor opcode of failed request:  4 ()
      Resource id in failed request:  0x200002
      Serial number of failed request:  38
      Current serial number in output stream:  38
    [22207.434966] [DEBUG]SIGCHILD received, but wait failed with No child processes
    [22207.434987] [DEBUG]Socket closed.
    [22207.435001] [DEBUG]Killing all remaining processes.
    root@kali:~#

Similar Threads

  1. Replies: 6
    Last Post: 2017-01-04, 19:39
  2. NVIDIA and CUDA with OPTIMUS
    By jolubedju in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2014-06-03, 10:52
  3. Kali Linux 1.05 nvidia optimus cuda and pyrit
    By gfbaggio in forum TroubleShooting Archive
    Replies: 3
    Last Post: 2014-04-28, 20:15

Posting Permissions

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