Results 1 to 15 of 15

Thread: issue in detecting nvidia gpu in kali

  1. #1
    Join Date
    2014-Apr
    Posts
    2

    issue in detecting nvidia gpu in kali

    I have two graphical cards in my computer : nvidia 740m et intel hd.Both are detected and run perfectly under Windows 8 but when i test it in kali linux, i only detect intel hd.

    the "lspci | grep -i vga" command give : 00:02.0 VGA compatible controller: Intel Corporation Haswell Integrated Graphics Controller (rev 06)
    Code:
    root@kali:~# lsmod | grep -i nou*
    nouveau               888849  0 
    mxm_wmi                12515  1 nouveau
    ttm                    65195  1 nouveau
    drm_kms_helper         35855  2 i915,nouveau
    drm                   244416  5 ttm,i915,drm_kms_helper,nvidia,nouveau
    i2c_algo_bit           12751  2 i915,nouveau
    i2c_core               24129  8 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit,nvidia,nouveau,videodev
    wmi                    17339  3 hp_wmi,mxm_wmi,nouveau
    video                  17799  2 i915,nouveau
    button                 12944  2 i915,nouveau
    this is the output for lspci command :

    Code:
    root@kali:~# lspci -v
    00:00.0 Host bridge: Intel Corporation Haswell DRAM Controller (rev 06)
        Subsystem: Hewlett-Packard Company Device 1963
        Flags: bus master, fast devsel, latency 0
        Capabilities: [e0] Vendor Specific Information: Len=0c <?>
    
    00:01.0 PCI bridge: Intel Corporation Haswell PCI Express x16 Controller (rev 06) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=01, subordinate=06, sec-latency=0
        I/O behind bridge: 00005000-00005fff
        Memory behind bridge: d2000000-d2ffffff
        Prefetchable memory behind bridge: 00000000a0000000-00000000bfffffff
        Capabilities: [88] Subsystem: Hewlett-Packard Company Device 1963
        Capabilities: [80] Power Management version 3
        Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [a0] Express Root Port (Slot+), MSI 00
        Capabilities: [100] Virtual Channel
        Capabilities: [140] Root Complex Link
        Capabilities: [d94] #19
        Kernel driver in use: pcieport
    
    00:02.0 VGA compatible controller: Intel Corporation Haswell Integrated Graphics Controller (rev 06) (prog-if 00 [VGA controller])
        Subsystem: Hewlett-Packard Company Device 1963
        Flags: bus master, fast devsel, latency 0, IRQ 47
        Memory at d3000000 (64-bit, non-prefetchable) [size=4M]
        Memory at c0000000 (64-bit, prefetchable) [size=256M]
        I/O ports at 6000 [size=64]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [d0] Power Management version 2
        Capabilities: [a4] PCI Advanced Features
        Kernel driver in use: i915
    
    
    
    00:1c.0 PCI bridge: Intel Corporation Lynx Point PCI Express Root Port #1 (rev d5) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=07, subordinate=07, sec-latency=0
        Capabilities: [40] Express Root Port (Slot-), MSI 00
        Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
        Capabilities: [90] Subsystem: Hewlett-Packard Company Device 1963
        Capabilities: [a0] Power Management version 3
        Kernel driver in use: pcieport
    
    00:1c.2 PCI bridge: Intel Corporation Lynx Point PCI Express Root Port #3 (rev d5) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=08, subordinate=08, sec-latency=0
        Memory behind bridge: d3600000-d36fffff
        Capabilities: [40] Express Root Port (Slot+), MSI 00
        Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
        Capabilities: [90] Subsystem: Hewlett-Packard Company Device 1963
        Capabilities: [a0] Power Management version 3
        Kernel driver in use: pcieport
    
    00:1c.3 PCI bridge: Intel Corporation Lynx Point PCI Express Root Port #4 (rev d5) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=09, subordinate=0e, sec-latency=0
        I/O behind bridge: 00004000-00004fff
        Memory behind bridge: d1000000-d1ffffff
        Prefetchable memory behind bridge: 00000000d0000000-00000000d0ffffff
        Capabilities: [40] Express Root Port (Slot+), MSI 00
        Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
        Capabilities: [90] Subsystem: Hewlett-Packard Company Device 1963
        Capabilities: [a0] Power Management version 3
        Kernel driver in use: pcieport
    
    00:1c.6 PCI bridge: Intel Corporation Lynx Point PCI Express Root Port #7 (rev d5) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=0f, subordinate=0f, sec-latency=0
        I/O behind bridge: 00003000-00003fff
        Memory behind bridge: d3500000-d35fffff
        Prefetchable memory behind bridge: 00000000d3400000-00000000d34fffff
        Capabilities: [40] Express Root Port (Slot+), MSI 00
        Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
        Capabilities: [90] Subsystem: Hewlett-Packard Company Device 1963
        Capabilities: [a0] Power Management version 3
        Kernel driver in use: pcieport
    
    00:1f.2 SATA controller: Intel Corporation Lynx Point 6-port SATA Controller 1 [AHCI mode] (rev 05) (prog-if 01 [AHCI 1.0])
        Subsystem: Hewlett-Packard Company Device 1963
        Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 44
        I/O ports at 6088 [size=8]
        I/O ports at 6094 [size=4]
        I/O ports at 6080 [size=8]
        I/O ports at 6090 [size=4]
        I/O ports at 6060 [size=32]
        Memory at d371b000 (32-bit, non-prefetchable) [size=2K]
        Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [70] Power Management version 3
        Capabilities: [a8] SATA HBA v1.0
        Kernel driver in use: ahci
    
    00:1f.3 SMBus: Intel Corporation Lynx Point SMBus Controller (rev 05)
        Subsystem: Hewlett-Packard Company Device 1963
        Flags: medium devsel, IRQ 18
        Memory at d3719000 (64-bit, non-prefetchable) [size=256]
        I/O ports at 6040 [size=32]
    
    01:00.0 3D controller: NVIDIA Corporation Device 1292 (rev a1)
        Subsystem: Hewlett-Packard Company Device 1963
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at d2000000 (32-bit, non-prefetchable) [size=16M]
        Memory at a0000000 (64-bit, prefetchable) [size=256M]
        Memory at b0000000 (64-bit, prefetchable) [size=32M]
        I/O ports at 5000 [size=128]
        Expansion ROM at b2000000 [disabled] [size=512K]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express Endpoint, MSI 00
        Capabilities: [100] Virtual Channel
        Capabilities: [128] Power Budgeting <?>
        Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
        Capabilities: [900] #19
        Kernel driver in use: nvidia
    
    08:00.0 Network controller: Ralink corp. Device 3290
        Subsystem: Hewlett-Packard Company Device 18ec
        Flags: bus master, fast devsel, latency 0, IRQ 18
        Memory at d3610000 (32-bit, non-prefetchable) [size=64K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable- Count=1/32 Maskable- 64bit+
        Capabilities: [70] Express Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Device Serial Number 00-00-67-86-6c-8b-18-70
        Kernel driver in use: rt2800pci
    
    08:00.1 Bluetooth: Ralink corp. Device 3298
        Subsystem: Hewlett-Packard Company Device 18ec
        Flags: bus master, fast devsel, latency 0, IRQ 11
        Memory at d3600000 (32-bit, non-prefetchable) [size=64K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable- Count=1/32 Maskable- 64bit+
        Capabilities: [70] Express Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Device Serial Number 00-00-68-86-6c-8b-18-70
    
    09:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device 5227 (rev 01)
        Subsystem: Hewlett-Packard Company Device 1963
        Flags: bus master, fast devsel, latency 0, IRQ 41
        Memory at d1000000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Device Serial Number 00-00-00-01-00-4c-e0-00
        Capabilities: [150] Latency Tolerance Reporting
        Capabilities: [158] #1e
        Kernel driver in use: rtsx_pci
    
    0f:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 0c)
        Subsystem: Hewlett-Packard Company Device 1963
        Flags: bus master, fast devsel, latency 0, IRQ 42
        I/O ports at 3000 [size=256]
        Memory at d3500000 (64-bit, non-prefetchable) [size=4K]
        Memory at d3400000 (64-bit, prefetchable) [size=16K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Endpoint, MSI 01
        Capabilities: [b0] MSI-X: Enable- Count=4 Masked-
        Capabilities: [d0] Vital Product Data
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Virtual Channel
        Capabilities: [160] Device Serial Number 01-00-00-00-68-4c-e0-00
        Capabilities: [170] Latency Tolerance Reporting
        Kernel driver in use: r8169
    you can see that the keyword Nvidia is present in the output, but when i use Nvidia-detect , it give me no nvidia gpu detected.

    what could be the problem??

  2. #2
    Join Date
    2014-Apr
    Posts
    2
    same problem with me,

    i use asus k46cb with nvida gforce GT740m

    still wait for the solution

  3. #3
    Join Date
    2014-Apr
    Location
    Down Under
    Posts
    315
    I was able to make optirun work (740M would process the graphics for software like glxspheres) under Kali.

    Just need to add the wheezy back ports repo and install bumblebee and nvidia-glx (instructions on the bumblebee wiki for debian)

    I was not able to make cudahashcat or any other type of cuda work though.

    Would not error out, just would not detect the nvidia card.

    I've been trying for over a week. Hopefully someone figures out cuda on optimus based laptops.

  4. #4
    Join Date
    2014-Feb
    Posts
    14
    whitch kali version you have ? staticn0de i have the 1.0.6 64bit version. so i downgraded to 32 bit version or it possible to install to 64 bit version?

  5. #5
    Join Date
    2014-Apr
    Location
    Down Under
    Posts
    315
    1.0.6 fully updated 64Bit. I've never tried the 32bit.

    Keep in mind that makes the drivers work and makes optirun work. But cuda and cudahashcat won't work. But I guess it's a step in the right direction.

    Something along these lines (sorry, on my phone)

    Fully update kali

    Nano /etc/apt/sources.list

    Add:

    deb http://ftp.debian.org/debian wheezy-backports main contrib non-free

    Save

    Apt-get update

    Apt-get install Linux-headers-$(uname - r)

    cd ~
    Wget http://sourceforge.net/projects/virt....3.3_amd64.deb

    dpkg - I virtualgl_2.3.3_amd64.deb

    Nano /etc/profile

    Add /opt/virtualgl/bin to your path (double check this location, the folder will contain glxspheres64.)

    Save and logout and then in.

    sudo dpkg --add-architecture i386 && sudo apt-get update && sudo apt-get install -t wheezy-backports bumblebee-nvidia primus primus-libs:i386

    That will take a while.

    Use optirun glxspheres64

    That command should make a window appear with a decent fps. Run just glxspheres64 on its own and it should be much less. This shows when you are using the video card.

    Any errors about gpu not avalible follow the troubleshooting at the end of the bumblebee wiki, they will sort you out.

    https://wiki.debian.org/Bumblebee

    Remember to remove the entry in the sources.list and maybe an apt-get clean & & apt-get update
    Last edited by staticn0de; 2014-04-28 at 20:16.

  6. #6
    Join Date
    2014-Feb
    Posts
    14
    # /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
    # and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

    if [ "`id -u`" -eq 0 ]; then
    PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
    else
    PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
    fi
    export PATH

    if [ "$PS1" ]; then
    if [ "$BASH" ] && [ "$BASH" != "/bin/sh" ]; then
    # The file bash.bashrc already sets the default PS1.
    # PS1='\h:\w\$ '
    if [ -f /etc/bash.bashrc ]; then
    . /etc/bash.bashrc
    fi
    else
    if [ "`id -u`" -eq 0 ]; then
    PS1='# '
    else
    PS1='$ '
    fi
    fi
    fi

    # The default umask is now handled by pam_umask.
    # See pam_umask(8) and /etc/login.defs.

    if [ -d /etc/profile.d ]; then
    for i in /etc/profile.d/*.sh; do
    if [ -r $i ]; then
    . $i
    fi
    done
    unset i
    fi
    where put the pfath ? i dont understand

  7. #7
    Join Date
    2014-Apr
    Location
    Down Under
    Posts
    315
    Where that file has:

    PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

    Change to:

    PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/virtualgl"

    Just remember to make sure /opt/virtualgl is the directory with glxspheres64

  8. #8
    Join Date
    2014-Feb
    Posts
    14
    the file glxspheres64 in folder opt/VirtualGL/bin so i use them PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/virtualgl/bin" ? right

  9. #9
    Join Date
    2014-Apr
    Location
    Down Under
    Posts
    315
    Yes, that's right.

  10. #10
    Join Date
    2014-Feb
    Posts
    14
    OK i try it now

  11. #11
    Join Date
    2014-Feb
    Posts
    14
    I hope it was done

    nvidia-current:
    Running module version sanity check.
    - Original module
    - No original module exists within this kernel
    - Installation
    - Installing to /lib/modules/3.12-kali1-amd64/updates/dkms/

    depmod....

    DKMS: install completed.
    Setting up nvidia-driver (319.82-1~bpo70+1) ...
    Setting up libgl1-nvidia-glx-i386 (319.82-1~bpo70+1) ...
    Processing triggers for initramfs-tools ...
    I: update-initramfs is disabled (live system is running on read-only media).
    Setting up bumblebee-nvidia (3.2.1-4~bpo70+1) ...
    update-alternatives: using /usr/lib/mesa-diverted to provide /usr/lib/glx (glx) in manual mode
    [ ok ] Restarting bumblebeed: bumblebeed.
    Setting up primus (0~20130904-1~bpo70+1) ...
    Processing triggers for menu ...


    optirun glxspheres64
    [ 5281.263647] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

    [ 5281.263695] [ERROR]Aborting because fallback start is disabled.
    Last edited by i6l6l6u; 2014-04-20 at 14:57. Reason: update

  12. #12
    Join Date
    2013-Jun
    Posts
    123
    your answer may be here that i posted a few weeks ago
    https://forums.kali.org/showthread.p...fxi&highlight=

    What is sgfxi?
    sgfxi is a self-updating nvidia, ati/amd fglrx, and xorg free driver installer and xorg configuration script written for originally for Debian, but since expanded to also include support for Ubuntu and Arch Linux systems.

    Easy to use, updated usually the same day as new nVidia drivers are released. fglrx support is much less reliable because ATI/AMD does not actively support cutting edge software, but it should be good for most fixed pool distributions based on Debian/Ubuntu, and the Debian Stable/Testing/Sid branch, as well as Arches rolling release model.

  13. #13
    Join Date
    2014-Feb
    Posts
    14
    doesnt work 4 me, but ty 4 help

  14. #14
    Join Date
    2014-Apr
    Location
    Down Under
    Posts
    315
    optirun glxspheres64
    [ 5281.263647] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

    [ 5281.263695] [ERROR]Aborting because fallback start is disabled.
    These are the errors I mentioned may appear

    nano /etc/bumblebee/bumblebee.conf

    find the line: KernelDriver=nvidia and change to KernelDriver=nvidia-current

    lspci | egrep 'VGA|3D'

    Find the line which mentions nvidia or 3D and note the bus address (mine was 03:00.00)

    nano /etc/bumblebee/xorg.conf.nvidia

    Find the section that looks that the one below:

    Section "Device"
    Identifier "Device1"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"

    Add a line for the bus ID so it looks like this (assuming your Bus ID from lspci | egrep 'VGA|3D' was 03:00.00)

    Section "Device"
    Identifier "Device1"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BusID "PCI:03:00:0"

    Note how the "." before the last 0 is now a ":"

    restart bumblebee with:

    service bumblebeed restart

    run:

    optirun glxspheres64

    Should be fixed.

  15. #15
    Join Date
    2014-Apr
    Posts
    2
    i have read that it´s may be a kernel probleme related with the linux 3.12 (wich is the some kernel in my kali machine).do you have the same kernel??? the kernel 3.13 is not yet disponible for kali , so the other solution is to downgrade back to kernel 3.11. anyone now how to do that???

Similar Threads

  1. Nvidia Issue
    By duraichandran in forum TroubleShooting Archive
    Replies: 5
    Last Post: 2022-10-24, 03:29
  2. nvidia issue after upgrade
    By ala76nl in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2022-06-14, 08:39
  3. nvidia and cpyrit issue
    By derpiederp in forum TroubleShooting Archive
    Replies: 6
    Last Post: 2016-12-19, 18:18
  4. Replies: 1
    Last Post: 2016-02-24, 04:37
  5. Issue NVidia
    By John_Hurt in forum Installing Archive
    Replies: 0
    Last Post: 2013-09-18, 06:48

Tags for this Thread

Posting Permissions

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