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-Sep
    Posts
    5
    I need some help I have been trying to fix this for the longest finally got Bumblebee installed and ti run smoothly. The problem is when I get to the CUDA installation it does not ask me about Samples but instead during the instalation asks me only about the direcroty and if I want to create a symbolic file.

    Code:
    The next command will have no errors if all went well
    modprobe nvidia-uvm       ////       I GET THIS WITH NO ERRORS ...
    
    Now to make the CUDA samples and confirm it works! This make will take a little while...     /// CANNOT FIND SAMPLES ANYWHERE. REINSTALLED CUDA AND NOTHING...
    cd ~/NVIDIA_CUDA-5.5_Samples/NVIDIA_CUDA-5.5_Samples/
    make
    I unistalled by using purge nvidia-*
    then uninstalled bumblebee
    and started the process again ...

    Everything goes fine but still cant get to install the samples I get the following
    Code:
     Driver:   Not Selected
    Toolkit:  Installed in /usr/local/cuda-6.5
    Samples:  Not Supported
    Thanks,
    Last edited by sickn3ss; 2014-09-26 at 19:39.

  2. #2
    Join Date
    2014-Apr
    Location
    Down Under
    Posts
    315
    Quote Originally Posted by in10se View Post
    I need some help I have been trying to fix this for the longest finally got Bumblebee installed and ti run smoothly. The problem is when I get to the CUDA installation it does not ask me about Samples but instead during the instalation asks me only about the direcroty and if I want to create a symbolic file.

    Code:
    The next command will have no errors if all went well
    modprobe nvidia-uvm       ////       I GET THIS WITH NO ERRORS ...
    
    Now to make the CUDA samples and confirm it works! This make will take a little while...     /// CANNOT FIND SAMPLES ANYWHERE. REINSTALLED CUDA AND NOTHING...
    cd ~/NVIDIA_CUDA-5.5_Samples/NVIDIA_CUDA-5.5_Samples/
    make
    I unistalled by using purge nvidia-*
    then uninstalled bumblebee
    and started the process again ...

    Everything goes fine but still cant get to install the samples I get the following
    Code:
     Driver:   Not Selected
    Toolkit:  Installed in /usr/local/cuda-6.5
    Samples:  Not Supported
    Thanks,
    Hi there,

    I see a couple of problems with your setup.

    First:

    Code:
    The next command will have no errors if all went well
    modprobe nvidia-uvm       ////       I GET THIS WITH NO ERRORS ...
    
    Now to make the CUDA samples and confirm it works! This make will take a little while...     /// CANNOT FIND SAMPLES ANYWHERE. REINSTALLED CUDA AND NOTHING...
    cd ~/NVIDIA_CUDA-5.5_Samples/NVIDIA_CUDA-5.5_Samples/
    make
    You are following the first guide, not post 25 as recommended.

    Second
    Code:
    Toolkit:  Installed in /usr/local/cuda-6.5
    You are installing the bleeding edge cuda 6.5 (which is not bad) but you have not altered the commands in the guide to suit the new directories.

    Two guides are in this thread. The guide starting at post 2 will install CUDA 5.5 and the nvidia drivers from the wheezy repo.

    The guide starting at post 25 (the one which should be followed) will install NVIDIA 340.24 and CUDA 6.

    Follow the guide at post 25 and if you decide to mix and match versions and parts of guides, you will need to amend the commands entered to match.
    chown -R us ./base

  3. #3
    Thank you very much staticn0de for your time to make this post, everything went smooth and right now im all set up!!

    and thanks to reintakura for that solution!

  4. #4
    Join Date
    2014-Oct
    Posts
    2

    Angry Two NVIDIA and one Intel graphic cards

    Hi,
    I have the following problem: when I enter this last command
    Code:
    optirun glxspheres64
    , my screen goes totally black and my nvidia vgas start to run on full speed (vents go on full throttle) and after 20s my laptop shuts down. I suppose my hardware causes the peoblem, I have 3VGAs: the integrated intel hd4400, and 2 nvidia gt750M.
    I know that this problem was mention here, but I did everything what staticn0de recomend, but nothing change.
    dmesg has to long output. What you need exactly? I also erase comments from files for the same reason.

    /etc/bumblebee/bumblebee.conf
    Code:
    [bumblebeed]
    VirtualDisplay=:8
    KeepUnusedXServer=false
    ServerGroup=bumblebee
    TurnCardOffAtExit=false
    NoEcoModeOverride=false
    Driver=nvidia
    XorgConfDir=/etc/bumblebee/xorg.conf.d
    
    [optirun]
    Bridge=auto
    VGLTransport=proxy
    PrimusLibraryPath=/usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus
    AllowFallbackToIGC=false
    
    [driver-nvidia]
    KernelDriver=nvidia
    PMMethod=auto
    LibraryPath=/usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/nvidia
    XorgModulePath=/usr/lib/nvidia,/usr/lib/xorg/modules
    XorgConfFile=/etc/bumblebee/xorg.conf.nvidia
    
    [driver-nouveau]
    KernelDriver=nouveau
    PMMethod=auto
    XorgConfFile=/etc/bumblebee/xorg.conf.nouveau
    /etc/bumblebee/xorg.conf.nvidia
    Code:
    Section "ServerLayout"
        Identifier  "Layout0"
        Option      "AutoAddDevices" "false"
        Option      "AutoAddGPU" "false"
    EndSection
    
    Section "Device"
        Identifier  "DiscreteNvidia"
        Driver      "nvidia"
        VendorName  "NVIDIA Corporation"
        BusID "PCI:01:00:0"
        BusID "PCI:07:00:0"
    
        Option "ProbeAllGpus" "false"
    
        Option "NoLogo" "true"
        Option "UseEDID" "false"
        Option "UseDisplayDevice" "none"
        Option "SLI" "AA"
    EndSection
    lspci | egrep 'VGA|3D'
    Code:
    root@kali:~# lspci | egrep 'VGA|3D'
    01:00.0 VGA compatible controller: NVIDIA Corporation Device 0fe4 (rev a1)
    07:00.0 3D controller: NVIDIA Corporation Device 0fe4 (rev a1)
    modinfo nvidia
    Code:
    root@kali:~# modinfo nvidia
    filename:       /lib/modules/3.14-kali1-amd64/updates/dkms/nvidia.ko
    alias:          char-major-195-*
    version:        340.46
    supported:      external
    license:        NVIDIA
    alias:          pci:v000010DEd00000E00sv*sd*bc04sc80i00*
    alias:          pci:v000010DEd00000AA3sv*sd*bc0Bsc40i00*
    alias:          pci:v000010DEd*sv*sd*bc03sc02i00*
    alias:          pci:v000010DEd*sv*sd*bc03sc00i00*
    depends:        drm,i2c-core
    vermagic:       3.14-kali1-amd64 SMP mod_unload modversions 
    parm:           NVreg_Mobile:int
    parm:           NVreg_ResmanDebugLevel:int
    parm:           NVreg_RmLogonRC:int
    parm:           NVreg_ModifyDeviceFiles:int
    parm:           NVreg_DeviceFileUID:int
    parm:           NVreg_DeviceFileGID:int
    parm:           NVreg_DeviceFileMode:int
    parm:           NVreg_RemapLimit:int
    parm:           NVreg_UpdateMemoryTypes:int
    parm:           NVreg_InitializeSystemMemoryAllocations:int
    parm:           NVreg_UsePageAttributeTable:int
    parm:           NVreg_MapRegistersEarly:int
    parm:           NVreg_RegisterForACPIEvents:int
    parm:           NVreg_CheckPCIConfigSpace:int
    parm:           NVreg_EnablePCIeGen3:int
    parm:           NVreg_EnableMSI:int
    parm:           NVreg_MemoryPoolSize:int
    parm:           NVreg_RegistryDwords:charp
    parm:           NVreg_RmMsg:charp
    parm:           NVreg_AssignGpus:charp
    modinfo nvidia-uvm
    Code:
    root@kali:~# modinfo nvidia-uvm
    filename:       /lib/modules/3.14-kali1-amd64/updates/dkms/nvidia-uvm.ko
    supported:      external
    license:        MIT
    depends:        nvidia
    vermagic:       3.14-kali1-amd64 SMP mod_unload modversions
    lsmod
    Code:
    root@kali:~# lsmod
    Module                  Size  Used by
    nls_utf8               12456  1 
    nls_cp437              16553  1 
    vfat                   17185  1 
    fat                    57965  1 vfat
    nouveau              1053347  0 
    ttm                    69667  1 nouveau
    drm_kms_helper         39998  1 nouveau
    drm                   240557  3 ttm,drm_kms_helper,nouveau
    i2c_algo_bit           12751  1 nouveau
    nfnetlink_log          17241  0 
    nfnetlink              12989  1 nfnetlink_log
    binfmt_misc            16949  1 
    loop                   26605  0 
    dm_crypt               22731  0 
    snd_hda_codec_hdmi     45004  1 
    arc4                   12543  2 
    iwldvm                130998  0 
    mac80211              488308  1 iwldvm
    snd_hda_codec_realtek    54360  1 
    snd_hda_codec_generic    59079  1 snd_hda_codec_realtek
    uvcvideo               78910  0 
    iTCO_wdt               12831  0 
    videobuf2_vmalloc      12816  1 uvcvideo
    iTCO_vendor_support    12649  1 iTCO_wdt
    videobuf2_memops       12519  1 videobuf2_vmalloc
    videobuf2_core         35348  1 uvcvideo
    videodev              122088  2 uvcvideo,videobuf2_core
    usb_storage            52037  1 
    media                  18303  2 uvcvideo,videodev
    joydev                 17108  0 
    x86_pkg_temp_thermal    12965  0 
    intel_powerclamp       17159  0 
    coretemp               12854  0 
    kvm_intel             138949  0 
    mxm_wmi                12515  1 nouveau
    kvm                   404503  1 kvm_intel
    snd_hda_intel          39656  5 
    iwlwifi                87784  1 iwldvm
    btusb                  25619  0 
    snd_hda_codec          99921  4 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel
    bluetooth             243618  2 btusb
    psmouse                86464  0 
    snd_hwdep              13148  1 snd_hda_codec
    ideapad_laptop         17499  0 
    sparse_keymap          12760  1 ideapad_laptop
    cfg80211              436618  3 iwlwifi,mac80211,iwldvm
    6lowpan_iphc           16588  1 bluetooth
    snd_pcm                88538  3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
    serio_raw              12849  0 
    lpc_ich                20768  0 
    snd_timer              26606  1 snd_pcm
    i2c_i801               16963  0 
    mfd_core               12601  1 lpc_ich
    evdev                  17489  9 
    snd                    61039  18 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
    i2c_core               24265  6 drm,i2c_i801,drm_kms_helper,i2c_algo_bit,nouveau,videodev
    mei_me                 13446  0 
    rfkill                 18902  4 cfg80211,ideapad_laptop,bluetooth
    soundcore              13026  1 snd
    mei                    50039  1 mei_me
    ac                     12678  0 
    battery                13101  0 
    wmi                    17339  2 mxm_wmi,nouveau
    video                  17804  1 nouveau
    processor              28221  0 
    button                 12944  1 nouveau
    ext4                  489943  1 
    crc16                  12343  2 ext4,bluetooth
    mbcache                13082  1 ext4
    jbd2                   86788  1 ext4
    dm_mod                 89276  1 dm_crypt
    hid_generic            12393  0 
    usbhid                 44481  0 
    hid                    94062  2 hid_generic,usbhid
    sg                     30043  0 
    sd_mod                 44346  5 
    crc_t10dif             12431  1 sd_mod
    crct10dif_pclmul       13348  1 
    crct10dif_common       12356  2 crct10dif_pclmul,crc_t10dif
    crc32_pclmul           12915  0 
    crc32c_intel           21809  0 
    ghash_clmulni_intel    12978  0 
    aesni_intel           151423  0 
    aes_x86_64             16719  1 aesni_intel
    lrw                    12757  1 aesni_intel
    gf128mul               12970  1 lrw
    glue_helper            12690  1 aesni_intel
    ablk_helper            12572  1 aesni_intel
    cryptd                 14560  3 ghash_clmulni_intel,aesni_intel,ablk_helper
    xhci_hcd              111830  0 
    ahci                   29195  2 
    libahci                27103  1 ahci
    alx                    36175  0 
    mdio                   12599  1 alx
    ehci_pci               12472  0 
    ehci_hcd               48517  1 ehci_pci
    libata                169163  2 ahci,libahci
    scsi_mod              186841  4 sg,usb_storage,libata,sd_mod
    usbcore               166472  8 btusb,uvcvideo,usb_storage,ehci_hcd,ehci_pci,usbhid,xhci_hcd
    usb_common             12440  1 usbcore
    thermal                17468  0 
    thermal_sys            27685  5 video,intel_powerclamp,thermal,processor,x86_pkg_temp_thermal
    cat /proc/acpi/bbswitch
    Code:
    root@kali:~# cat /proc/acpi/bbswitch
    cat: /proc/acpi/bbswitch: No such file or directory
    echo $PATH
    Code:
    root@kali:~# echo $PATH
    /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/VirtualGL/bin
    find 2> /dev/null / -name nvidia*.ko
    Code:
    root@kali:~# find 2> /dev/null / -name nvidia*.ko
    /var/lib/dkms/nvidia/340.46/3.14-kali1-amd64/x86_64/module/nvidia.ko
    /var/lib/dkms/nvidia/340.46/3.14-kali1-amd64/x86_64/module/nvidia-uvm.ko
    /lib/modules/3.14-kali1-amd64/updates/dkms/nvidia.ko
    /lib/modules/3.14-kali1-amd64/updates/dkms/nvidia-uvm.ko
    Thak you for help

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
  •