PDA

View Full Version : (Guide) Installing Nvidia + Bumblebee + CUDA for Optimus enabled Laptops



Pages : 1 [2]

Rarity
2015-04-05, 03:15
No other monitors connected to my PC


dmesg | tail after first booting up then firing up Firefox


[ 94.728930] nvidia: module license 'NVIDIA' taints kernel.
[ 94.728933] Disabling lock debugging due to kernel taint
[ 95.212018] nvidia 0000:01:00.0: enabling device (0000 -> 0003)
[ 95.212452] [drm] Initialized nvidia-drm 0.0.0 20150116 for 0000:01:00.0 on minor 1
[ 95.212458] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 346.47 Thu Feb 19 18:56:03 PST 2015


OFF/ON


tee /proc/acpi/bbswitch <<<OFF
OFF
tee /proc/acpi/bbswitch <<<ON
ON
dmesg | tail
[ 217.822484] bbswitch: device 0000:01:00.0 is in use by driver 'nvidia', refusing OFF


optirun glxgears/glxspheres64 gives me this after closing the window


(dmesg)[83635.389363] pci 0000:01:00.0: Refused to change power state, currently in D0


dmesg | tail of OFF/ON after using optiplex glxspheres64 or optiplex glxgears:


tee /proc/acpi/bbswitch <<<OFF
(dmesg)[ 163.870602] bbswitch: disabling discrete graphics
(dmesg)[ 163.870613] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
tee /proc/acpi/bbswitch <<<ON
(dmesg)[ 224.089459] bbswitch: enabling discrete graphics


xorg.conf.nvidia

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"

# If the X server does not automatically detect your VGA device,
# you can manually set it here.
# To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
# as you see in the commented example.
# This Setting may be needed in some platforms with more than one
# nvidia card, which may confuse the proprietary driver (e.g.,
# trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.
# BusID "PCI:01:00:0"

# Setting ProbeAllGpus to false prevents the new proprietary driver
# instance spawned to try to control the integrated graphics card,
# which is already being managed outside bumblebee.
# This option doesn't hurt and it is required on platforms running
# more than one nvidia graphics card with the proprietary driver.
# (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT).
# If this option is not set, the new Xorg may blacken the screen and
# render it unusable (unless you have some way to run killall Xorg).
Option "ProbeAllGpus" "false"

Option "NoLogo" "true"
Option "UseEDID" "false"
Option "UseDisplayDevice" "none"
EndSection


optirun glxgears and optirun glxspheres64 works fine, but both glxgears and glxspheres64 are broken for me.

Let me know if you need anymore info.

snofi
2015-04-10, 20:07
Hello, I have two questions. Why do I have such a poor record on this card?


root@snofikali:/opt/VirtualGL/bin# tee /proc/acpi/bbswitch <<<ON
ON
root@snofikali:/opt/VirtualGL/bin# dmesg | tail -n 100
[ 3425.147065] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
[ 3425.147122] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
[ 3425.147192] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
[ 3425.147245] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
[ 3428.160382] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
[ 3429.231856] ------------[ cut here ]------------
[ 3429.231882] WARNING: CPU: 7 PID: 7891 at drivers/base/driver.c:190 pci_unregister_driver+0x1d/0x90()
[ 3429.231914] Unexpected driver unregister!
[ 3429.231915] Modules linked in: nvidia(PO-) vmnet(O) parport_pc parport fuse vmw_vsock_vmci_transport vsock vmw_vmci vmmon(O) bbswitch(O) binfmt_misc nfsd auth_rpcgss oid_registry nfs_acl nfs lockd grace fscache sunrpc loop x86_pkg_temp_thermal intel_powerclamp intel_rapl coretemp kvm_intel ath9k_htc ath9k_common ath9k_hw arc4 kvm iwldvm ath mac80211 i915 uvcvideo videobuf2_vmalloc snd_hda_codec_hdmi snd_hda_codec_idt snd_hda_codec_generic videobuf2_memops videobuf2_core iwlwifi snd_hda_intel snd_hda_controller v4l2_common videodev cfg80211 snd_hda_codec snd_hwdep media crct10dif_pclmul snd_pcm snd_seq drm_kms_helper btusb crc32_pclmul drm bluetooth ghash_clmulni_intel joydev snd_seq_device snd_timer mei_me aesni_intel snd iTCO_wdt mei aes_x86_64 lrw gf128mul dell_laptop iTCO_vendor_support rfkill psmouse i2c_i801 i2c_algo_bit lpc_ich mfd_core soundcore mxm_wmi serio_raw dell_wmi sparse_keymap glue_helper i2c_core wmi ablk_helper evdev dcdbas video cryptd battery ac button processor ext4 crc16 mbcache jbd2 dm_mod sg sr_mod sd_mod cdrom crc32c_intel ahci libahci libata scsi_mod xhci_pci ehci_pci thermal xhci_hcd thermal_sys ehci_hcd usbcore r8169 mii usb_common [last unloaded: nvidia]
[ 3429.232100] CPU: 7 PID: 7891 Comm: rmmod Tainted: P W O 3.18.11 #1
[ 3429.232104] Hardware name: Dell Inc. Inspiron N5110/0HVRTT, BIOS A09 09/30/2011
[ 3429.232109] 0000000000000000 0000000000000009 ffffffff81555078 ffff880128a67e58
[ 3429.232116] ffffffff8106db3b 0000000000000000 ffffffffa1924bc8 ffffffffa1924ae0

[ 3466.359399] WARNING: CPU: 6 PID: 7912 at fs/proc/generic.c:303 proc_register+0xd8/0x170()
[ 3466.359402] proc_dir_entry 'driver/nvidia' already registered
[ 3466.359405] Modules linked in: nvidia(PO+) vmnet(O) parport_pc parport fuse vmw_vsock_vmci_transport vsock vmw_vmci vmmon(O) bbswitch(O) binfmt_misc nfsd auth_rpcgss oid_registry nfs_acl nfs lockd grace fscache sunrpc loop x86_pkg_temp_thermal intel_powerclamp intel_rapl coretemp kvm_intel ath9k_htc ath9k_common ath9k_hw arc4 kvm iwldvm ath mac80211 i915 uvcvideo videobuf2_vmalloc snd_hda_codec_hdmi snd_hda_codec_idt snd_hda_codec_generic videobuf2_memops videobuf2_core iwlwifi snd_hda_intel snd_hda_controller v4l2_common videodev cfg80211 snd_hda_codec snd_hwdep media crct10dif_pclmul snd_pcm snd_seq drm_kms_helper btusb crc32_pclmul drm bluetooth ghash_clmulni_intel joydev snd_seq_device snd_timer mei_me aesni_intel snd iTCO_wdt mei aes_x86_64 lrw gf128mul dell_laptop iTCO_vendor_support rfkill psmouse i2c_i801 i2c_algo_bit lpc_ich mfd_core soundcore mxm_wmi serio_raw dell_wmi sparse_keymap glue_helper i2c_core wmi ablk_helper evdev dcdbas video cryptd battery ac button processor ext4 crc16 mbcache jbd2 dm_mod sg sr_mod sd_mod cdrom crc32c_intel ahci libahci libata scsi_mod xhci_pci ehci_pci thermal xhci_hcd thermal_sys ehci_hcd usbcore r8169 mii usb_common [last unloaded: nvidia]
[ 3466.359595] CPU: 6 PID: 7912 Comm: modprobe Tainted: P W O 3.18.11 #1
[ 3466.359599] Hardware name: Dell Inc. Inspiron N5110/0HVRTT, BIOS A09 09/30/2011
[ 3466.359604] 0000000000000000 0000000000000009 ffffffff81555078 ffff8800c3617bb8
[
[ 3466.360844] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 346.47 Thu Feb 19 18:56:03 PST 2015
[ 3466.397663] nvidia 0000:01:00.0: irq 44 for MSI/MSI-X
[ 3466.402998] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
[ 3466.403108] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
[ 3466.403171] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
[ 3466.403229] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
[ 3466.403860] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
[ 3466.403921] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
[ 3466.403997] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
[ 3466.404054] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
[ 3469.419434] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
[ 3493.871427] ------------[ cut here ]------------
[ 3493.871436] WARNING: CPU: 6 PID: 7945 at drivers/base/driver.c:190 pci_unregister_driver+0x1d/0x90()

[ 3493.871604] ---[ end trace 8fa7d6246e1196dd ]---
[ 3493.871727] [drm] Module unloaded
[ 3493.873230] bbswitch: disabling discrete graphics
[ 3493.873248] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
[ 3493.889258] pci 0000:01:00.0: Refused to change power state, currently in D0
[ 3674.987184] bbswitch: enabling discrete graphics
root@snofikali:/opt/VirtualGL/bin# optirun pyrit list_cores
Pyrit 0.4.0 (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

The following cores seem available...
#1: 'CUDA-Device #1 'GeForce GT 525M''
#2: 'CPU-Core (SSE2)'
#3: 'CPU-Core (SSE2)'
#4: 'CPU-Core (SSE2)'
#5: 'CPU-Core (SSE2)'
#6: 'CPU-Core (SSE2)'
#7: 'CPU-Core (SSE2)'
#8: 'CPU-Core (SSE2)'
root@snofikali:/opt/VirtualGL/bin# optirun pyrit benchmark
Pyrit 0.4.0 (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

Running benchmark (6907.2 PMKs/s)... |

Computed 6907.25 PMKs/s total.
#1: 'CUDA-Device #1 'GeForce GT 525M'': 5448.0 PMKs/s (RTT 2.8)
#2: 'CPU-Core (SSE2)': 335.1 PMKs/s (RTT 3.9)
#3: 'CPU-Core (SSE2)': 319.8 PMKs/s (RTT 3.5)
#4: 'CPU-Core (SSE2)': 325.7 PMKs/s (RTT 3.5)
#5: 'CPU-Core (SSE2)': 319.2 PMKs/s (RTT 3.6)
#6: 'CPU-Core (SSE2)': 321.1 PMKs/s (RTT 3.4)
#7: 'CPU-Core (SSE2)': 325.6 PMKs/s (RTT 3.4)
#8: 'CPU-Core (SSE2)': 330.8 PMKs/s (RTT 3.4)
root@snofikali:/opt/VirtualGL/bin# pyrit benchmark
Pyrit 0.4.0 (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

Running benchmark (6648.5 PMKs/s)... \

Computed 6648.48 PMKs/s total.
#1: 'CUDA-Device #1 'GeForce GT 525M'': 5393.4 PMKs/s (RTT 2.7)
#2: 'CPU-Core (SSE2)': 268.3 PMKs/s (RTT 3.1)
#3: 'CPU-Core (SSE2)': 273.2 PMKs/s (RTT 3.2)
#4: 'CPU-Core (SSE2)': 277.0 PMKs/s (RTT 3.0)
#5: 'CPU-Core (SSE2)': 266.6 PMKs/s (RTT 3.2)
#6: 'CPU-Core (SSE2)': 277.7 PMKs/s (RTT 3.1)
#7: 'CPU-Core (SSE2)': 264.7 PMKs/s (RTT 3.1)
#8: 'CPU-Core (SSE2)': 269.1 PMKs/s (RTT 3.1)


Why can not I successfully run nvidia-settings?


ERROR: nvidia-settings could not find the registry key file. This file should have been
installed along with this driver at
/usr/share/nvidia/nvidia-application-profiles-key-documentation. The application
profiles will continue to work, but values cannot be preopulated or validated, and will
not be listed in the help text. Please see the README for possible values and
descriptions.



I have not created xorg-conf files in the directory X11. Best regards and thank you in advance for your reply.

staticn0de
2015-04-15, 06:52
Hello, I have two questions. Why do I have such a poor record on this card?



Why can not I successfully run nvidia-settings?



I have not created xorg-conf files in the directory X11. Best regards and thank you in advance for your reply.

First question:
Your poor performance is because you have a middle of the range laptop graphics card. It can't compete with middle or high range desktop cards It's also about 4 years old.

Second question:
It's a bug in the driver.

Run:

root@kali ~$ cd /usr/share/nvidia/
root@kali /usr/share/nvidia$ cp nvidia-application-profiles-346.47-key-documentation nvidia-application-profiles-key-documentation

snofi
2015-04-15, 18:47
Run:

root@kali ~$ cd /usr/share/nvidia/
root@kali /usr/share/nvidia$ cp nvidia-application-profiles-346.47-key-documentation nvidia-application-profiles-key-documentation

Hello, I create a xorg.conf? I have a nvidia directory these files:
/usr/share/nvidia/monitoring.conf
/usr/share/nvidia/nvidia.ids
/usr/share/nvidia/nvidia-195.ids
/usr/share/nvidia/nvidia-295.ids
/usr/share/nvidia/nvidia-346.ids
/usr/share/nvidia/nvidia-application-profiles-346.47-key-documentation
/usr/share/nvidia/nvidia-application-profiles-346.47-rc
/ Usr / share / nvidia / nvidia-application-profiles-key-documentation
/usr/share/nvidia/nvidia-legacy-71xx.ids
/usr/share/nvidia/nvidia-legacy-96xx.ids
/usr/share/nvidia/nvidia-legacy-173xx.ids
/usr/share/nvidia/nvidia-legacy-304xx.ids
/usr/share/nvidia/pci.ids


Do you, any of these I remove it? Nothing has changed. Yours sincerely.

staticn0de
2015-04-15, 19:43
No other monitors connected to my PC


dmesg | tail after first booting up then firing up Firefox


[ 94.728930] nvidia: module license 'NVIDIA' taints kernel.
[ 94.728933] Disabling lock debugging due to kernel taint
[ 95.212018] nvidia 0000:01:00.0: enabling device (0000 -> 0003)
[ 95.212452] [drm] Initialized nvidia-drm 0.0.0 20150116 for 0000:01:00.0 on minor 1
[ 95.212458] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 346.47 Thu Feb 19 18:56:03 PST 2015


OFF/ON


tee /proc/acpi/bbswitch <<<OFF
OFF
tee /proc/acpi/bbswitch <<<ON
ON
dmesg | tail
[ 217.822484] bbswitch: device 0000:01:00.0 is in use by driver 'nvidia', refusing OFF


optirun glxgears/glxspheres64 gives me this after closing the window


(dmesg)[83635.389363] pci 0000:01:00.0: Refused to change power state, currently in D0


dmesg | tail of OFF/ON after using optiplex glxspheres64 or optiplex glxgears:


tee /proc/acpi/bbswitch <<<OFF
(dmesg)[ 163.870602] bbswitch: disabling discrete graphics
(dmesg)[ 163.870613] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
tee /proc/acpi/bbswitch <<<ON
(dmesg)[ 224.089459] bbswitch: enabling discrete graphics


xorg.conf.nvidia

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"

# If the X server does not automatically detect your VGA device,
# you can manually set it here.
# To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
# as you see in the commented example.
# This Setting may be needed in some platforms with more than one
# nvidia card, which may confuse the proprietary driver (e.g.,
# trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.
# BusID "PCI:01:00:0"

# Setting ProbeAllGpus to false prevents the new proprietary driver
# instance spawned to try to control the integrated graphics card,
# which is already being managed outside bumblebee.
# This option doesn't hurt and it is required on platforms running
# more than one nvidia graphics card with the proprietary driver.
# (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT).
# If this option is not set, the new Xorg may blacken the screen and
# render it unusable (unless you have some way to run killall Xorg).
Option "ProbeAllGpus" "false"

Option "NoLogo" "true"
Option "UseEDID" "false"
Option "UseDisplayDevice" "none"
EndSection


optirun glxgears and optirun glxspheres64 works fine, but both glxgears and glxspheres64 are broken for me.

Let me know if you need anymore info.

Hey there,

I was able to reproduce this and am working on a fix.

I reproduced it through a manual loading and uploading of the driver. I'll let you know how I go.

snofi
2015-04-15, 19:54
root@kali ~$ cd /usr/share/nvidia/
root@kali /usr/share/nvidia$ cp nvidia-application-profiles-346.47-key-documentation nvidia-application-profiles-key-documentation

Hi, I did but nothing has changed. Do I have to create a xorg.conf? Do I have to remove anything from this?
"/usr/share/nvidia/monitoring.conf
/usr/share/nvidia/nvidia.ids
/usr/share/nvidia/nvidia-195.ids
/usr/share/nvidia/nvidia-295.ids
/usr/share/nvidia/nvidia-346.ids
/usr/share/nvidia/nvidia-application-profiles-346.47-key-documentation
/usr/share/nvidia/nvidia-application-profiles-346.47-rc
/ Usr / share / nvidia / nvidia-application-profiles-key-documentation
/usr/share/nvidia/nvidia-legacy-71xx.ids
/usr/share/nvidia/nvidia-legacy-96xx.ids
/usr/share/nvidia/nvidia-legacy-173xx.ids
/usr/share/nvidia/nvidia-legacy-304xx.ids
/usr/share/nvidia/pci.ids "

I cordially greet.

SuperMan
2015-04-16, 07:46
Hello, i have install new driver (from 4 april 2015), but after check "optirun glxspheres64" got this message:
"ERROR: ld.so: object 'libdlfaker.so' from LD_PRELOAD cannot be preloaded: ignored."

But two weeks ago, its works fine, maybe it depends on new drivers?

FIXED wait until moderator post my new message, thanks

snofi
2015-04-16, 15:41
Sorry, double reply.:). I thought it did not go. Regards.

SuperMan
2015-04-19, 08:26
Hello. I found the solution for my error: "after install nvidia driver and trying optirun glxspheres64 got: ERROR: ld.so: object 'libdlfaker.so' from LD_PRELOAD cannot be preloaded: ignored."
This error only on 64bit. Becouse if you try to open virtualgl_2.4_amd64.deb with archive manager - you will got an error. I386 and other opens successful.
So how to fix:
go to virtualgl website and get newest versing - 2.4.1. Install and be happy :)
link http://virtualgl.sourceforge.net/vgl.nightly/

necrojones
2015-04-27, 04:45
Hello all (mostly staticn0de):

Thank you for replying to everyone possible on this thread static, it's a great thing to see someone commiting so much energy to other peoples problems. I have just read through all 26 pages so far and I couldn't find an answer to my problem so I'm posting here.

Specs:
Alienware 13 (GeForce® GTX 860M)
Nvidia driver version: 346.59
Cuda version: 7.0.28
LSPCI output:
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
03:00.0 3D controller: NVIDIA Corporation Device 1392 (rev a2)

Modinfo nvidia:
filename: /lib/modules/3.18.0-kali3-amd64/kernel/drivers/video/nvidia.ko
alias: char-major-195-*
version: 346.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.18.0-kali3-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

Error I'm getting when running optirun glxgears64:
[ERROR]Cannot access secondary GPU - error: [XORG] (EE) Problem parsing the config file
[ERROR]Aborting because fallback start is disabled.

Error when I'm running glxgears:
Xlib: extension "GLX" missing on display ":0".
Error: couldn't get an RGB, Double-buffered visual

xorg.conf.nvidia:
Section "ServerLayout"
Identifier "Layout0"
Option "AutoAddDevices" "false"
Option "AutoAddGPU" "false"
EndSection

Section "Device"
Identifier "DiscreteNvidia"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BusID: "PCI:03:00:0"
# If the X server does not automatically detect your VGA device,
# you can manually set it here.
# To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
# as you see in the commented example.
# This Setting may be needed in some platforms with more than one
# nvidia card, which may confuse the proprietary driver (e.g.,
# trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.
# BusID "PCI:01:00:0"

# Setting ProbeAllGpus to false prevents the new proprietary driver
# instance spawned to try to control the integrated graphics card,
# which is already being managed outside bumblebee.
# This option doesn't hurt and it is required on platforms running
# more than one nvidia graphics card with the proprietary driver.
# (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT).
# If this option is not set, the new Xorg may blacken the screen and
# render it unusable (unless you have some way to run killall Xorg).
Option "ProbeAllGpus" "false"

Option "NoLogo" "true"
Option "UseEDID" "false"
Option "UseDisplayDevice" "none"
EndSection

tee command for bbswitch dmesg log:
7.402195] bbswitch: version 0.8
[ 7.402204] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[ 7.402212] bbswitch: Found discrete VGA device 0000:03:00.0: \_SB_.PCI0.RP05.PEGP
[ 7.402225] ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
[ 7.402389] bbswitch: detected an Optimus _DSM function
[ 7.402476] bbswitch: Succesfully loaded. Discrete card 0000:03:00.0 is on
[ 7.404211] bbswitch: disabling discrete graphics
[ 7.404222] ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
[ 14.015045] ksplashqml[3109]: segfault at 8 ip 00007eff1c70dad0 sp 00007fffd59a1590 error 4 in libQtGui.so.4.8.2[7eff1bf7d000+a6a000]
[ 66.096872] bbswitch: enabling discrete graphics
[ 66.394906] nvidia: module license 'NVIDIA' taints kernel.
[ 66.394910] Disabling lock debugging due to kernel taint
[ 66.402638] [drm] Initialized nvidia-drm 0.0.0 20150116 for 0000:03:00.0 on minor 1
[ 66.402645] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 346.46 Tue Feb 17 17:56:08 PST 2015

I noticed while writing this it is loading a kernel module for 346.46, while my Nvidia driver is 346.59. I don't know if this is conflicting or is it suppose to be, and whether it is even the issue. Any help would be appreciated.

thanks in advance.

staticn0de
2015-04-27, 06:56
@necrojones,

Thanks, I appreciate the comments. I havn't had the time to reply to as many as I would like as of late but yours is an easy one.

You have a typo in /etc/bumblebee/xorg.conf.nvidia

Change

BusID: "PCI:03:00:0"

to

BusID "PCI:03:00:0"

Quest
2015-04-27, 17:48
Hi Static! Whenever you have time for another deb it would be appreciated :)


This version 1.36 is a wild mix of nice updates Smile

Still, all oclHashcat versions back to 1.33 share the same driver dependencies for AMD. If you have a running oclHashcat v1.33 or newer then v1.36 will work, too, without a driver update.

Most important changes:

Added new hash mode -m 11300 = Bitcoin/Litecoin wallet.dat
Added new hash mode -m 11600 = 7-Zip
Fixed a bug in NVidia multihash kernels: MD5, NTLM, IPB2
The parameters --show / --left do work with both halves of LM hashes (if they were 32 hex chars long)
Optimized final round flushing (reduces time at last percents of progress with slower speed)
Optimized rejection handling (for example passwords > 8 if cracking DEScrypt or < 8 if cracking WPA/WPA2, etc)
The speed in status display is no longer divide by the number of uncracked salts



ps: funny how your ticket about cudahashcat never got addressed. I wonder what's up with that :confused:

necrojones
2015-04-27, 19:37
@necrojones,

Thanks, I appreciate the comments. I havn't had the time to reply to as many as I would like as of late but yours is an easy one.

You have a typo in /etc/bumblebee/xorg.conf.nvidia

Change

BusID: "PCI:03:00:0"

to

BusID "PCI:03:00:0"

WOW. I spent hours staring at that script (specifically looking at the end of that line not the begininning) and everything else, and all it was was a simple colon. Everything works perfectly now. Thank you so much again, really appreciate it.

Cheers!

staticn0de
2015-04-30, 19:11
Hi Static! Whenever you have time for another deb it would be appreciated :)



ps: funny how your ticket about cudahashcat never got addressed. I wonder what's up with that :confused:

cudahashcat 1.36 added:

https://forums.kali.org/showthread.php?21956-(Guide)-Installing-Nvidia-Bumblebee-CUDA-for-Optimus-enabled-Laptops&p=35240&viewfull=1#post35240

Quest
2015-04-30, 19:46
Manny thanks!

went from 400MB with 1.35, to 200MB for 1.36 :confused:


The original cudaHashcat-1.36.7z is 62,3MB. Is that possible?

staticn0de
2015-04-30, 20:01
I used an xz compression method with dpkg-deb this time. It took an hour to pack but had significant savings in archive size. I planned to keep changing it up until I get it closer to the original file size

Rajnish357
2015-05-01, 14:43
Please Help Someone, I am trying to install Nvidia from last few months but what ever I try It doesn't work.
Everything goes smoth till 14th step of current tutorial on first post.

But when I test it using:

~# optirun glxspheres64
I get this error:

[ 126.985430] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA GPU at PCI:1:0:0. Please

[ 126.985473] [ERROR]Aborting because fallback start is disabled.


But one thing to mention I think, when I run:

~# optirun glxgears
It gives output like:

9438 frames in 5.0 seconds = 1887.557 FPS
11288 frames in 5.0 seconds = 2257.418 FPS
10784 frames in 5.0 seconds = 2156.696 FPS
11002 frames in 5.0 seconds = 2200.381 FPS
10775 frames in 5.0 seconds = 2154.836 FPS
11150 frames in 5.0 seconds = 2229.996 FPS
10977 frames in 5.0 seconds = 2195.273 FPS
11148 frames in 5.0 seconds = 2229.536 FPS
11307 frames in 5.0 seconds = 2261.351 FPS
11206 frames in 5.0 seconds = 2241.059 FPS
10499 frames in 5.0 seconds = 2099.786 FPS
11355 frames in 5.0 seconds = 2270.971 FPS
11375 frames in 5.0 seconds = 2274.890 FPS
11146 frames in 5.0 seconds = 2229.126 FPS
11259 frames in 5.0 seconds = 2251.711 FPS
11134 frames in 5.0 seconds = 2226.800 FPS


Please tell me what should I do ?

Thanks

Rarity
2015-05-02, 01:13
Please Help Someone, I am trying to install Nvidia from last few months but what ever I try It doesn't work.
Everything goes smoth till 14th step of current tutorial on first post.

But when I test it using:

~# optirun glxspheres64
I get this error:

[ 126.985430] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA GPU at PCI:1:0:0. Please

[ 126.985473] [ERROR]Aborting because fallback start is disabled.



Hi Rajnish,

Take a look at the solution tonrin posted. (https://forums.kali.org/showthread.php?21956-(Guide)-Installing-Nvidia-Bumblebee-CUDA-for-Optimus-enabled-Laptops&p=36387&viewfull=1#post36387)

Rajnish357
2015-05-02, 17:59
Thanks alot Rarity your suggestion solved the problem, but now getting error on net step to test the CUDA sample If you can help once more I'll be thankfull


root@iHackU:~# cd /root/NVIDIA_CUDA-7.0_Samples
root@iHackU:~/NVIDIA_CUDA-7.0_Samples# make
make[1]: Entering directory `/root/NVIDIA_CUDA-7.0_Samples/0_Simple/simpleTextureDrv'
Makefile:82: *** ERROR - unsupported value i686 for TARGET_ARCH!. Stop.
make[1]: Leaving directory `/root/NVIDIA_CUDA-7.0_Samples/0_Simple/simpleTextureDrv'
make: *** [0_Simple/simpleTextureDrv/Makefile.ph_build] Error 2

staticn0de
2015-05-02, 23:12
Thanks alot Rarity your suggestion solved the problem, but now getting error on net step to test the CUDA sample If you can help once more I'll be thankfull


root@iHackU:~# cd /root/NVIDIA_CUDA-7.0_Samples
root@iHackU:~/NVIDIA_CUDA-7.0_Samples# make
make[1]: Entering directory `/root/NVIDIA_CUDA-7.0_Samples/0_Simple/simpleTextureDrv'
Makefile:82: *** ERROR - unsupported value i686 for TARGET_ARCH!. Stop.
make[1]: Leaving directory `/root/NVIDIA_CUDA-7.0_Samples/0_Simple/simpleTextureDrv'
make: *** [0_Simple/simpleTextureDrv/Makefile.ph_build] Error 2


Are you running 32bit or 64bit Kali?

If 32bit, here is an extract from CUDA 7.0 release notes.



Support for 32-bit x86 Linux Systems
The CUDA Toolkit and CUDA Driver no longer support developing and running
CUDA and OpenCL Applications on 32-bit x86 Linux operating systems.

Note 1: Developing and running 32-bit applications on 64-bit (x86_64) Linux
operating systems is still supported, but that functionality is marked as deprecated
and may be dropped in a future release. 64-bit applications are not impacted.

Note 2: This notice applies to x86 architectures only; 32-bit application support on the
ARM architecture remains officially supported.


Maybe try installing CUDA 6.5? Otherwise, you will need to find a work around.

fbs-16
2015-05-05, 18:19
Hello all

I'm using Core i7 3610 QM + Geforce 670M 3GB + pyrit 1.4.0 + cudahashcat 1.3.6 + Dictionary ~ 12 GB

The interesting thing is that cudahashcat separately gives me about 22100 H/s + comfortable surfing + temperature ~ 68 C
pyrit gives about 4300 H/S + little freezing of system + temperature ~ 76-78 C

But if i install cpyrit it combines together cuda and pyrit and its performance becomes ~ 23 250 H/S + hard freezing of system + temperature ~ 80 C
So i'm loosing ~3 000 H/S and possibility to use full power of CPU for dictionary pass_through attack.

Are there any solutions how to use fully calculating power of CPU and GPU together ?


For now i found one by myself:

For example we have dictionary 1 500 000 lines/words (we see number when running cudahashcat in line "Progress ").

We know our cudahashcat speed from output info of cudahashcat and we know our pyrit speed from output info of running pyrit

Let it be 10 000 h/s and 5 000 h/s.

now we devide Number of lines in dict / (GPU h/s + CPU h/s )

1 500 000 / (10 000 + 5 000) = 100

So, working together to pass through all 1 500 000 words GPU will pass 10 000 * 100 = 1 000 000 and CPU will pass 1 500 000 - 1 000 000 = 500 000 words

Now we need to devide our word list into two parts: one will starts from word №1 and ends with word № 1 000 000 and other part will starts from the word № 500 000 to the end of file.


head -1000000 longfile.txt > GPUwordlist.txt
tail -500000 longfile.txt > CPUwordlist.txt

Now we can start at two terminals pyrit and cudahashcat and it will show us full speed without extremely freezing system and what is important they will finish together.

rbeldua
2015-05-11, 19:27
Hi static,

my laptop specs:
HP Pavilion 15 n029sx
Nvidia GT740m
Intel HD graphics
core i5

I followed procedure from post 1 and till step 15 as I execute command optirun glxspheres64 I got this error


[ 1418.768279] [ERROR]Cannot access secondary GPU - error: X did not start properly

[ 1418.768344] [ERROR]Aborting because fallback start is disabled.


I already tried post #69 where changing

GRUB_CMDLINE_LINUX_DEFAULT="quiet"

to

GRUB_CMDLINE_LINUX_DEFAULT="quiet rcutree.rcu_idle_gp_delay=1"

in /etc/default/grub then update-grub, still I am receiving this error.

I used:
cuda_6.5.14_linux_64.run
NVIDIA-Linux-x86_64-346.35.run
virtualgl_2.4_amd64.deb

rbeldua
2015-05-13, 10:05
using commands and output:

lspci | egrep 'VGA|3D'


00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09)
0a:00.0 3D controller: NVIDIA Corporation Device 1292 (rev ff)

echo ON >> /proc/acpi/bbswitch


no output

modprobe nvidia


no output

modprobe nvidia-uvm


no output

optirun glxspheres64



[ 1452.478410] [ERROR]Cannot access secondary GPU - error: X did not start properly

[ 1452.478478] [ERROR]Aborting because fallback start is disabled.

dmesg | tail -n 100


[ 1347.134266] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 346.35 Sat Jan 10 21:27:15 PST 2015
[ 1376.056696] nvidia_uvm: Loaded the UVM driver, major device number 249

echo $PATH



/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/VirtualGL/bin:/usr/local/cuda-6.5/bin:/opt/VirtualGL/bin:/usr/local/cuda-6.5/bin

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

cat /etc/bumblebee/xorg.conf.nvidia


Section "ServerLayout"
Identifier "Layout0"
Option "AutoAddDevices" "false"
Option "AutoAddGPU" "false"
EndSection

Section "Device"
Identifier "DiscreteNvidia"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BusID "PCI:0a:00:0"

# If the X server does not automatically detect your VGA device,
# you can manually set it here.
# To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
# as you see in the commented example.
# This Setting may be needed in some platforms with more than one
# nvidia card, which may confuse the proprietary driver (e.g.,
# trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.
# BusID "PCI:01:00:0"

# Setting ProbeAllGpus to false prevents the new proprietary driver
# instance spawned to try to control the integrated graphics card,
# which is already being managed outside bumblebee.
# This option doesn't hurt and it is required on platforms running
# more than one nvidia graphics card with the proprietary driver.
# (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT).
# If this option is not set, the new Xorg may blacken the screen and
# render it unusable (unless you have some way to run killall Xorg).
Option "ProbeAllGpus" "false"

Option "NoLogo" "true"
Option "UseEDID" "false"
Option "UseDisplayDevice" "none"
EndSection

service bumblebeed restart


[ ok ] Restarting bumblebeed: bumblebeed


I could use some assistance pls. :o

bahha
2015-05-24, 16:41
@rbeldua
I had a similar issue when I upgraded to the latest kernel
i added this to the very end of xorg.conf.nvidia and it's fixed. I have the same GPU as yours


Section "Screen"
Identifier "Default Screen"
Device "DiscreteNvidia"
EndSection

ps I'm using the driver from the repository . the nvidia proprietary broke my intel driver so I haven't tried it for a long to see if i could fix it.

rbeldua
2015-05-25, 17:16
@rbeldua
I had a similar issue when I upgraded to the latest kernel
i added this to the very end of xorg.conf.nvidia and it's fixed. I have the same GPU as yours


ps I'm using the driver from the repository . the nvidia proprietary broke my intel driver so I haven't tried it for a long to see if i could fix it.

Hi bahha,

Thanks for replying, I did as you suggested but still same results. Could you post the procedure how'd you manage to install nvidia? I really wanted to make use of this features in my laptop. There was an instruction you posted which I couldnt follow as the original post #1 was already rewritten which you stated follow post #1 referring to install drivers from the repository.

Rarity
2015-05-31, 03:09
Hey there,

I was able to reproduce this and am working on a fix.

I reproduced it through a manual loading and uploading of the driver. I'll let you know how I go.

Hey static, any update on a fix? Let me know if there's anything I can do to contribute.

bahha
2015-06-01, 20:51
Hi bahha,

Thanks for replying, I did as you suggested but still same results. Could you post the procedure how'd you manage to install nvidia? I really wanted to make use of this features in my laptop. There was an instruction you posted which I couldnt follow as the original post #1 was already rewritten which you stated follow post #1 referring to install drivers from the repository.

Hi rbeldua

I have already written a post that explains all, but the installation of the repository driver is removed from the first post.

follow this post (https://forums.kali.org/showthread.php?21956-(Guide)-Installing-Nvidia-Bumblebee-CUDA-for-Optimus-enabled-Laptops&p=40188&viewfull=1#post40188) to remove the one you already installed

here is the list of packages I installed. install them using apt-get install or use synaptic manager .
what step exactly that you didn't get .




bumblebee-nvidia 3.2.1-4~bpo70+1 amd64 NVIDIA Optimus support using the proprietary NVIDIA driver
ii glx-alternative-nvidia 0.5.1~bpo70+1kali1 amd64 allows the selection of NVIDIA as GLX provider
ii libegl1-nvidia:amd64 340.65-2~bpo70+1kali1 amd64 NVIDIA binary EGL libraries
ii libgl1-nvidia-glx:amd64 340.65-2~bpo70+1kali1 amd64 NVIDIA binary OpenGL libraries
ii libgl1-nvidia-glx:i386 340.65-2~bpo70+1kali1 i386 NVIDIA binary OpenGL libraries
ii libgl1-nvidia-glx-i386 340.65-2~bpo70+1kali1 i386 NVIDIA binary OpenGL 32-bit libraries
ii libgles1-nvidia:amd64 340.65-2~bpo70+1kali1 amd64 NVIDIA binary OpenGL|ES 1.x libraries
ii libgles2-nvidia:amd64 340.65-2~bpo70+1kali1 amd64 NVIDIA binary OpenGL|ES 2.x libraries
ii libnvidia-eglcore:amd64 340.65-2~bpo70+1kali1 amd64 NVIDIA binary EGL core libraries
ii libnvidia-ml1:amd64 340.65-2~bpo70+1kali1 amd64 NVIDIA Management Library (NVML) runtime library
ii libnvidia-ml1:i386 340.65-2~bpo70+1kali1 i386 NVIDIA Management Library (NVML) runtime library
ii nvidia-alternative 340.65-2~bpo70+1kali1 amd64 allows the selection of NVIDIA as GLX provider
ii nvidia-driver 340.65-2~bpo70+1kali1 amd64 NVIDIA metapackage
ii nvidia-driver-bin 340.65-2~bpo70+1kali1 amd64 NVIDIA driver support binaries
ii nvidia-glx 340.65-2~bpo70+1kali1 amd64 transition to nvidia-driver
ii nvidia-installer-cleanup 20131102+1~bpo70+1 amd64 cleanup after driver installation with the nvidia-installer
ii nvidia-kernel-common 20131102+1~bpo70+1 amd64 NVIDIA binary kernel module support files
ii nvidia-kernel-dkms 340.65-2~bpo70+1kali1 amd64 NVIDIA binary kernel module DKMS source
ii nvidia-modprobe 334.16-1kali1 amd64 utility to load NVIDIA kernel modules and create device nodes
ii nvidia-smi 340.65-2~bpo70+1kali1 i386 NVIDIA System Management Interface
ii nvidia-support 20141201+1 amd64 NVIDIA binary graphics driver support files
ii nvidia-vdpau-driver:amd64 340.65-2~bpo70+1kali1 amd64 Video Decode and Presentation API for Unix - NVIDIA driver
ii xserver-xorg-video-nvidia

Rarity
2015-06-09, 05:42
bahha, is there any way to install the updated NVIDIA driver with CUDA 6.5 without breaking the Intel graphics card?

I'd rather do one installation instead of install/uninstall/install again.

bahha
2015-06-10, 20:11
bahha, is there any way to install the updated NVIDIA driver with CUDA 6.5 without breaking the Intel graphics card?

I'd rather do one installation instead of install/uninstall/install again.

Yes there is, The one I'm pretty sure about is to install the nvidia driver from the repository and add debian sid repository

deb http://http.us.debian.org/debian/ sid main non-free contrib in order to upgrade the driver to a version that supports
CUDA 6.5 and then remove the repo from source.list .

I'm not sure if the proprietary driver form nvidia website which is posted in the first page of this thread, breaks the Intel. It did break mine a while ago and I fixed it with the repo driver . and never tried it again, as
everything is working fine now .

G-nux
2015-06-11, 10:32
I install
NVIDIA Driver 346.72
CUDA 7.0.28
VirtualGL 2.4
after install, optirun glxspheres64 work, but i get:
627
628

lshw -c display:
629
glxinfo:
630

i can't run steam:
631

what i should do?

bahha
2015-06-12, 08:25
I install
NVIDIA Driver 346.72
CUDA 7.0.28
VirtualGL 2.4
after install, optirun glxspheres64 work, but i get:
627
628

lshw -c display:
629
glxinfo:
630

i can't run steam:
631

what i should do?


that's what I was talking about in the above post, the driver from nvidia webiste breaks the intel driver , this thread in the beginning had the instructions for the repository driver then the OP changed it to what it is now . again what i did is remove it and install the one from the repository, first you will install the driver I can't remember the exact version but it prior to 3.4x . then add the debian sid to only upgrade the nvidia driver so it becomes compatible with CUDA 6.5 . follow my post to fix it (https://forums.kali.org/showthread.php?21956-(Guide)-Installing-Nvidia-Bumblebee-CUDA-for-Optimus-enabled-Laptops&p=40188&viewfull=1#post40188).
scroll up in this page to see the packages I installed .

bahha
2015-06-12, 08:51
I install
NVIDIA Driver 346.72
CUDA 7.0.28
VirtualGL 2.4
after install, optirun glxspheres64 work, but i get:
627
628

lshw -c display:
629
glxinfo:
630

i can't run steam:
631

what i should do?


that's what I was talking about in the above post, the driver from nvidia webiste breaks the intel driver , this thread in the beginning had the instructions for the repository driver then the OP changed it to what it is now . again what i did is remove it and install the one from the repository, first you will install the driver I can't remember the exact version but i'm sure it's prior to 340.xx . then add the debian sid to only upgrade the nvidia driver so it becomes compatible with CUDA 6.5 . follow my post to fix it (https://forums.kali.org/showthread.php?21956-(Guide)-Installing-Nvidia-Bumblebee-CUDA-for-Optimus-enabled-Laptops&p=40188&viewfull=1#post40188). you may have to google how to install nvidia driver 331.xx
scroll up in this page to see the packages I installed .

staticn0de
2015-06-12, 23:54
Hi there,

I haven't had the chance to be on much of late but as for the old instructions on installing from the repo:

This replaces step 9 of the guide on the first page. I had the wheezy-back ports repo added:



nano /etc/apt/sources.list
Add the following line to the file and then save
deb http://ftp.debian.org/debian wheezy-backports main contrib non-free
apt-get update


Install bumblebee-nvidia and primus


apt-get install bumblebee-nvidia primus


Install the nvidia driver (I have a note to install it separately, but it is a dependency of bumblebee-nvidia so it should already be installed)


apt-get install nvidia-glx


Remove the wheezy-backports repo and run another apt-get update. Continue on step 10 of the guide on the first page.

Alternatively, you could add debian sid instead of wheezy-backports. It has a slightly newer nvidia-driver and bumblebee version.



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

Rarity
2015-06-16, 00:08
Thank you for clarifying staticn0de.

Cricco95
2015-07-18, 10:33
When I install CUDA 7, it asks if I want install OpenGL. What should I do? Yes or no?

Cricco95
2015-07-18, 12:15
Hi staticn0de, I followed your guide to install the NVIDIA driver but when I try to run the NVIDIA*.run file i receive the following error and the installation abort:


Uninstall Debian packages first

I installed the latest non beta version of VirtualGL, and I downloaded the latest NVIDIA card driver from the official website

.log file


nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sat Jul 18 19:38:52 2015
installer version: 352.21

PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

nvidia-installer command line:
./nvidia-installer

Using: nvidia-installer ncurses user interface
-> Detected 8 CPUs online; setting concurrency level to 8.
WARNING: You do not appear to have an NVIDIA GPU supported by the 352.21 NVIDIA Linux graphics driver installed in this system. For further details, please see the appendix SUPPORTED NVIDIA GRAPHICS CHIPS in the README available on the Linux driver download page at www.nvidia.com.
-> License accepted.
-> Installing NVIDIA driver version 352.21.
-> The NVIDIA driver appears to have been installed previously using a different installer. To prevent potential conflicts, it is recommended either to update the existing installation using the same mechanism by which it was originally installed, or to uninstall the existing installation before installing this driver.

Please review the message provided by the maintainer of this alternate installation method and decide how to proceed:

Please use the Debian packages instead of the .run file.


(Answer: Abort installation)
ERROR: The installation was canceled due to the availability or presence of an alternate driver installation. Please see /var/log/nvidia-installer.log for more details.

staticn0de
2015-08-11, 12:20
Hey guys,

I just finished building Kali 2.0 from source and installing it.

Unfortunately, this guide does not work with the included gnome.

I think it's related to this bug:

https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1251281

I'll give the following a the following a try when I get the chance, otherwise feel free to best me to it.

Disabling gnome 3D acceleration check
Building Kali with an alternative to gnome (XFCE is nice) from source.

Quest
2015-08-11, 13:45
yes please let us know static. Thank you... AGAIN.

bahha
2015-08-12, 18:33
I installed the repo driver and it's working fine



filename: /lib/modules/4.0.0-kali1-amd64/updates/dkms/nvidia-current.ko
alias: char-major-195-*
version: 352.21
supported: external
license: NVIDIA
alias: pci:v00

nekromantik
2015-08-16, 00:44
I installed the repo driver and it's working fine

so in original guide you installed nvidia-current and put nvidia-current in bumblee.conf?

bahha
2015-08-17, 14:48
so in original guide you installed nvidia-current and put nvidia-current in bumblee.conf?

yes, I also installed cuda from the repo . and everything is working fine .



optirun pyrit list_cores
Pyrit 0.4.1-dev (svn r308) (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

The following cores seem available...
#1: 'CUDA-Device #1 'GeForce GT 740M''
#2: 'CPU-Core (SSE2/AES)'
#3: 'CPU-Core (SSE2/AES)'
#4: 'CPU-Core (SSE2/AES)'
#5: 'CPU-Core (SSE2/AES)'
#6: 'CPU-Core (SSE2/AES)'
#7: 'CPU-Core (SSE2/AES)'
#8: 'CPU-Core (SSE2/AES)'

Davide3i
2015-08-17, 18:43
yes, I also installed cuda from the repo . and everything is working fine .

Hi.
May I ask if you can post the changes you made in the original guide to install everything flawlessly?

bahha
2015-08-20, 13:38
Hi.
May I ask if you can post the changes you made in the original guide to install everything flawlessly?

here


apt-get install nvidia-glx
apt-get install bumblebee-nvidia primus
apt-get install nvidia-cuda-toolkit nvidia-opencl-icd


nano +22 /etc/bumblebee/bumblebee.conf

Make it read:
Driver=nvidia-current

Save and close

then edit below to add your specific BusID
you can check your id by this coammand : lspci | egrep '3D'



nano /etc/bumblebee/xorg.conf.nvidia

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

Davide3i
2015-08-21, 07:56
here


apt-get install nvidia-glx
apt-get install bumblebee-nvidia primus
apt-get install nvidia-cuda-toolkit nvidia-opencl-icd


nano +22 /etc/bumblebee/bumblebee.conf

Make it read:
Driver=nvidia-current

Save and close

then edit below to add your specific BusID
you can check your id by this coammand : lspci | egrep '3D'



nano /etc/bumblebee/xorg.conf.nvidia

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

I can't manage to install nvidia-glx. Basically you didn't download the nvidia-driver from their website, following the installation procedure in the OP guide, but let Terminal install it for you with "apt-get install bumblebee-nvidia primus", right?

Cricco95
2015-08-21, 10:04
I can't manage to install nvidia-glx. Basically you didn't download the nvidia-driver from their website, following the installation procedure in the OP guide, but let Terminal install it for you with "apt-get install bumblebee-nvidia primus", right?

I have the same problem. Following the OP guide, when I try to do an apt-get install nvidia-glx I receive an error and I can't install it

bahha
2015-08-21, 10:07
I can't manage to install nvidia-glx. Basically you didn't download the nvidia-driver from their website, following the installation procedure in the OP guide, but let Terminal install it for you with "apt-get install bumblebee-nvidia primus", right?

nvidia-glx won't install.

install this and try

apt-get install nvidia-driver

if not working add this too

apt-get install nvidia-alternative

I have both packages installed
during install if it ever asks you to configure anything ignore it .

make sure you have these source in your source.list

deb http://http.kali.org/kali sana main non-free contrib
deb http://security.kali.org/kali-security sana/updates main contrib non-free

Davide3i
2015-08-21, 14:34
nvidia-glx won't install.

install this and try

apt-get install nvidia-driver

if not working add this too

apt-get install nvidia-alternative

I have both packages installed
during install if it ever asks you to configure anything ignore it .

make sure you have these source in your source.list

deb http://http.kali.org/kali sana main non-free contrib
deb http://security.kali.org/kali-security sana/updates main contrib non-free

After some struggling, I've finally managed to make it work. Thank you. :)

Cricco95
2015-08-22, 09:02
After some struggling, I've finally managed to make it work. Thank you. :)

Can you tell me the exact steps did you do?

Davide3i
2015-08-22, 17:39
Can you tell me the exact steps did you do?

Sure.
In the original guide from the OP post I changed the step #9 with:

apt-get install bumblebee-nvidia primus

Then:

nano +22 /etc/bumblebee/bumblebee.conf

Driver=nvidia-current

Finally I jumped steps #13 and #14 and decided to install the last version of CUDA (7.0.xxx), so I kept following the original guide from step #15.

Robocamp
2015-08-27, 21:01
Hi guys !

I eventually got it to work as well.
I'm running a Dell Laptop with 64-bits Intel Core i7 2670QM CPU, an Intel i915 GPU and a NVidia Geforce GT525M GPU card as well.
I'm using Kali 2 (with update and upgrade) and I used "bumblebee-nvidia + primus" from the repo and the CUDA 7.0.28
The weird thing is optirun won't work the 1st time I run it, but only the 2nd time and after.
With the GPU core an the 7 CPU cores, PYRIT goes up to 6k PMK/s. Not that bad after all.

If I can be of any help to anyone, please feel free to ask.

MrUnruly
2015-08-28, 20:49
I followed your steps Davide3i but when I run "optirun glxspheres64" I get an error that the GPU cannot be accessed and that I don't have the right driver. Am I missing something?

MrUnruly
2015-08-29, 14:27
I followed your steps Davide3i but when I run "optirun glxspheres64" I get an error that the GPU cannot be accessed and that I don't have the right driver. Am I missing something?

The exact errors, for optirun glxspheres64:

[ 294.432628] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

[ 294.432651] [ERROR]Aborting because fallback start is disabled.

for modinfo nvidia:

modinfo: ERROR: Module nvidia not found.

EDIT:

I edited /etc/bumblebee/bumblebee.conf and changed nvidia-current to nvidia and then optirun glxspheres64 worked but modinfo nvidia still gives me an error but iv managed to install cuda, hashcat and pyrit all working fine.

Davide3i
2015-08-31, 13:46
I think that many errors may be caused by different systems' configurations. Still, if CUDA's computation is working, I would not mind to all the "errors" you've encountered.

st0rm1x
2015-09-11, 09:41
Hi guys !

I eventually got it to work as well.
I'm running a Dell Laptop with 64-bits Intel Core i7 2670QM CPU, an Intel i915 GPU and a NVidia Geforce GT525M GPU card as well.
I'm using Kali 2 (with update and upgrade) and I used "bumblebee-nvidia + primus" from the repo and the CUDA 7.0.28
The weird thing is optirun won't work the 1st time I run it, but only the 2nd time and after.
With the GPU core an the 7 CPU cores, PYRIT goes up to 6k PMK/s. Not that bad after all.

If I can be of any help to anyone, please feel free to ask.

Hi, if you don't mind please tell me which tutorial you follow? I have quite similar laptop, ASUS with intel 4000 HD and NVidia GeForce GT710M GPU Card. I have never succeeded to get NVidia and optimus running on this dual hybrid cpu card laptop. So I really beg for your kindness

forumkali@yopmail.com
2015-09-11, 12:19
Hi staticn0de, I followed your guide to install the NVIDIA driver but when I try to run the NVIDIA*.run file i receive the following error and the installation abort:[...]
Please use the Debian packages instead of the .run file.

In contrast to all the guides on installing the nVidia driver on Kali Linux, you must not install anything nVidia related before running the official nVidia installer.

Here is how I got the driver working.

1. Make sure your Kali Linux system is up to date:
apt-get clean && apt-get update && apt-get upgrade && apt-get dist-upgrade
2. Install the kernel headers:
apt-get install -y linux-headers-$(uname -r)
3. Download the nVidia driver (http://www.nvidia.com/Download/index.aspx?lang=en-us) for your graphics card and save it in a location convenient to you (e.g. your home directory).
4. Blacklist the nouveau driver:
make sure you have a file called "nvidia-installer-disable-nouveau.conf" inside of [/etc/modprobe.d/]. If it's not there, create it and paste inside...
blacklist nouveau
options nouveau modeset=0Enter the following commands in a terminal as root:

sed 's/quiet/quiet nouveau.modeset=0/g' -i /etc/default/grub
update-grub
update-initramfs
reboot

5. If you face the login screen after reboot, do not log in but change to a terminal with ALT+F1.
6. Log in to the terminal as root.
7. Kill GDM:
service gdm3 stop
8. Remove all nVidia related stuff:
apt-get purge nvidia-*
9. Navigate to the directory you downloaded the nVidia driver to.
10. Make sure the driver installer (*.run) is executable:
chmod +x NVidia...run
11. Start the nVidia driver installer and follow the instructions on the screen. Let it configure your X server.
12. Reboot again. You should now be fine :)

Hope that helps. At least that's how I got my system working. The nvidia-kernel-dkms package from the Kali repository, unfortunately, does not support my graphics card (GeForce 8400 GS) any more so I had to install the official nVidia driver (340.93) instead.

xInnocent
2015-09-13, 15:56
No matter what I do, I can't get this to work. Tried all sorts of guides.

AnanasBongo
2015-09-14, 08:39
Hi
which GUID should i follow now
for my MSI gp60

noobiesmall
2015-09-23, 13:00
Since Kali 2.0 everything you need is in the repo:
1. Edit your sources:

leafpad /etc/apt/sources.list

Copy paste the following repositories (remove existing lines or you can comment them out – your take). Following repo list was taken from official Kali sources.list Repositories page:


# Regular repositories
deb http://http.kali.org/kali sana main non-free contrib
deb http://security.kali.org/kali-security sana/updates main contrib non-free
# Source repositories
deb-src http://http.kali.org/kali sana main non-free contrib
deb-src http://security.kali.org/kali-security sana/updates main contrib non-free


apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y

2. Blacklist the nouveau driver:
make sure you have a file called "nvidia-installer-disable-nouveau.conf" inside of /etc/modprobe.d/. If it's not there, create it and paste inside...

blacklist nouveau
options nouveau modeset=0

Enter the following commands in a terminal as root:

sed 's/quiet/quiet nouveau.modeset=0/g' -i /etc/default/grub
update-grub
update-initramfs -u

reboot

3. Install linux headers for your kernel:

apt-get install linux-headers-$(uname -r)

4. Install dependencies we will need later. The first two are for CUDA and the others are for pyrit:

apt-get install freeglut3-dev libxmu-dev libpcap-dev libssl-dev

5. Install bumblebee, primus (this will install the Nvidia driver too):

apt-get install bumblebee-nvidia primus

6. Install Cuda, OpenCl:

apt-get install nvidia-cuda-toolkit nvidia-opencl-icd

7. Proceed to post #2 (https://forums.kali.org/showthread.php?21956-(Guide)-Installing-Nvidia-Bumblebee-CUDA-for-Optimus-enabled-Laptops&p=35240&viewfull=1#post35240) of this Guide to install cudaHashcat and Pyrit (just remember to apt-get remove them first)

geiszla
2015-09-25, 22:55
I installed all the drivers as said in the instructions (by noobiesmall), and I can run "optirun --no-failsafe glxspheres64" without any errors. My problem is, that when I run "lspci | egrep "VGA|3D"", then for VGA compatible controller, it says Intel ... Graphics Controller (NVIDIA is only there as 3D controller). Also if I run "modinfo nvidia", it says module nvidia not found. At glxinfo it says OpenGL vendor string: Intel Open Source Technology Center. It looks like it tries to use intel instead of nvidia. How can I force it to use NVidia? Or did I install the driver wrong? (I tried a LOT of tutorials, but this is the farthest I could get)

noobiesmall
2015-09-26, 04:26
I installed all the drivers as said in the instructions (by noobiesmall), and I can run "optirun --no-failsafe glxspheres64" without any errors. My problem is, that when I run "lspci | egrep "VGA|3D"", then for VGA compatible controller, it says Intel ... Graphics Controller (NVIDIA is only there as 3D controller). Also if I run "modinfo nvidia", it says module nvidia not found. At glxinfo it says OpenGL vendor string: Intel Open Source Technology Center. It looks like it tries to use intel instead of nvidia. How can I force it to use NVidia? Or did I install the driver wrong? (I tried a LOT of tutorials, but this is the farthest I could get)

modinfo nvidia doesn't work for me too.
glxspheres/64 seems to be not installed due to my tutorial. I can only run optirun glxgears
optirun glxinfo ?!?
Did you tried this?



11. Run the following and record the PCI address of your video card. It will look similar to 03:00.0


lspci | egrep 'VGA|3D'


12. Edit the xorg.conf.nvidia file so it knows the PCI address of your video card. Note that the last group of numbers is now seperated with a ":" instead of a ".". We are editing under the area 'Section "Device"'


nano /etc/bumblebee/xorg.conf.nvidia

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

geiszla
2015-09-26, 08:22
If I run "optirun glxinfo" it correctly returns the NVidia driver version:

root@AndrewLaptop:~# optirun glxinfo | grep -i nvidia
OpenGL vendor string: NVIDIA Corporation
OpenGL core profile version string: 4.4.0 NVIDIA 352.21
OpenGL core profile shading language version string: 4.40 NVIDIA via Cg compiler
OpenGL version string: 4.5.0 NVIDIA 352.21
OpenGL shading language version string: 4.50 NVIDIA


My PCI address is 1:00.0

root@AndrewLaptop:~# lspci | egrep "VGA|3D"
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 850M] (rev ff)


And I think it is correct in the xorg.conf.nvidia:

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"

# If the X server does not automatically detect your VGA device,
# you can manually set it here.
# To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
# as you see in the commented example.
# This Setting may be needed in some platforms with more than one
# nvidia card, which may confuse the proprietary driver (e.g.,
# trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.
# BusID "PCI:01:00:0"

# Setting ProbeAllGpus to false prevents the new proprietary driver
# instance spawned to try to control the integrated graphics card,
# which is already being managed outside bumblebee.
# This option doesn't hurt and it is required on platforms running
# more than one nvidia graphics card with the proprietary driver.
# (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT).
# If this option is not set, the new Xorg may blacken the screen and
# render it unusable (unless you have some way to run killall Xorg).
Option "ProbeAllGpus" "false"

Option "NoLogo" "true"
Option "UseEDID" "false"
Option "UseDisplayDevice" "none"
EndSection


What does your "nvidia-smi" and "cudaHashcat64.bin -b" say?

noobiesmall
2015-09-26, 10:39
modinfo nvidia-current

filename: /lib/modules/4.0.0-kali1-amd64/updates/dkms/nvidia-current.ko
alias: char-major-195-*
version: 352.21
supported: external
license: NVIDIA
alias: pci:v000010DEd00000E00sv*sd*bc04sc80i00*
alias: pci:v000010DEd*sv*sd*bc03sc02i00*
alias: pci:v000010DEd*sv*sd*bc03sc00i00*
depends: drm
vermagic: 4.0.0-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_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

optirun nvidia-smi

Sat Sep 26 13:38:26 2015
+------------------------------------------------------+
| NVIDIA-SMI 352.21 Driver Version: 352.21 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+================= =====+======================|
| 0 GeForce GTX 765M Off | 0000:01:00.0 N/A | N/A |
| N/A 38C P0 N/A / N/A | 13MiB / 2047MiB | N/A Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|================================================= ============================|
| 0 Not Supported |
+-----------------------------------------------------------------------------+

I don't have cudaHashcat installed ...

optirun pyrit list_cores

Pyrit 0.4.1-dev (svn r308) (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

The following cores seem available...
#1: 'CUDA-Device #1 'GeForce GTX 765M''
#2: 'CPU-Core (SSE2/AES)'
#3: 'CPU-Core (SSE2/AES)'
#4: 'CPU-Core (SSE2/AES)'
#5: 'CPU-Core (SSE2/AES)'
#6: 'CPU-Core (SSE2/AES)'
#7: 'CPU-Core (SSE2/AES)'
#8: 'CPU-Core (SSE2/AES)'

geiszla
2015-09-26, 12:47
Ok, thanks, now cudaHashcat works. Pyrit doesn't want to recognize my NVidia card, but hashcat is enough for me for now.

noobiesmall
2015-09-26, 13:06
Ok, thanks, now cudaHashcat works. Pyrit doesn't want to recognize my NVidia card, but hashcat is enough for me for now.

1. remove existing instalation first!

apt-get remove pyrit

2. Move to your home directory (I'm installing it there) and then check out the pyrit trunk

cd ~
svn checkout http://pyrit.googlecode.com/svn/trunk/ pyrit_svn

3. Build and install pyrit

cd pyrit_svn/pyrit/
python setup.py build
python setup.py install

4. Add CUDA support

cd ../cpyrit_cuda/
python setup.py build
python setup.py install

5. Test pyrit

optirun pyrit list_cores
optirun pyrit benchmark

GenesisHN
2015-10-03, 06:07
Hi, i am following this guide of @staticn0de.
i've passed install bumblebee, primus,...
First, when i install Nvidia driver, the Driver's installtion say that it found an older nvidia version , and suddenly terminate. ( i did not install nvidia before that).
I try some command:


optirun glxspheres64

Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0x20
Context is Direct
OpenGL Renderer: GeForce GT 720M/PCIe/SSE2
80.783860 frames/sec - 78.128333 Mpixels/sec
83.099757 frames/sec - 80.368102 Mpixels/sec




modinfo nvidia_current
filename: /lib/modules/4.0.0-kali1-amd64/updates/dkms/nvidia-current.ko
alias: char-major-195-*
version: 352.21
supported: external
license: NVIDIA
alias: pci:v000010DEd00000E00sv*sd*bc04sc80i00*
alias: pci:v000010DEd*sv*sd*bc03sc02i00*
alias: pci:v000010DEd*sv*sd*bc03sc00i00*
depends: drm
vermagic: 4.0.0-kali1-amd64 SMP mod_unload modversions




lspci | grep -i nvidia
04:00.0 3D controller: NVIDIA Corporation GF117M [GeForce 610M/710M/820M / GT 620M/625M/630M/720M] (rev ff)


Then, i install Cuda. At the end, the log show: Driver = not selected. When i try step23:


optirun ./deviceQuery
./deviceQuery Starting...

CUDA Device Query (Runtime API) version (CUDART static linking)

cudaGetDeviceCount returned 35
-> CUDA driver version is insufficient for CUDA runtime version
Result = FAIL



I am using Kali 2.0 Sana ( kernel 4.0.0 amd64) , gcc version = 4.9.2, GPU GT 720M (optimus)
==> Driver version: 352.21
Cuda v7.5 (64bit) ==> version: 352.39 ???
Please help me to resolve this problem

bahha
2015-10-09, 16:39
Hi, i am following this guide of @staticn0de.
i've passed install bumblebee, primus,...
First, when i install Nvidia driver, the Driver's installtion say that it found an older nvidia version , and suddenly terminate. ( i did not install nvidia before that).
I try some command:


optirun glxspheres64

Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0x20
Context is Direct
OpenGL Renderer: GeForce GT 720M/PCIe/SSE2
80.783860 frames/sec - 78.128333 Mpixels/sec
83.099757 frames/sec - 80.368102 Mpixels/sec




modinfo nvidia_current
filename: /lib/modules/4.0.0-kali1-amd64/updates/dkms/nvidia-current.ko
alias: char-major-195-*
version: 352.21
supported: external
license: NVIDIA
alias: pci:v000010DEd00000E00sv*sd*bc04sc80i00*
alias: pci:v000010DEd*sv*sd*bc03sc02i00*
alias: pci:v000010DEd*sv*sd*bc03sc00i00*
depends: drm
vermagic: 4.0.0-kali1-amd64 SMP mod_unload modversions




lspci | grep -i nvidia
04:00.0 3D controller: NVIDIA Corporation GF117M [GeForce 610M/710M/820M / GT 620M/625M/630M/720M] (rev ff)


Then, i install Cuda. At the end, the log show: Driver = not selected. When i try step23:


optirun ./deviceQuery
./deviceQuery Starting...

CUDA Device Query (Runtime API) version (CUDART static linking)

cudaGetDeviceCount returned 35
-> CUDA driver version is insufficient for CUDA runtime version
Result = FAIL



I am using Kali 2.0 Sana ( kernel 4.0.0 amd64) , gcc version = 4.9.2, GPU GT 720M (optimus)
==> Driver version: 352.21
Cuda v7.5 (64bit) ==> version: 352.39 ???
Please help me to resolve this problem

I had the same issue after I upgraded to kali 2.0 .
I fixed it by installing cuda 6.0.37 and the driver352.21 from the repositories using synaptic manager .
now everything is working

orasio2
2015-10-17, 11:32
Hi, i'm stuck on step 14.
After reboot the system it show me white screen and a message, it says "Oh no! Something has gone wrong. a problem has occurred and the system can't recover. Please log out and try again".
I'm trying to install Nvidia v352.50 (i also installed virtalgl 4.2.1, latest version available)
I also tried every tutorial on the web but nothing worked. On every guide i get the same problem, white screen.
I gotta a gt 755m, and trying to install drivers on Kali Sana 2.0.
another strange things is that when i run "modprobe -r nouveau" it say me an error, "MMIO write of 0x00000002 FAULT at...", but if i run again "modprobe -r nouveau" it won't be shown again.

hydratedscrub
2015-10-19, 04:04
Hi, i'm stuck on step 14.
After reboot the system it show me white screen and a message, it says "Oh no! Something has gone wrong. a problem has occurred and the system can't recover. Please log out and try again".
I'm trying to install Nvidia v352.50 (i also installed virtalgl 4.2.1, latest version available)
I also tried every tutorial on the web but nothing worked. On every guide i get the same problem, white screen.
I gotta a gt 755m, and trying to install drivers on Kali Sana 2.0.
another strange things is that when i run "modprobe -r nouveau" it say me an error, "MMIO write of 0x00000002 FAULT at...", but if i run again "modprobe -r nouveau" it won't be shown again.
You appear to have a similar issue as me, except I did not follow the OPTIMUS guide.
https://forums.kali.org/showthread.php?27934-Kali-2-0-NVIDIA-Drivers-Blinking-Cursor-of-Death
I now know my Laptop is OPTIMUS enabled, so I will give this guide a try.

duiker.ts
2015-11-27, 08:07
After several months of trying, updating from Kali 1.xxx to 2.0 along the way, I finally got it to work on a HP Pavilion :D
The point I always got stuck at was running optirun, which gave me errors ranging from GPU not found up to bumblebeed not running...

If like me you went through several scenario's maybe the following can help you:

First of all, if you have a clean install of Kali 2.0 the instructions in post 308 (https://forums.kali.org/showthread.php?21956-(Guide)-Installing-Nvidia-Bumblebee-CUDA-for-Optimus-enabled-Laptops&p=50488&viewfull=1#post50488) work. It is just the leftovers of previous attempts and some peculiar settings that might block you.

My tips:

1) before running the guide from post 308 purge anything nvidia related: apt-get remove --purge *nvidia*
Then proceed as mentioned in post 308

2) Do not install any nvidia driver on top. Installing bumblebee-nvidia does that for you. Somewhere in the installation you will get an ASCII menu for Xorg, just press OK or apt will keep on complaining that the install is not completed

3) Make sure that line 22 of /etc/bumblebee/bumblebee.conf reads Driver=nvidia, but that line 55 (?) in the [driver-nvidia] section reads KernelDriver=nvidia-current. It looks like a clean install actually does that correctly.

4) And then the real clincher: to get the card ID right in /etc/bumblebee/xorg.conf.nvidia I did the lspci | egrep 'VGA|3D' and got id PCI:0a:00.0 as a result. So I filled in BusID "PCI:0a:00:0"... And that is wrong: the xorg file doesn't work in hexadecimal, but in decimal. There is a dent in my desk where I banged my head after learning of that piece of information...

So after setting it as BusID "PCI:10:00:0" I finally got optirun to work.

Next up, installing cudaHascat and Pyrit...someday

staticn0de
2015-12-13, 06:16
Hey guys,

If anyone is still having issues, I just re-wrote the first post.

If you follow it, you will have NVIDIA Driver 352.21 (from the repo) and CUDA 7.5.18 (from the CUDA site) after 22 easy steps.

Kai2Evolution
2015-12-13, 09:25
Just registered to say Thank You! Was stuck with this since last 3 months. Thanks to "noobiesmall" for his modified guide. Thanks to duiker.ts for his checks. And finally to staticn0de, I was just gonna post that it was not working and I was making the outputs as required by staticn0de where I caught the error myself! Thanks a lot, my cudaHashcat is finally working properly.

Quest
2015-12-13, 13:04
Much appreciated static!

ocl/cuda/hashcat is at version 2.0.1 now http://hashcat.net/oclhashcat/


Full changelog v1.37 -> v2.00

...
Made the project Open-Source
...
http://hashcat.net/forum/thread-4882.html

staticn0de
2015-12-13, 22:04
Hey Quest, It's been a long time.

I made a custom deb for kali (cudahashcat-2.01) and updated second post. I'm not sure if anyone actually uses them that's why I stopped making them.

https://forums.kali.org/showthread.php?21956-(Guide)-Installing-Nvidia-Bumblebee-CUDA-for-Optimus-enabled-Laptops&p=35240&viewfull=1#post35240

Quest
2015-12-13, 22:47
Thank you kindly sir for that deb! DLing now... :cool: Yes it's been a while. Good to see you around!! *might be heading your way if I find a project in Oz*

I do not know how many use it. I do know that oclhashcat is a different animal that must be handled with care. I had a very close call. It almost killed my lappy once. After a catastrophic shutdown due to overheat, it took 10mins to be able to re-start my comp. That was ugly and scary.

Cheers!!

staticn0de
2015-12-13, 23:47
Thank you kindly sir for that deb! DLing now... :cool: Yes it's been a while. Good to see you around!! *might be heading your way if I find a project in Oz*

I do not know how many use it. I do know that oclhashcat is a different animal that must be handled with care. I had a very close call. It almost killed my lappy once. After a catastrophic shutdown due to overheat, it took 10mins to be able to re-start my comp. That was ugly and scary.

Cheers!!

That is a close call! I normally save the number crunching for my desktops with water-cooling for that exact reason. That, and you can't really compare the results from a full size card to a laptop chipset.

sl1k3rx
2015-12-17, 04:51
Hey,
ive some problems can you help me pls iam new on Kali and tried this tutorial but it doesnt load the bumblebee daemon.
here are the outputs:

1: lspci | egrep 'VGA|3D'



01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 420M] (rev a1)


2: modprobe nvidia


No Output :/


3: modprobe nvidia-uvm



No Output :/


4:optirun glxspheres64


[ 748.065193] [ERROR]The Bumblebee daemon has not been started yet or the socket path /var/run/bumblebee.socket was incorrect.
[ 748.065249] [ERROR]Could not connect to bumblebee daemon - is it running?


5: dmesg | tail -n 100


[ 21.232850] sound hdaudioC0D0: autoconfig for ALC272X: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[ 21.232855] sound hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 21.232856] sound hdaudioC0D0: hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[ 21.232858] sound hdaudioC0D0: mono: mono_out=0x0
[ 21.232859] sound hdaudioC0D0: inputs:
[ 21.232861] sound hdaudioC0D0: Internal Mic=0x19
[ 21.232863] sound hdaudioC0D0: Mic=0x18
[ 21.239431] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1b.0/sound/card0/hdaudioC0D0/input12
[ 21.239547] input: HDA Intel MID Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input13
[ 21.239574] input: HDA Intel MID Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input14
[ 21.259659] input: PC Speaker as /devices/platform/pcspkr/input/input15
[ 21.740485] acer_wmi: Acer Laptop ACPI-WMI Extras
[ 21.740501] acer_wmi: Function bitmap for Communication Button: 0x1
[ 21.740504] acer_wmi: Brightness must be controlled by acpi video driver
[ 21.741046] input: Acer WMI hotkeys as /devices/virtual/input/input17
[ 21.741298] input: Acer BMA150 accelerometer as /devices/virtual/input/input18
[ 21.816795] iTCO_vendor_support: vendor-support=0
[ 21.851780] iTCO_wdt: Intel TCO WatchDog Timer Driver v1.11
[ 21.851820] iTCO_wdt: Found a HM55 TCO device (Version=2, TCOBASE=0x0460)
[ 21.851927] iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
[ 21.973041] cfg80211: Calling CRDA to update world regulatory domain
[ 22.382514] psmouse serio1: synaptics: queried max coordinates: x [..5772], y [..5086]
[ 22.425870] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input19
[ 22.425940] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input20
[ 22.425999] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input21
[ 22.426054] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input22
[ 22.498870] psmouse serio1: synaptics: Touchpad model: 1, fw: 7.2, id: 0x1c0b1, caps: 0xd04733/0xa40000/0xa0000, board id: 0, fw id: 570026
[ 22.573330] input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio1/input/input16
[ 22.669328] ACPI: Battery Slot [BAT0] (battery present)
[ 22.734189] kvm: VM_EXIT_LOAD_IA32_PERF_GLOBAL_CTRL does not work properly. Using workaround
[ 22.921024] media: Linux media interface: v0.10
[ 23.040435] EXT4-fs (dm-1): re-mounted. Opts: errors=remount-ro
[ 23.131632] Linux video capture interface: v2.00
[ 23.518833] ath: phy0: ASPM enabled: 0x43
[ 23.518838] ath: EEPROM regdomain: 0x65
[ 23.518839] ath: EEPROM indicates we should expect a direct regpair map
[ 23.518841] ath: Country alpha2 being used: 00
[ 23.518842] ath: Regpair used: 0x65
[ 23.561659] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 23.561920] ieee80211 phy0: Atheros AR9287 Rev:2 mem=0xffffc90010860000, irq=17
[ 23.676708] ACPI: AC Adapter [AC] (on-line)
[ 23.753970] uvcvideo: Found UVC 1.00 device 1.3M WebCam (064e:a219)
[ 23.763763] input: 1.3M WebCam as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/input/input23
[ 23.763856] usbcore: registered new interface driver uvcvideo
[ 23.763859] USB Video Class driver (1.1.1)
[ 23.948302] Adding 8110076k swap on /dev/mapper/Unknown--vg-swap_1. Priority:-1 extents:1 across:8110076k FS
[ 24.575674] cfg80211: World regulatory domain updated:
[ 24.575679] cfg80211: DFS Master region: unset
[ 24.575680] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[ 24.575682] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[ 24.575683] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[ 24.575685] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[ 24.575687] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[ 24.575689] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[ 24.575690] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[ 24.575691] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[ 24.575693] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[ 26.401686] EXT4-fs (sda1): mounting ext2 file system using the ext4 subsystem
[ 26.404192] EXT4-fs (sda1): mounted filesystem without journal. Opts: (null)
[ 27.220178] systemd-journald[262]: Received request to flush runtime journal from PID 1
[ 32.587342] Bluetooth: Core ver 2.20
[ 32.587360] NET: Registered protocol family 31
[ 32.587361] Bluetooth: HCI device and connection manager initialized
[ 32.587366] Bluetooth: HCI socket layer initialized
[ 32.587368] Bluetooth: L2CAP socket layer initialized
[ 32.587376] Bluetooth: SCO socket layer initialized
[ 32.986493] Netfilter messages via NETLINK v0.30.
[ 38.829311] tg3 0000:02:00.0 eth0: Link is down
[ 64.092415] wlan0: authenticate with a6:81:c4:bb:57:5a
[ 64.108775] wlan0: direct probe to a6:81:c4:bb:57:5a (try 1/3)
[ 64.310138] wlan0: send auth to a6:81:c4:bb:57:5a (try 2/3)
[ 64.334631] wlan0: authenticated
[ 64.338207] wlan0: associate with a6:81:c4:bb:57:5a (try 1/3)
[ 64.344617] wlan0: RX AssocResp from a6:81:c4:bb:57:5a (capab=0x421 status=0 aid=1)
[ 64.344745] wlan0: associated
[ 64.344809] cfg80211: Calling CRDA for country: DE
[ 64.347533] ath: EEPROM regdomain: 0x8114
[ 64.347537] ath: EEPROM indicates we should expect a country code
[ 64.347538] ath: doing EEPROM country->regdmn map search
[ 64.347539] ath: country maps to regdmn code: 0x37
[ 64.347540] ath: Country alpha2 being used: DE
[ 64.347541] ath: Regpair used: 0x37
[ 64.347542] ath: regdomain 0x8114 dynamically updated by country IE
[ 64.347583] cfg80211: Regulatory domain changed to country: DE
[ 64.347584] cfg80211: DFS Master region: ETSI
[ 64.347585] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[ 64.347587] cfg80211: (2400000 KHz - 2483500 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[ 64.347589] cfg80211: (5150000 KHz - 5250000 KHz @ 80000 KHz, 200000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[ 64.347591] cfg80211: (5250000 KHz - 5350000 KHz @ 80000 KHz, 200000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[ 64.347592] cfg80211: (5470000 KHz - 5725000 KHz @ 160000 KHz), (N/A, 2698 mBm), (0 s)
[ 64.347593] cfg80211: (57000000 KHz - 66000000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
[ 364.967021] wlan0: AP a6:81:c4:bb:57:5a changed bandwidth, new config is 2412 MHz, width 1 (2412/0 MHz)
[ 701.849901] perf interrupt took too long (2508 > 2500), lowering kernel.perf_event_max_sample_rate to 50000
[ 740.822204] [drm] Initialized drm 1.1.0 20060810
[ 740.997184] nvidia: module license 'NVIDIA' taints kernel.
[ 740.997191] Disabling lock debugging due to kernel taint
[ 741.007453] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=none:ow ns=io+mem
[ 741.007938] [drm] Initialized nvidia-drm 0.0.0 20150116 for 0000:01:00.0 on minor 0
[ 741.007944] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 352.21 Tue Jun 9 21:53:31 PDT 2015
[ 741.030624] nvidia_uvm: Loaded the UVM driver, major device number 246


6: echo $PATH


/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/VirtualGL/bin:/usr/local/cuda-7.5/bin

sl1k3rx
2015-12-17, 04:53
7: 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-current
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


8: cat /etc/bumblebee/xorg.conf.nvidia

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"
# If the X server does not automatically detect your VGA device,
# you can manually set it here.
# To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
# as you see in the commented example.
# This Setting may be needed in some platforms with more than one
# nvidia card, which may confuse the proprietary driver (e.g.,
# trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.
# BusID "PCI:01:00:0"

# Setting ProbeAllGpus to false prevents the new proprietary driver
# instance spawned to try to control the integrated graphics card,
# which is already being managed outside bumblebee.
# This option doesn't hurt and it is required on platforms running
# more than one nvidia graphics card with the proprietary driver.
# (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT).
# If this option is not set, the new Xorg may blacken the screen and
# render it unusable (unless you have some way to run killall Xorg).
Option "ProbeAllGpus" "false"

Option "NoLogo" "true"
Option "UseEDID" "false"
Option "UseDisplayDevice" "none"
EndSection


9:service bumblebeed restart


No Output :/


10: modinfo nvidia


modinfo: ERROR: Module nvidia not found.


11: find 2> /dev/null / -name nvidia*.ko


/var/lib/dkms/nvidia-current/352.21/4.0.0-kali1-amd64/x86_64/module/nvidia-current.ko
/var/lib/dkms/nvidia-current/352.21/4.0.0-kali1-amd64/x86_64/module/nvidia-uvm.ko
/lib/modules/4.0.0-kali1-amd64/updates/dkms/nvidia-current.ko
/lib/modules/4.0.0-kali1-amd64/updates/dkms/nvidia-uvm.ko

staticn0de
2015-12-17, 10:52
Hi sl1k3rx,

Welcome to the forum.

Are you sure you have an optimus laptop? I can't see your intel card in dmesg or lspci.

For example, mine shows:


root@kali:~# lspci | egrep 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09)
03:00.0 3D controller: NVIDIA Corporation GK208M [GeForce GT 740M] (rev ff)


What is the full output of lspci? (no parameters)

rat
2015-12-20, 13:23
1.

lspci | egrep 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09)
04:00.0 3D controller: NVIDIA Corporation GF117M [GeForce 610M/710M/820M / GT 620M/625M/630M/720M] (rev ff)
2.

modprobe nvidia --> NO ouput in terminal
3.

modprobe nvidia-uvm --> NO ouput in terminal
4.

modinfo nvidia
modinfo: ERROR: Module nvidia not found
$ modinfo nvidia-uvm
filename: /lib/modules/4.0.0-kali1-amd64/updates/dkms/nvidia-uvm.ko
supported: external
license: MIT
depends: nvidia
vermagic: 4.0.0-kali1-amd64 SMP mod_unload modversions
parm: NVuvm_prefetch_stats:int
parm: NVuvm_prefetch_threshold:int
parm: NVuvm_prefetch_adaptive:int
parm: NVuvm_prefetch_epoch:int
parm: NVuvm_prefetch_sparsity_inc:int
parm: NVuvm_prefetch_sparsity_dec:int
parm: NVuvm_prefetch:int


5.

echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/VirtualGL/bin:/usr/local/cuda-7.5/bin
6.

dmesg | tail -n 100
[ 27.169640] systemd-journald[271]: Received request to flush runtime journal from PID 1
[ 33.199522] bbswitch: version 0.8
[ 33.199530] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[ 33.199539] bbswitch: Found discrete VGA device 0000:04:00.0: \_SB_.PCI0.RP05.PEGP
[ 501.380850] nvidia: module license 'NVIDIA' taints kernel.
[ 501.380856] Disabling lock debugging due to kernel taint
[ 501.839747] nvidia 0000:04:00.0: enabling device (0000 -> 0003)
[ 501.840241] [drm] Initialized nvidia-drm 0.0.0 20150116 for 0000:04:00.0 on minor 1
[ 501.840246] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 352.21 Tue Jun 9 21:53:31 PDT 2015
[ 501.869241] nvidia_uvm: Loaded the UVM driver, major device number 248
[ 519.056665] vgaarb: this pci device is not a vga device
[ 519.074805] ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150204/nsarguments-95)
[ 519.074864] ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150204/nsarguments-95)
[ 519.074896] ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150204/nsarguments-95)
[ 519.074925] ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150204/nsarguments-95)
[ 519.074953] ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150204/nsarguments-95)
[ 519.074981] ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150204/nsarguments-95)
[ 519.075026] ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150204/nsarguments-95)
[ 519.075055] ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150204/nsarguments-95)
[ 519.092205] ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150204/nsarguments-95)
[ 519.296065] vgaarb: this pci device is not a vga device
[ 526.205863] ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150204/nsarguments-95)

7.

cat /etc/bumblebee/bumblebee.conf
[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-current
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
8.

cat /etc/bumblebee/xorg.conf.nvidia
Section "ServerLayout"
Identifier "Layout0"
Option "AutoAddDevices" "false"
Option "AutoAddGPU" "false"
EndSection

Section "Device"
Identifier "DiscreteNvidia"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BusID "PCI:04:00:0"

# If the X server does not automatically detect your VGA device,
# you can manually set it here.
# To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
# as you see in the commented example.
# This Setting may be needed in some platforms with more than one
# nvidia card, which may confuse the proprietary driver (e.g.,
# trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.
# BusID "PCI:01:00:0"

# Setting ProbeAllGpus to false prevents the new proprietary driver
# instance spawned to try to control the integrated graphics card,
# which is already being managed outside bumblebee.
# This option doesn't hurt and it is required on platforms running
# more than one nvidia graphics card with the proprietary driver.
# (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT).
# If this option is not set, the new Xorg may blacken the screen and
# render it unusable (unless you have some way to run killall Xorg).
Option "ProbeAllGpus" "false"

Option "NoLogo" "true"
Option "UseEDID" "false"
Option "UseDisplayDevice" "none"
EndSection
9.


find 2> /dev/null / -name nvidia*.ko
/var/lib/dkms/nvidia-current/352.21/4.0.0-kali1-amd64/x86_64/module/nvidia-current.ko
/var/lib/dkms/nvidia-current/352.21/4.0.0-kali1-amd64/x86_64/module/nvidia-uvm.ko
/lib/modules/4.0.0-kali1-amd64/updates/dkms/nvidia-current.ko
/lib/modules/4.0.0-kali1-amd64/updates/dkms/nvidia-uvm.ko
10.
cat /etc/modprobe.d/nvidia.conf
alias nvidia nvidia-current
remove nvidia-current rmmod nvidia nvidia-uvm
11.


ls /lib/modules/3.14-kali1-amd64/updates/dkms
ls: cannot access /lib/modules/3.14-kali1-amd64/updates/dkms: No such file or directory
12.

cat /lib/modules/3.14-kali1-amd64/modules.dep | grep -i nvidia
cat: /lib/modules/3.14-kali1-amd64/modules.dep: No such file or directory
13.

dmesg
[ 501.380850] nvidia: module license 'NVIDIA' taints kernel.
[ 501.380856] Disabling lock debugging due to kernel taint
[ 501.839747] nvidia 0000:04:00.0: enabling device (0000 -> 0003)
[ 501.840241] [drm] Initialized nvidia-drm 0.0.0 20150116 for 0000:04:00.0 on minor 1
[ 501.840246] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 352.21 Tue Jun 9 21:53:31 PDT 2015
[ 501.869241] nvidia_uvm: Loaded the UVM driver, major device number 248
[ 519.056665] vgaarb: this pci device is not a vga device


14.

lsmod
Module Size Used by
nvidia_uvm 73728 0
nvidia 8519680 1 nvidia_uvm
nfnetlink_queue 24576 0
nfnetlink_log 20480 0
nfnetlink 16384 2 nfnetlink_log,nfnetlink_queue
bluetooth 425984 0
bbswitch 16384 0
binfmt_misc 20480 1

staticn0de
2015-12-20, 23:58
Hi Rat,

Welcome to the forum. What is the error message you are receiving? What is not working? Can you use optirun glxspheres64?

Does CUDA work?

Also, modinfo nvidia-current should work

bt5kl
2015-12-31, 13:02
how to install graphic driver on kali linux please help me :
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)

staticn0de
2016-01-01, 04:00
how to install graphic driver on kali linux please help me :
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)

I'm going to need a lot more information than that. If you want help, post the outputs of the questions on the first page.

But from what I can see, you don't have an NVIDIA chip set.

Quest
2016-01-01, 10:50
xD


Best to you for 2016 static! :)

Edelweiss
2016-01-11, 19:53
Hello everyone, I beg your help. I trying to solve this problem is not the first day...
Laptop Dexp H168: both Intel and Nvidia cards (Optimus?).
When I was buying a laptop on it was installed Windows 8. So, i deleted it. The next step was installing Kali 2.0 Sana.
I made '.iso' on USB via Win32DiskImager (to my luck it works fine).
Firstly i made: "EPS" (250M bootable), "/" (100G), "swap" (2xRAM), "opt" (50G logical), "home" (650G logical).
Kali was installed and worked correctly (how i think). In "lspci | egrep 'VGA|3D'" were:

00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
01:00.0 VGA compatible controller: NVIDIA Corporation GK108M [GeForce GT 940M] (rev 02)
When i tried to install Nvidia drivers via:

apt-get install nvidia-kernel-$(uname -r)
aptitude install nvidia-kernel-dkms
aptitude install nvidia-xconfig
I had a white screen with "Oh, No! Something....blablabla". And Kali wasn't loaded. I decided to reinstall Kali...
When i done this (yes, i'm done this) Kali worked correctly, but in "lspci | egrep 'VGA|3D'" now:

00:02:0 VGA compatible controller: Intel Corporation Device 191b (rev 06)
01:00:0 3D controller: NVIDIA Corporation Device 1347 (rev a2)
I decided that the problem is improper installation of the drivers and decided to install Nvidia again, as it is written in the first post of this thread.
Before the number '9' everything goes perfectly, but then ... When i tried to 'apt-get install bumblebee-nvidia primus' the videocard's fan started to make much noise. And when this commands was executed the laptop was himself halted. When i tried to start OS i had black terminal screen:

Kali GNU/Linux 2.0 Kali tty1
Kali login: __
but it was frozen and didn't react. After some time (3-5 minutes) switches itself off again. So the circle.
I tried to reinstall Kali and Nvidia another 2 times, but the same.
What i should do? Variants such as "Throw your computer" will not be accepted :)

Edelweiss
2016-01-12, 19:30
Tried to install Nvidia drivers from post #305 of this thread:
After i complete:

apt-get install bumblebee-nvidia primus
Videocard's fan started to rotate much, but i had managed do reboot. When i try load Kali i have the same message:

Kali GNU/Linux 2.0 Kali tty1
Kali login: __
So, i entered in 'Rescue mode' and did '10' and '12' items of this (https://forums.kali.org/showthread.php?21956-(Guide)-Installing-Nvidia-Bumblebee-CUDA-for-Optimus-enabled-Laptops&p=35239&viewfull=1#post35239).
After reboot i had the next message:

Kali GNU/Linux 2.0 Kali tty1
Kali login: [ 40.122326] INFO: rcu_sched detected stalls on CPUs/tasks: { 2} (detected by 0, t=5253 jiffies, g=1442, c=1441m q=836)
and shutdown after 3-5 minutes again...
Would you please show me where to go? Thanks :(

reintakura
2016-01-24, 15:14
Hi all & stanicn0de

I follow your totur on first page

stuck at step 15



root@kali:~# optirun glxspheres64
[ 267.653858] [ERROR]Cannot access secondary GPU - error: [XORG] (EE)

[ 267.653947] [ERROR]Aborting because fallback start is disabled.




root@kali:~# modinfo nvidia
modinfo: ERROR: Module nvidia not found.


-----------------------------------------

lspci | egrep 'VGA|3D'


root@kali:~# lspci | egrep -i 'vga|3d'
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 GF108M [GeForce GT 540M] (rev a1)

modprobe nvidia


No Output

modprobe nvidia-uvm


No Output

optirun glxspheres64


[ 1166.593615] [ERROR]Cannot access secondary GPU - error: [XORG] (EE)

[ 1166.593703] [ERROR]Aborting because fallback start is disabled.


dmesg | tail -n 50


[ 24.124210] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[ 24.124218] bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEGR.GFX0
[ 24.124235] ACPI Warning: \_SB_.PCI0.PEGR.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150818/nsarguments-95)
[ 24.124397] bbswitch: detected an Optimus _DSM function
[ 24.124413] pci 0000:01:00.0: enabling device (0000 -> 0003)
[ 24.124421] bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is on
[ 24.127783] bbswitch: disabling discrete graphics
[ 24.127799] ACPI Warning: \_SB_.PCI0.PEGR.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150818/nsarguments-95)
[ 24.324051] wlan0: authenticate with 02:1f:d4:04:19:b9
[ 24.338573] wlan0: send auth to 02:1f:d4:04:19:b9 (try 1/3)
[ 24.342232] wlan0: authenticated
[ 24.346262] wlan0: associate with 02:1f:d4:04:19:b9 (try 1/3)
[ 24.357030] wlan0: RX AssocResp from 02:1f:d4:04:19:b9 (capab=0x431 status=0 aid=5)
[ 24.357131] wlan0: associated
[ 24.357154] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 24.359861] ath: EEPROM regdomain: 0x8348
[ 24.359865] ath: EEPROM indicates we should expect a country code
[ 24.359866] ath: doing EEPROM country->regdmn map search
[ 24.359868] ath: country maps to regdmn code: 0x3a
[ 24.359869] ath: Country alpha2 being used: US
[ 24.359870] ath: Regpair used: 0x3a
[ 24.359872] ath: regdomain 0x8348 dynamically updated by country IE
[ 24.359896] cfg80211: Regulatory domain changed to country: US
[ 24.359897] cfg80211: DFS Master region: FCC
[ 24.359898] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[ 24.359901] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
[ 24.359903] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 1700 mBm), (N/A)
[ 24.359905] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2300 mBm), (0 s)
[ 24.359907] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2300 mBm), (0 s)
[ 24.359909] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A)
[ 24.359910] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
[ 34.433831] fuse init (API version 7.23)
[ 36.010157] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 36.010167] Bluetooth: BNEP filters: protocol multicast
[ 36.010186] Bluetooth: BNEP socket layer initialized
[ 36.211345] Bluetooth: RFCOMM TTY layer initialized
[ 36.211374] Bluetooth: RFCOMM socket layer initialized
[ 36.211398] Bluetooth: RFCOMM ver 1.11
[ 266.589460] bbswitch: enabling discrete graphics
[ 267.442938] nvidia: module license 'NVIDIA' taints kernel.
[ 267.442948] Disabling lock debugging due to kernel taint
[ 267.461294] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=none:ow ns=none
[ 267.462114] [drm] Initialized nvidia-drm 0.0.0 20150116 for 0000:01:00.0 on minor 1
[ 267.462128] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 352.55 Thu Oct 8 15:18:00 PDT 2015
[ 1156.534343] nvidia_uvm: Loaded the UVM driver, major device number 246
[ 1239.776637] nvidia_uvm: Unregistered the UVM driver
[ 1239.799211] [drm] Module unloaded
[ 1239.825001] bbswitch: disabling discrete graphics
[ 1239.825018] ACPI Warning: \_SB_.PCI0.PEGR.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150818/nsarguments-95)
[ 1239.838811] pci 0000:01:00.0: Refused to change power state, currently in D0



echo $PATH


/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/VirtualGL/bin:/usr/local/cuda-7.5/bin

cat /etc/bumblebee/bumblebee.conf




cat /etc/bumblebee/xorg.conf.nvidia


# 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-current
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

service bumblebeed restart




modinfo nvidia


modinfo: ERROR: Module nvidia not found.

find 2> /dev/null / -name nvidia*.ko


/var/lib/dkms/nvidia-current/352.55/4.3.0-kali1-amd64/x86_64/module/nvidia-current.ko
/var/lib/dkms/nvidia-current/352.55/4.3.0-kali1-amd64/x86_64/module/nvidia-current-uvm.ko
/lib/modules/4.3.0-kali1-amd64/updates/dkms/nvidia-current.ko
/lib/modules/4.3.0-kali1-amd64/updates/dkms/nvidia-current-uvm.ko


Suggestion or just a little help i'll appreciate it :)

unt3rnu11
2016-01-24, 21:01
root@0b51d14n:~/NVIDIA_CUDA-7.5_Samples/1_Utilities/deviceQuery# optirun ./deviceQuery
./deviceQuery Starting...

CUDA Device Query (Runtime API) version (CUDART static linking)

Detected 1 CUDA Capable device(s)

Device 0: "GeForce 920M"
CUDA Driver Version / Runtime Version 7.5 / 7.5
CUDA Capability Major/Minor version number: 3.5
Total amount of global memory: 1024 MBytes (1073610752 bytes)
( 2) Multiprocessors, (192) CUDA Cores/MP: 384 CUDA Cores
GPU Max Clock rate: 954 MHz (0.95 GHz)
Memory Clock rate: 900 Mhz
Memory Bus Width: 64-bit
L2 Cache Size: 524288 bytes
Maximum Texture Dimension Size (x,y,z) 1D=(65536), 2D=(65536, 65536), 3D=(4096, 4096, 4096)
Maximum Layered 1D Texture Size, (num) layers 1D=(16384), 2048 layers
Maximum Layered 2D Texture Size, (num) layers 2D=(16384, 16384), 2048 layers
Total amount of constant memory: 65536 bytes
Total amount of shared memory per block: 49152 bytes
Total number of registers available per block: 65536
Warp size: 32
Maximum number of threads per multiprocessor: 2048
Maximum number of threads per block: 1024
Max dimension size of a thread block (x,y,z): (1024, 1024, 64)
Max dimension size of a grid size (x,y,z): (2147483647, 65535, 65535)
Maximum memory pitch: 2147483647 bytes
Texture alignment: 512 bytes
Concurrent copy and kernel execution: Yes with 1 copy engine(s)
Run time limit on kernels: Yes
Integrated GPU sharing Host Memory: No
Support host page-locked memory mapping: Yes
Alignment requirement for Surfaces: Yes
Device has ECC support: Disabled
Device supports Unified Addressing (UVA): Yes
Device PCI Domain ID / Bus ID / location ID: 0 / 4 / 0
Compute Mode:
< Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) >

deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 7.5, CUDA Runtime Version = 7.5, NumDevs = 1, Device0 = GeForce 920M
Result = PASS

THANKS.

Bobbybaum
2016-01-28, 12:15
Hi all, unfortunately I have the same issue like reintakura:

lspci | egrep 'VGA|3D'


00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 18)
01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 425M] (rev a1)


modprobe nvidia, modprobe nvidia-uvm

No Output

optirun glxspheres64


[ 3464.033594] [ERROR]Cannot access secondary GPU - error: [XORG] (EE)

[ 3464.033700] [ERROR]Aborting because fallback start is disabled.


dmesg | tail -n 50


[ 11.678275] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[ 12.324145] Adding 7971836k swap on /dev/sda5. Priority:-1 extents:1 across:7971836k FS
[ 14.535880] intel ips 0000:00:1f.6: i915 driver attached, reenabling gpu turbo
[ 18.918289] Bluetooth: Core ver 2.20
[ 18.918308] NET: Registered protocol family 31
[Bluetooth]
[ 18.969846] Netfilter messages via NETLINK v0.30.
[IPv6]
[wlan0]
[ 23.267068] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 23.270952] cfg80211: Regulatory domain changed to country: DE
[ 23.270956] cfg80211: DFS Master region: ETSI
[ 23.270958] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[ 23.270960] cfg80211: (2400000 KHz - 2483500 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[ 23.270963] cfg80211: (5150000 KHz - 5250000 KHz @ 80000 KHz, 200000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[ 23.270965] cfg80211: (5250000 KHz - 5350000 KHz @ 80000 KHz, 200000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[ 23.270966] cfg80211: (5470000 KHz - 5725000 KHz @ 160000 KHz), (N/A, 2698 mBm), (0 s)
[ 23.270968] cfg80211: (57000000 KHz - 66000000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
[ 23.872947] sha256_ssse3: Using SSSE3 optimized SHA-256 implementation
[ 24.118613] bbswitch: version 0.8
[ 24.118621] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[ 24.118629] bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.P0P1.PEGP
[ 24.118647] ACPI Warning: \_SB_.PCI0.P0P1.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150818/nsarguments-95)
[ 24.118836] bbswitch: detected an Optimus _DSM function
[ 24.118852] pci 0000:01:00.0: enabling device (0006 -> 0007)
[ 24.118859] bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is on
[ 24.120831] bbswitch: disabling discrete graphics
[ 24.120845] ACPI Warning: \_SB_.PCI0.P0P1.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150818/nsarguments-95)
[ 31.993462] fuse init (API version 7.23)
[Bluetooth]
[ 94.050737] bbswitch: enabling discrete graphics
[ 94.383372] nvidia: module license 'NVIDIA' taints kernel.
[ 94.383381] Disabling lock debugging due to kernel taint
[ 94.395197] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=none:ow ns=none
[ 94.396188] [drm] Initialized nvidia-drm 0.0.0 20150116 for 0000:01:00.0 on minor 1
[ 94.396194] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 352.55 Thu Oct 8 15:18:00 PDT 2015

Bobbybaum
2016-01-28, 12:17
echo $PATH


/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/VirtualGL/bin:/usr/local/cuda-7.5/bin

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-current
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


cat /etc/bumblebee/xorg.conf.nvidia



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"

# If the X server does not automatically detect your VGA device,
# you can manually set it here.
# To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
# as you see in the commented example.
# This Setting may be needed in some platforms with more than one
# nvidia card, which may confuse the proprietary driver (e.g.,
# trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.
# BusID "PCI:01:00:0"

# Setting ProbeAllGpus to false prevents the new proprietary driver
# instance spawned to try to control the integrated graphics card,
# which is already being managed outside bumblebee.
# This option doesn't hurt and it is required on platforms running
# more than one nvidia graphics card with the proprietary driver.
# (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT).
# If this option is not set, the new Xorg may blacken the screen and
# render it unusable (unless you have some way to run killall Xorg).
Option "ProbeAllGpus" "false"

Option "NoLogo" "true"
Option "UseEDID" "false"
Option "UseDisplayDevice" "none"
EndSection


service bumblebeed restart


No Output

modinfo nvidia-current



filename: /lib/modules/4.3.0-kali1-amd64/updates/dkms/nvidia-current.ko
alias: char-major-195-*
version: 352.55
supported: external
license: NVIDIA
alias: pci:v000010DEd00000E00sv*sd*bc04sc80i00*
alias: pci:v000010DEd*sv*sd*bc03sc02i00*
alias: pci:v000010DEd*sv*sd*bc03sc00i00*
depends: drm
vermagic: 4.3.0-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_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


find 2> /dev/null / -name nvidia*.ko



/lib/modules/4.3.0-kali1-amd64/updates/dkms/nvidia-current-uvm.ko
/lib/modules/4.3.0-kali1-amd64/updates/dkms/nvidia-current.ko
/var/lib/dkms/nvidia-current/352.55/4.3.0-kali1-amd64/x86_64/module/nvidia-current-uvm.ko
/var/lib/dkms/nvidia-current/352.55/4.3.0-kali1-amd64/x86_64/module/nvidia-current.ko


Thanks for your help!

int0xcc
2016-02-11, 10:08
Bumblebee pkg needed to be updated to work with new Xorg.

I have solved problem by changing Xorg path in bumblebee.

Uncomment source repo in /etc/apt/sources.list and do:

apt-get update
apt-get install devscripts
apt-get build-dep bumblebee
apt-get source bumblebee
sed -i 's/\"Xorg\"/\"\/usr\/lib\/xorg\/Xorg\"/' bumblebee-3.2.1/src/bbsecondary.h
cd bumblebee-3.2.1/
dpkg-buildpackage -us -uc -nc
dpkg -i ../bumblebee_3.2.1-10_amd64.deb
service bumblebeed restart

int0xcc
2016-02-11, 10:18
Bumblebee pkg needed to be updated to work with new Xorg.

I have solved problem by changing Xorg path in bumblebee.

Uncomment source repo in /etc/apt/sources.list and do:

apt-get update
apt-get install devscripts
apt-get build-dep bumblebee
apt-get source bumblebee
sed -i 's/\"Xorg\"/\"\/usr\/lib\/xorg\/Xorg\"/' bumblebee-3.2.1/src/bbsecondary.h
cd bumblebee-3.2.1/
dpkg-buildpackage -us -uc -nc
dpkg -i ../bumblebee_3.2.1-10_amd64.deb
service bumblebeed restart

bt5kl
2016-02-12, 13:31
how to install graphic on lenovo l510 (thinkpad) Lenovo Mobile Intel® GM45 Express Chipset

root@BT5KL:~# lspci
00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:1a.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
00:1a.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
00:1a.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 3 (rev 03)
00:1c.3 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 4 (rev 03)
00:1c.4 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 5 (rev 03)
00:1c.5 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 6 (rev 03)
00:1d.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
00:1f.0 ISA bridge: Intel Corporation ICH9M LPC Interface Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation 82801IBM/IEM (ICH9M/ICH9M-E) 4 port SATA Controller [AHCI mode] (rev 03)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
02:00.0 System peripheral: JMicron Technology Corp. SD/MMC Host Controller
02:00.2 SD Host controller: JMicron Technology Corp. Standard SD Host Controller
02:00.3 System peripheral: JMicron Technology Corp. MS Host Controller
02:00.4 System peripheral: JMicron Technology Corp. xD Host Controller
05:00.0 Network controller: Intel Corporation PRO/Wireless 5100 AGN [Shiloh] Network Connection
08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 03)

Tx/Rx
2016-02-17, 21:39
Hoping someone can help here. Desktop system with 64-bit Kali 2.0 Rolling installed to HDD.

When running(as root) the CUDA install, I get the following output:


chmod +x cuda_7.5.18_linux.run
./cuda_7.5.18_linux.run

Accept the EULA
Select yes to unsupported configuration
No to graphics driver
Yes to the toolkit
Accept default location
Yes to symbolic link
Yes to samples
Yes to default samples location
The toolkit will install

ERROR:
Error: unsupported compiler: 5.3.1. Use –override to override this check.
Missing recommended library: libGLU.so
Missing recommended library: libXi.so
Missing recommended library: libXmu.so

Error: Cannot find Toolkit in /usr/local/cuda-7.5


So, the error seems pretty obvious that I do not have the correct compiler, but how should I find the correct one?

I did install all the CUDA dependencies:


apt-get install freeglut3-dev libxmu-dev libpcap-dev libssl-dev


Any help is much appreciated!

DinoS
2016-02-19, 16:43
Bumblebee pkg needed to be updated to work with new Xorg.

I have solved problem by changing Xorg path in bumblebee.

Uncomment source repo in /etc/apt/sources.list and do:

apt-get update
apt-get install devscripts
apt-get build-dep bumblebee
apt-get source bumblebee
sed -i 's/\"Xorg\"/\"\/usr\/lib\/xorg\/Xorg\"/' bumblebee-3.2.1/src/bbsecondary.h
cd bumblebee-3.2.1/
dpkg-buildpackage -us -uc -nc
dpkg -i ../bumblebee_3.2.1-10_amd64.deb
service bumblebeed restart

Hi int0xcc!
I am most grateful for your post.
I have spend more than 3 days on this problem without success. I even opened a thread here:

https://forums.kali.org/showthread.php?29777-Nvidia-drivers-on-Kali-2106-1-Thinkpad-Yoga-15

Your instructions solved the problem right on the the first attempt. I am going to test them on other distros too.
I will post your instructions on the above mentioned thread.

Thank you very very much again
DinoS

when123
2016-02-23, 09:57
Bumblebee pkg needed to be updated to work with new Xorg.

I have solved problem by changing Xorg path in bumblebee.

Uncomment source repo in /etc/apt/sources.list and do:

apt-get update
apt-get install devscripts
apt-get build-dep bumblebee
apt-get source bumblebee
sed -i 's/\"Xorg\"/\"\/usr\/lib\/xorg\/Xorg\"/' bumblebee-3.2.1/src/bbsecondary.h
cd bumblebee-3.2.1/
dpkg-buildpackage -us -uc -nc
dpkg -i ../bumblebee_3.2.1-10_amd64.deb
service bumblebeed restart

Could you tell me how to solve 32bit system ?

my problem is as followed

[14632.189140] [ERROR]Cannot access secondary GPU - error: [XORG] (EE)

[14632.189164] [ERROR]Aborting because fallback start is disabled.

x5ctf
2016-03-03, 23:53
Tx/Rx >>>

apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev


./cuda*.run --override compiler

Accept the EULA
Select yes to unsupported configuration
No to graphics driver
Yes to the toolkit
Accept default location
Yes to symbolic link
Yes to samples
Yes to default samples location
The toolkit will install

Cricco95
2016-03-04, 08:19
I have a problem guys. I can succesfully run optirun glxspheres64 but modinfo nvidia says that I don't have nvidia module installed

1. lspci | egrep 'VGA|3D



00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
01:00.0 3D controller: NVIDIA Corporation GK107M [GeForce GT 750M] (rev a1)


2. modprobe nvidia


modprobe: FATAL: Module nvidia not found in directory /lib/modules/4.4.0-kali1-amd64

3. modprobe nvidia-uvm


modprobe: FATAL: Module nvidia-uvm not found in directory /lib/modules/4.4.0-kali1-amd64

4. optirun glxspheres64



Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0x20
Context is Direct
OpenGL Renderer: GeForce GT 750M/PCIe/SSE2
306.941638 frames/sec - 342.546869 Mpixels/sec
305.789812 frames/sec - 341.261430 Mpixels/sec
310.069638 frames/sec - 346.037716 Mpixels/sec
308.716589 frames/sec - 344.527713 Mpixels/sec


5. dmesg | tail -n 100



[ 296.115287] nvidia: module license 'NVIDIA' taints kernel.
[ 296.115290] Disabling lock debugging due to kernel taint
[ 296.123083] [drm] Initialized nvidia-drm 0.0.0 20150116 for 0000:01:00.0 on minor 1
[ 296.123087] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 352.79 Wed Jan 13 16:17:53 PST 2016
[ 297.819878] vgaarb: this pci device is not a vga device
[ 297.841735] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
[ 297.841774] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
[ 297.841797] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
[ 297.841818] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
[ 297.841840] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
[ 297.841860] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
[ 297.841893] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
[ 297.841915] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
[ 297.865676] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
[ 298.059827] vgaarb: this pci device is not a vga device
[ 306.727138] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
[ 531.063360] vgaarb: this pci device is not a vga device
[ 531.065402] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
[ 531.065441] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
[ 531.065464] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
[ 531.065486] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
[ 531.065507] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
[ 531.065528] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
[ 531.065560] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
[ 531.065581] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
[ 531.065964] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
[ 531.254516] vgaarb: this pci device is not a vga device
[ 541.237741] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)


6. echo $PATH


/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/opt/oracle/instantclient_11_2:/opt/VirtualGL/bin:/usr/local/cuda-7.5/bin

7. 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-current
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


8. cat /etc/bumblebee/xorg.conf.nvidia



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"


9. service bumblebeed restart

Restarted succesfully

10. modinfo nvidia


modinfo: ERROR: Module nvidia not found

11. find 2> /dev/null / -name nvidia*.ko



/var/lib/dkms/nvidia-current/352.79/4.4.0-kali1-amd64/x86_64/module/nvidia-current.ko
/var/lib/dkms/nvidia-current/352.79/4.4.0-kali1-amd64/x86_64/module/nvidia-current-uvm.ko
/lib/modules/4.4.0-kali1-amd64/updates/dkms/nvidia-current.ko
/lib/modules/4.4.0-kali1-amd64/updates/dkms/nvidia-current-uvm.ko


EDIT: I get PASS with CUDA deviceQuery

Millesaway
2016-03-06, 03:13
Hello guys, can you tell me if there is any new guide, to install nvidia + cuda, in gtx 950m? Cause after 1º attempt... i lost and needed to re-install kali.

Thanks in advance

Razvan
2016-03-06, 16:17
Hello guys, can you tell me if there is any new guide, to install nvidia + cuda, in gtx 950m? Cause after 1º attempt... i lost and needed to re-install kali.

Thanks in advance

As Millesaway said is it any update for the tutorial ? I have the latest Kali 2016, but it seems I can't install NVIDIA. I've tried many things I found over the internet but I was wondering if someone can post an updated tutorial.

moy44
2016-03-16, 18:35
As Millesaway said is it any update for the tutorial ? I have the latest Kali 2016, but it seems I can't install NVIDIA. I've tried many things I found over the internet but I was wondering if someone can post an updated tutorial.

Same, I've followed the steps of this tutorial and many others with no luck so far. It would be great if someone that knew how to get Nvidia Cards with Optimus working with Kali could post an updated tutorial.

moy44
2016-03-16, 19:27
I got to step 15 but couldn't get optirun to work.
In the guide it doesn't look like we are disabling nouveau anywhere, shouldn't this cause a conflict with the Nvidia driver loading?



root@DEFNOTKALI:~# lspci | egrep 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
01:00.0 3D controller: NVIDIA Corporation GK104M [GeForce GTX 870M] (rev a1)


root@DEFNOTKALI:~# modprobe nvidia


root@DEFNOTKALI:~# modprobe nvidia-uvm


root@DEFNOTKALI:~# optirun glxspheres64
[ 146.023065] [ERROR]The Bumblebee daemon has not been started yet or the socket path /var/run/bumblebee.socket was incorrect.
[ 146.023114] [ERROR]Could not connect to bumblebee daemon - is it running?


root@DEFNOTKALI:~# /etc/init.d/bumblebeed start
[ ok ] Starting bumblebeed (via systemctl): bumblebeed.service.


root@DEFNOTKALI:~# optirun glxspheres64
[ 166.013170] [ERROR]Cannot access secondary GPU - error: [XORG] (EE)

[ 166.013201] [ERROR]Aborting because fallback start is disabled.


root@DEFNOTKALI:~# dmesg | tail -n 100
[ 8.332790] [Firmware Bug]: ACPI(PEGP) defines _DOD but not _DOS
[ 8.333960] ACPI: Video Device [PEGP] (multi-head: yes rom: yes post: no)
[ 8.333964] ACPI Error: [\_SB_.PCI0.GFX0.DD02._BCL] Namespace lookup failure, AE_NOT_FOUND (20150930/psargs-359)
[ 8.333968] ACPI Error: Method parse/execution failed [\_SB.PCI0.PEG0.PEGP.DD02._BCL] (Node ffff8802270e2220), AE_NOT_FOUND (20150930/psparse-542)
[ 8.334106] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:5e/LNXVIDEO:00/input/input16
[ 8.335503] ACPI: Video Device [GFX0] (multi-head: yes rom: no post: no)
[ 8.335609] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:01/input/input17
...
[ 8.373529] intel_rapl: Found RAPL domain package
...
[ 8.373580] intel_rapl: RAPL package 0 domain dram locked by BIOS
[ 8.396062] [drm] GMBUS [i915 gmbus vga] timed out, falling back to bit banging on pin 2
[ 8.540116] snd_hda_intel 0000:00:03.0: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[ 8.540124] [drm] Initialized i915 1.6.0 20151010 for 0000:00:02.0 on minor 0
[ 8.553731] fbcon: inteldrmfb (fb0) is primary device
[ 8.587479] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'
[ 8.599189] input: HDA Intel HDMI HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:03.0/sound/card0/input18
[ 8.599255] input: HDA Intel HDMI HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:03.0/sound/card0/input19
[ 8.599310] input: HDA Intel HDMI HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:03.0/sound/card0/input20
[ 8.865906] Netfilter messages via NETLINK v0.30.
[ 9.768266] Console: switching to colour frame buffer device 400x112
[ 9.776747] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
[ 17.625014] fuse init (API version 7.23)
[ 132.106742] nvidia: module license 'NVIDIA' taints kernel.
[ 132.106746] Disabling lock debugging due to kernel taint
[ 132.114807] nvidia 0000:01:00.0: enabling device (0006 -> 0007)
[ 132.114995] [drm] Initialized nvidia-drm 0.0.0 20150116 for 0000:01:00.0 on minor 1
[ 132.114998] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 352.79 Wed Jan 13 16:17:53 PST 2016
[ 138.579100] nvidia_uvm: Loaded the UVM driver, major device number 247
[ 163.380537] bbswitch: version 0.8
[ 163.380544] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[ 163.380549] bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG0.PEGP
[ 163.380560] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
[ 163.380653] bbswitch: detected an Optimus _DSM function
[ 163.380667] bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is on
[ 163.383584] nvidia_uvm: Unregistered the UVM driver
[ 163.400337] [drm] Module unloaded
[ 163.437393] bbswitch: disabling discrete graphics
[ 163.437408] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
[ 163.452106] pci 0000:01:00.0: Refused to change power state, currently in D0
[ 165.457270] bbswitch: enabling discrete graphics
[ 166.007073] [drm] Initialized nvidia-drm 0.0.0 20150116 for 0000:01:00.0 on minor 1
[ 166.007077] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 352.79 Wed Jan 13 16:17:53 PST 2016


root@DEFNOTKALI:~# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/VirtualGL/bin:/usr/local/cuda-7.5/bin


root@DEFNOTKALI:~# 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-current
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@DEFNOTKALI:~# cat /etc/bumblebee/xorg.conf.nvidia
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"

# If the X server does not automatically detect your VGA device,
# you can manually set it here.
# To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
# as you see in the commented example.
# This Setting may be needed in some platforms with more than one
# nvidia card, which may confuse the proprietary driver (e.g.,
# trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.
# BusID "PCI:01:00:0"

# Setting ProbeAllGpus to false prevents the new proprietary driver
# instance spawned to try to control the integrated graphics card,
# which is already being managed outside bumblebee.
# This option doesn't hurt and it is required on platforms running
# more than one nvidia graphics card with the proprietary driver.
# (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT).
# If this option is not set, the new Xorg may blacken the screen and
# render it unusable (unless you have some way to run killall Xorg).
Option "ProbeAllGpus" "false"

Option "NoLogo" "true"
Option "UseEDID" "false"
Option "UseDisplayDevice" "none"
EndSection


root@DEFNOTKALI:~# service bumblebeed restart


root@DEFNOTKALI:~# modinfo nvidia
modinfo: ERROR: Module nvidia not found.


root@DEFNOTKALI:~# find 2> /dev/null / -name nvidia*.ko
/var/lib/dkms/nvidia-current/352.79/4.4.0-kali1-amd64/x86_64/module/nvidia-current.ko
/var/lib/dkms/nvidia-current/352.79/4.4.0-kali1-amd64/x86_64/module/nvidia-current-uvm.ko
/lib/modules/4.4.0-kali1-amd64/updates/dkms/nvidia-current.ko
/lib/modules/4.4.0-kali1-amd64/updates/dkms/nvidia-current-uvm.ko

Davide3i
2016-03-24, 16:57
Here we're back again.
After installing the last Kali version (2016.1), I'm finding impossible to install the nVidia drivers with the guide in the first post: simply, like other users said, the guide is not applying from the step 15.
Someone found a way to make Kali work with those **** graphic drivers?

acostagera
2016-03-24, 23:26
So after 4 clean installs of Kali 2016 and two days trying to get this working. I was able to get the nvidia drivers installed on my laptop. I use some of the steps from this thread and some from http://fixmynix.com/install-and-configure-nvidia-optimus-with-bumblebee-in-debian/. At first I was getting:

root@KALI:~# optirun glxspheres64
[ 146.023065] [ERROR]The Bumblebee daemon has not been started yet or the socket path /var/run/bumblebee.socket was incorrect.
[ 146.023114] [ERROR]Could not connect to bumblebee daemon - is it running?
Tried something else, then I got:

root@DEFNOTKALI:~# optirun glxspheres64
[ 166.013170] [ERROR]Cannot access secondary GPU - error: [XORG] (EE)
Finally got it to work and the following is a history of the commands I ended up using. For virtualgl and Cuda this assumes you downloaded from the links in the first post and the files are located in your Downloads folder.

apt-get update
apt-get upgrade
apt-get dist-upgrade
apt-get update
apt-get upgrade
modprobe -r nouveau
modprobe -r vga_switcheroo
apt-get install gcc make linux-headers-$(uname -r)
apt-get install dksm bbswitch-dkms
apt-get install dkms bbswitch-dkms
modprobe bbswitch load_state=0
Created /etc/modprobe.d/nouveau-blacklist.conf and added "blacklist nouveau" with out quotes

nano /etc/modprobe.d/nouveau-blacklist.conf
Added "bbswitch load_state=0" with out quotes to /etc/modules

nano /etc/modules


apt-get install nvidia-kernel-dkms nvidia-xconfig nvidia-settings
apt-get install nvidia-vdpau-driver vdpau-va-driver mesa-utils
apt-get install bumblebee-nvidia
sudo dpkg -i /root/Downloads/virtualgl_2.5_amd64.deb
usermod -aG bumblebee $USER
service bumblebeed restart
apt-get install devscripts
apt-get build-dep bumblebee
apt-get source bumblebee
sed -i 's/"Xorg"/"\/usr\/lib\/xorg\/Xorg"/' bumblebee-3.2.1/src/bbsecondary.h
bumblebee-3.2.1/
dpkg-buildpackage -us -uc -nc
dpkg -i ../bumblebee_3.2.1-10_amd64.deb
service bumblebeed restart
reboot
Uncommented BusID "PCI:01:00:0" and replace the 1 with the number you get from lspci

nano /etc/bumblebee/xorg.conf.nvidia


service bumblebeed restart
optirun -v -b virtualgl -c jpeg glxgears
apt-get install freeglut3-dev libxmu-dev libpcap-dev
Add "export PATH=$PATH:/opt/VirtualGL/bin:/usr/local/cuda-7.5/bin" to the end of .bashrc without quotes.

nano ~/.bashrc


export PATH=$PATH:/opt/VirtualGL/bin:/usr/local/cuda-7.5/bin
optirun -v -b virtualgl -c jpeg glxgears
optirun -vv glxgears
chmod +x Downloads/cuda_7.5.18_linux.run
./Downloads/cuda_7.5.18_linux.run --override compiler
Make sure this lines exist if not add to match in /etc/ld.so.conf
include /etc/ld.so.conf.d/*.conf
/usr/local/cuda-7.5/lib64

nano /etc/ld.so.conf


ldconfig
apt-get install libcuda1
cd /root/NVIDIA_CUDA-7.5_Samples/1_Utilities/deviceQuery/
make
optirun ./deviceQuery
Hope this is of use to some you that have been having problems.

Quest
2016-03-25, 12:59
Thanks for sharing acostagera :cool:

Side note: This thread is going on its second year and I still can't believe how much of a circus it is to install a driver and related GPU acceleration programs. For you nVidia/oclHashcat/Windows users, here is a mini howtoo, because sometimes it's better to switch OS for certain operations, rather than checking-in a nuthouse.

- Download and install CUDA,
https://developer.nvidia.com/cuda-downloads
(That will also install the version compatible nVidia driver).

- Download Hashcat GUI,
https://hashkiller.co.uk/hashcat-gui.aspx
No install. Decompress in C: inside a folder named 'HashcatGUI'
C:\HashcatGUI

- Download oclHashcat
http://hashcat.net/oclhashcat/
No install. Decompress inside the previously created 'HashcatGUI' folder.
C:\HashcatGUI\cudaHashcat-2.01

- Place your desired .cap file inside the cap2hccap folder and rename it 'wpa.cap'
C:\HashcatGUI\cap2hccap\wpa.cap

- Start App.HashcatGUI.exe
C:\HashcatGUI\App.HashcatGUI.exe
Hash File > Click on '...' and navigate to C:\HashcatGUI\cap2hccap\, and select your 'wpa.cap'. That will automatically create a hccap file.
C:\HashcatGUI\cap2hccap\wpa.hccap

- See '7 Hashcat GUI setup.jpg' for the rest of options.

1405

* Once the main Hashcat/oclHashcat interface setup, Commands > Generate, to see the resulting command line!!

* [Ctrl]+[C] in the CMD window to stop at any time.

underscore
2016-03-25, 18:06
thx for sharing your findings acostagera. After struggling 2 days with exactly the same problems this saved my day :)


Now i'm stuck on adding CUDA support by building CPyrit. Following step 3 of the first post. gcc-5 isn't supported. It gives me below output:
Is there any way to build CPyrit with another gcc-version?


root@kali:/home/pyrit_svn/cpyrit_cuda# python setup.py build
running build
running build_ext
Compiling CUDA module using nvcc 7.5, V7.5.17...
Executing '/usr/local/cuda/bin/nvcc -m64 --host-compilation C -Xcompiler "-fPIC" --ptx ./_cpyrit_cudakernel.cu'
nvcc warning : option 'host-compilation' has been deprecated
In file included from /usr/local/cuda/bin/..//include/cuda_runtime.h:76:0,
from <command-line>:0:
/usr/local/cuda/bin/..//include/host_config.h:115:2: error: #error -- unsupported GNU version! gcc versions later than 4.9 are not supported!
#error -- unsupported GNU version! gcc versions later than 4.9 are not supported!


Edit (fix)

To prevent this error just uncomment line 115 in: /usr/local/cuda/include/host_config.h

//#error -- unsupported GNU version! gcc versions later than 4.9 are not supported!

Now the GPU will be recognized using:
optirun pyrit benchmark



root@kali:~/cpyrit-cuda-0.4.0# optirun pyrit benchmark
Pyrit 0.4.0 (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

Running benchmark (28184.1 PMKs/s)... -

Computed 28184.12 PMKs/s total.
#1: 'CUDA-Device #1 'GeForce GTX 860M'': 27098.4 PMKs/s (RTT 2.8)
#2: 'CPU-Core (SSE2)': 489.2 PMKs/s (RTT 3.2)
#3: 'CPU-Core (SSE2)': 494.4 PMKs/s (RTT 3.2)
#4: 'CPU-Core (SSE2)': 504.2 PMKs/s (RTT 3.2)
#5: 'CPU-Core (SSE2)': 503.8 PMKs/s (RTT 3.2)
#6: 'CPU-Core (SSE2)': 496.8 PMKs/s (RTT 3.2)
#7: 'CPU-Core (SSE2)': 498.6 PMKs/s (RTT 3.2)
#8: 'CPU-Core (SSE2)': 500.7 PMKs/s (RTT 3.2)
root@kali:~/cpyrit-cuda-0.4.0#

Davide3i
2016-03-28, 12:21
So after 4 clean installs of Kali 2016 and two days trying to get this working. I was able to get the nvidia drivers installed on my laptop. I use some of the steps from this thread and some from http://fixmynix.com/install-and-configure-nvidia-optimus-with-bumblebee-in-debian/.

I tried with your mini-guide, but still no luck for me, acostagera: the infamous


[ 816.077860] [ERROR]Cannot access secondary GPU - error: [XORG] (EE)

[ 816.077915] [ERROR]Aborting because fallback start is disabled.

error is still getting me.

Walrix
2016-05-09, 09:59
root@kali:~# lspci | egrep 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation Device 22b1 (rev 21)
01:00.0 3D controller: NVIDIA Corporation GK208M [GeForce 920M] (rev a1)
root@kali:~# modprobe nvidia
root@kali:~# modprobe nvidia-uvm

I have restarted bumblebeed. Included code before restart


root@kali:~# optirun glxspheres64
[ 7543.790109] [ERROR]The Bumblebee daemon has not been started yet or the socket path /var/run/bumblebee.socket was incorrect.
[ 7543.790269] [ERROR]Could not connect to bumblebee daemon - is it running?
root@kali:~# service bumblebeed restart
root@kali:~# optirun glxspheres64
[ 6973.249397] [ERROR]Cannot access secondary GPU - error: [XORG] (EE)

[ 6973.249733] [ERROR]Aborting because fallback start is disabled.

http://pastebin.com/gBAKijSf
rest of output

I have done everything as said until "run optirun glxspheres64", which shown me error right up there.

arslan2012
2016-05-09, 12:34
root@kali:~# lspci | egrep 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation Device 22b1 (rev 21)
01:00.0 3D controller: NVIDIA Corporation GK208M [GeForce 920M] (rev a1)
root@kali:~# modprobe nvidia
root@kali:~# modprobe nvidia-uvm

I have restarted bumblebeed. Included code before restart


root@kali:~# optirun glxspheres64
[ 7543.790109] [ERROR]The Bumblebee daemon has not been started yet or the socket path /var/run/bumblebee.socket was incorrect.
[ 7543.790269] [ERROR]Could not connect to bumblebee daemon - is it running?
root@kali:~# service bumblebeed restart
root@kali:~# optirun glxspheres64
[ 6973.249397] [ERROR]Cannot access secondary GPU - error: [XORG] (EE)

[ 6973.249733] [ERROR]Aborting because fallback start is disabled.

http://pastebin.com/gBAKijSf
rest of output

I have done everything as said until "run optirun glxspheres64", which shown me error right up there.


gedit /etc/bumblebee/bumblebee.conf
change VirtualDisplay=:8 to VirtualDisplay=:0

akhtar4ever
2016-06-23, 07:55
Hey
I am getting error while running the command "modinfo nvidia"
Below is the error:

root@babc:~# modprobe nvidia
modprobe: ERROR: ../libkmod/libkmod-module.c:809 kmod_module_insert_module() could not find module by name='nvidia'
modprobe: ERROR: could not insert 'nvidia': Function not implemented
root@abc:~# modprobe nvidia-uvm
modprobe: FATAL: Module nvidia-uvm not found.


Please let me know how to proceed. I am stuck with this issue.
Thanks

xklathos
2016-09-07, 06:04
Hey guys i do encounter a problem with my CUDA installation everything seems to work fine but /usr/local/cuda-7.5 is not there also examples and such are missing. optirun gives me output but i have to restart bumblebeed service in every reboot. So my first question is to resolve bumblebeed service problem and second is about CUDA output given below whether or not it is a problem.



-------------------------------------------------------------
Do you accept the previously read EULA? (accept/decline/quit): accept
You are attempting to install on an unsupported configuration. Do you wish to continue? ((y)es/(n)o) [ default is no ]: yes
Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 352.39? ((y)es/(n)o/(q)uit): no
Install the CUDA 7.5 Toolkit? ((y)es/(n)o/(q)uit): yes
Enter Toolkit Location [ default is /usr/local/cuda-7.5 ]:
Do you want to install a symbolic link at /usr/local/cuda? ((y)es/(n)o/(q)uit): y
Install the CUDA 7.5 Samples? ((y)es/(n)o/(q)uit): y
Enter CUDA Samples Location [ default is /root ]: /usr/share/CUDA/
Error: unsupported compiler: 6.1.1. Use --override to override this check.
Missing recommended library: libXi.so

Error: cannot find Toolkit in /usr/local/cuda-7.5

===========
= Summary =
===========

Driver: Not Selected
Toolkit: Installation Failed. Using unsupported Compiler.
Samples: Cannot find Toolkit in /usr/local/cuda-7.5

k0desys
2016-09-28, 00:12
Hey guys i do encounter a problem with my CUDA installation everything seems to work fine but /usr/local/cuda-7.5 is not there also examples and such are missing. optirun gives me output but i have to restart bumblebeed service in every reboot. So my first question is to resolve bumblebeed service problem and second is about CUDA output given below whether or not it is a problem.



-------------------------------------------------------------
Do you accept the previously read EULA? (accept/decline/quit): accept
You are attempting to install on an unsupported configuration. Do you wish to continue? ((y)es/(n)o) [ default is no ]: yes
Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 352.39? ((y)es/(n)o/(q)uit): no
Install the CUDA 7.5 Toolkit? ((y)es/(n)o/(q)uit): yes
Enter Toolkit Location [ default is /usr/local/cuda-7.5 ]:
Do you want to install a symbolic link at /usr/local/cuda? ((y)es/(n)o/(q)uit): y
Install the CUDA 7.5 Samples? ((y)es/(n)o/(q)uit): y
Enter CUDA Samples Location [ default is /root ]: /usr/share/CUDA/
Error: unsupported compiler: 6.1.1. Use --override to override this check.
Missing recommended library: libXi.so

Error: cannot find Toolkit in /usr/local/cuda-7.5

===========
= Summary =
===========

Driver: Not Selected
Toolkit: Installation Failed. Using unsupported Compiler.
Samples: Cannot find Toolkit in /usr/local/cuda-7.5


The problem of Bumblebeed service not autostarting is due to kali network policy.
Kali wil by default disallow autostarting services. Have a look at the link for the solution

http://docs.kali.org/policy/kali-linux-network-service-policies

emrys
2016-11-07, 10:48
Hello There Mates,

Please anyone let me know if I can install everything nvidia latest drivers +cuda+bumble bee etc using this guide on my Nvidia GTX 970 GPU system or should I just install nvidia driver file ( .run file ) and cuda instead using this guide https://forums.kali.org/showthread.php?25064-Kali-Linux-1-1-0-kernel-install-Nvidia-proprietary-drivers-for-GTX-970-and-oclHashcat

Rarity
2016-11-08, 00:57
emrys, is your laptop Optimus enabled? (aka a dedicated graphics card in combination with an integrated one).

emrys
2016-11-10, 11:41
emrys, is your laptop Optimus enabled? (aka a dedicated graphics card in combination with an integrated one).


Actually Im not using Laptop but a Desktop PC
Following is the Configuration of my PC

CPU : Intel i7 4770k

GPU : Nvidia GTX 970

MOBO : Asus Maximus HEro VII

120GB SSD 4TB HDD

So the Computer has both the internal integrated intel graphics as well as a dedicated GPU GTX 970 and im using the GPU

Rarity
2016-11-18, 03:08
Actually Im not using Laptop but a Desktop PC
Following is the Configuration of my PC

CPU : Intel i7 4770k

GPU : Nvidia GTX 970

MOBO : Asus Maximus HEro VII

120GB SSD 4TB HDD

So the Computer has both the internal integrated intel graphics as well as a dedicated GPU GTX 970 and im using the GPU

I haven't personally used the guide you linked to but you should use that instead of this one. This how-to is specific for laptops that are Optimus enabled.

rotor
2016-12-27, 10:21
Hello! I have laptop lenovo y570, Kali Rollings 2016.2 4.8.0-kali2-amd64, 2 graphical chipsets :

1) Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller
2) VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 555M]

I want to combine resources of both graphical cards for brutforcing, but about two weeks I can't to install necessary drivers for nVidia. Who can helps me with new tutorials for kali rolling 2016.2 ?

PS : sorry for my english, is not my main language.

Bu5h1d0
2016-12-30, 04:56
Rotor, I'm not sure if this will work as I have not tried it but I found this tutorial a few hours ago https://wheresmykeyboard.com/2016/10/installing-nvidia-driver-kali-linux-2016-2-rolling/. I do know the tutorial in this thread did not work for me as I came across a missing uri sources list error.

If anyone tries the about method let me know if it worked please as a few methods I tried made me have to completely reinstall Kali a few times.

H3xCmd
2017-01-03, 02:59
Rotor, I'm not sure if this will work as I have not tried it but I found this tutorial a few hours ago https://wheresmykeyboard.com/2016/10/installing-nvidia-driver-kali-linux-2016-2-rolling/. I do know the tutorial in this thread did not work for me as I came across a missing uri sources list error.

If anyone tries the about method let me know if it worked please as a few methods I tried made me have to completely reinstall Kali a few times.

unable to Complete and install the Toolkit. Is there anyway at the Dynamic Link step below to link to the cuda toolkit install from the repo (apt-get install nvidia-cuda-toolkit

####
Make sure this lines exist if not add to match in /etc/ld.so.conf
include /etc/ld.so.conf.d/*.conf
/usr/local/cuda-7.5/lib64
#####

Following errors with steps from
https://wheresmykeyboard.com/2016/10/installing-nvidia-driver-kali-linux-2016-2-rolling/

apt-get install dksm bbswitch-dkms <<-- no install from repo

apt-get build-dep bumblebee <<-----ISSUES
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
builddeps:bumblebee : Depends: dh-systemd (>= 1.4) but it is not installable
E: Unable to correct problems, you have held broken packages.

apt-get install dh-systemd <<-------debhelper

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package dh-systemd is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
debhelper

E: Package 'dh-systemd' has no installation candidate

apt-get install debhelper <<---------already the newest version
Reading package lists... Done
Building dependency tree
Reading state information... Done
debhelper is already the newest version (10.2.2).
debhelper set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


https://packages.debian.org/jessie/all/dh-systemd/download
dpkg -i dh-systemd_1.22_all.deb <<----- dependency problems

Selecting previously unselected package dh-systemd.
(Reading database ... 364453 files and directories currently installed.)
Preparing to unpack dh-systemd_1.22_all.deb ...
Unpacking dh-systemd (1.22) ...
Replaced by files in installed package debhelper (10.2.2) ...
dpkg: dependency problems prevent configuration of dh-systemd:
debhelper (10.2.2) breaks dh-systemd (<< 1.38) and is installed.
Version of dh-systemd to be configured is 1.22.

dpkg: error processing package dh-systemd (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.7.6.1-2) ...
Errors were encountered while processing:
dh-systemd


------------------------------------------------
sed -i 's/"Xorg"/"\/usr\/lib\/xorg\/Xorg"/' bumblebee-3.2.1/src/bbsecondary.h
sed: can't read bumblebee-3.2.1/src/bbsecondary.h: No such file or directory

-------------------------------
bumblebee-3.2.1/
bash: bumblebee-3.2.1/: No such file or directory

--------------------------
./cuda_7.5.18_linux.run --override compiler
Y/N/Y/Enter/Y/Enter/
Toolkit: Installation Failed
Warning: cannot find Toolkit in /usr/local/cuda-7.5. Use --toolkitpath to specify the toolkit location.

------------------------
sudo sh cuda_8.0.44_linux.run --override
Y/N/Y/Enter/Y/Enter/
Warning: cannot find Toolkit in /usr/local/cuda-8.0. Use --toolkitpath to specify the toolkit location.

sudo sh cuda_8.0.44_linux.run --override --toolkitpath
ERROR: toolkitpath: path must be absolute.

sudo sh cuda_8.0.44_linux.run --override --toolkitpath /usr/local/cuda-8.0/
ERROR: toolkitpath: path must be absolute.

sudo sh cuda_8.0.44_linux.run --override --/usr/local/cuda-8.0/
Unknown option: /usr/local/cuda-8.0/

Bu5h1d0
2017-01-03, 20:18
I had issues with the cuda install from nvidia as well and ended up using the one from the repo.

apt-get install dksm bbswitch-dkms <---- theres a typo in his tutorial, it should be dkms not dksm
apt-get build-dep bumblebee <<-----ISSUES <--------- I had used a debian repo in my source list but not sure which one, wish I wrote it down because I wanted to try once more & reason why I forgot is in the next sentence.
I ended up trying his tutorial and it worked getting everything installed but my system still didn't recognize my nvidia card for certain things so I figured since I have a newer card it was a driver issue since bumblebee was installing older drivers so I tried installing the drivers from Nvidia and it ended up screwing up my login process and no matter what I did I couldn't get the system back to normal so I had to do a reinstall of Kali as a whole. I didn't write down the Debian repo I used because I wasn't entirely sure it mattered so after the fresh install I tried again and got the dependency error.

unknown1995
2017-01-07, 06:56
Hello! I have laptop lenovo y570, Kali Rollings 2016.2 4.8.0-kali2-amd64, 2 graphical chipsets :

1) Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller
2) VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 555M]

I want to combine resources of both graphical cards for brutforcing, but about two weeks I can't to install necessary drivers for nVidia. Who can helps me with new tutorials for kali rolling 2016.2 ?

PS : sorry for my english, is not my main language.

This tutorial works on kali 2016.2 rolling and both nvidia and Cuda will install
PROBLEM THAT MAY ARISE WHILE INSTALLING
- bumblebee dont start itself
---- bumblebeed -D (to start it)
- Cuda installation problem(i installed it from run file)
-----libXi.so file missing
---sudo ln -s /usr/lib/x86_64-linux-gnu/libXi.so /usr/lib/libXi.so (jjust create link)
-----Can't locate InstallUtils.pm in @INC
---Do this it will work
1. unpack .run file ./cuda*.run --tar mxvf
2. copy InstallUtils.pm to /usr/lib/x86_64-linux-gnu/perl-base
3. export $PERL5LIB

Follow the steps provided in tutorial it will work

Bu5h1d0
2017-01-09, 00:07
This tutorial works on kali 2016.2 rolling and both nvidia and Cuda will install
PROBLEM THAT MAY ARISE WHILE INSTALLING
- bumblebee dont start itself
---- bumblebeed -D (to start it)
- Cuda installation problem(i installed it from run file)
-----libXi.so file missing
---sudo ln -s /usr/lib/x86_64-linux-gnu/libXi.so /usr/lib/libXi.so (jjust create link)
-----Can't locate InstallUtils.pm in @INC
---Do this it will work
1. unpack .run file ./cuda*.run --tar mxvf
2. copy InstallUtils.pm to /usr/lib/x86_64-linux-gnu/perl-base
3. export $PERL5LIB

Follow the steps provided in tutorial it will work

This is tempting but I'm a bit hesitant only because thrice it has forced me to completely reinstall Kali, my own fault for not creating a backup but I've hit a wall when it won't install the dep as well. I don't recall the repo source I used to get dep to install. Even though it worked once, I never was able to get it to set my Nvidia card as the main card for use.

itanon
2017-01-19, 08:18
I had a 2010's GPU (a 330m notebook) does the cuda toolkit 7.5 support it?...The appropriate driver should be version 340.xx and on Nvidia page is listed they supports cuda toolkit 6.5

Cricco95
2017-02-24, 15:02
I succesfully installed Nvidia driver with Bumblebee and CUDA 8.0 but when I try to run optirun hashcat -b I get this error:



hashcat (v3.30) starting in benchmark mode...

clGetDeviceIDs(): CL_DEVICE_NOT_FOUND

clGetDeviceIDs(): CL_DEVICE_NOT_FOUND

No devices found/left

Started: Fri Feb 24 16:01:02 2017
Stopped: Fri Feb 24 16:01:02 2017


optirun glxgears output:



14130 frames in 5.0 seconds = 2825.824 FPS


optirun ./deviceQuery output:



./deviceQuery Starting...

CUDA Device Query (Runtime API) version (CUDART static linking)

Detected 1 CUDA Capable device(s)

Device 0: "GeForce GT 750M"
CUDA Driver Version / Runtime Version 8.0 / 8.0
CUDA Capability Major/Minor version number: 3.0
Total amount of global memory: 4038 MBytes (4233953280 bytes)
( 2) Multiprocessors, (192) CUDA Cores/MP: 384 CUDA Cores
GPU Max Clock rate: 1085 MHz (1.09 GHz)
Memory Clock rate: 900 Mhz
Memory Bus Width: 128-bit
L2 Cache Size: 262144 bytes
Maximum Texture Dimension Size (x,y,z) 1D=(65536), 2D=(65536, 65536), 3D=(4096, 4096, 4096)
Maximum Layered 1D Texture Size, (num) layers 1D=(16384), 2048 layers
Maximum Layered 2D Texture Size, (num) layers 2D=(16384, 16384), 2048 layers
Total amount of constant memory: 65536 bytes
Total amount of shared memory per block: 49152 bytes
Total number of registers available per block: 65536
Warp size: 32
Maximum number of threads per multiprocessor: 2048
Maximum number of threads per block: 1024
Max dimension size of a thread block (x,y,z): (1024, 1024, 64)
Max dimension size of a grid size (x,y,z): (2147483647, 65535, 65535)
Maximum memory pitch: 2147483647 bytes
Texture alignment: 512 bytes
Concurrent copy and kernel execution: Yes with 1 copy engine(s)
Run time limit on kernels: Yes
Integrated GPU sharing Host Memory: No
Support host page-locked memory mapping: Yes
Alignment requirement for Surfaces: Yes
Device has ECC support: Disabled
Device supports Unified Addressing (UVA): Yes
Device PCI Domain ID / Bus ID / location ID: 0 / 1 / 0
Compute Mode:
< Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) >

deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 8.0, CUDA Runtime Version = 8.0, NumDevs = 1, Device0 = GeForce GT 750M
Result = PASS

x5ctf
2017-03-10, 22:36
Try hashcat 3.10

bahha
2017-04-20, 18:30
I succesfully installed Nvidia driver with Bumblebee and CUDA 8.0 but when I try to run optirun hashcat -b I get this error:



optirun glxgears output:



optirun ./deviceQuery output:

I had the same issue and fixed it .
first : I installed the driver 375.39 and cuda 8.0 from the repository . my GPU is Gt-740M
if you installed Cuda from the repository . it's saved as nvidia-cuda-toolkit in /usr/lib/nvidia-cuda-toolkit.
you need to create a symbolic link in /usr/local/ that points to the path of cuda-toolkit .

ln -s /usr/lib/nvidia-cuda-toolkit /usr/local/cuda if you are not root add sudo .
follow the first post to set $PATH in bashrc and ld.so.conf path use cuda instead of cudaxxx version. because of the symlink above.

now the issue I came across was. in bumblebee.conf if I set the kernel-driver as nvidia-current . pyrit and hashcat don't work .
so I created a symbolic link (shortcut) to the kernel modules as nvidia and nvidia-uvm just like when you install it with the driver from Nvidia's website.

ln -s /lib/modules/4.9.0-kali3-amd64/updates/dkms/nvidia-current.ko /lib/modules/4.9.0-kali3-amd64/updates/dkms/nvidia.ko
check your kernel version before running the commands


ln -s /lib/modules/4.9.0-kali3-amd64/updates/dkms/nvidia-current-uvm.ko /lib/modules/4.9.0-kali3-amd64/updates/dkms/nvidia-uvm.ko


then I changed the bumblebee.conf in kernel-driver add nvidia instead of nvidia-current.
reboot and everything works . even with the latest hashcat version.
check with
modinfo nvidia to see if the modules are well linked .

another thing if you are having any issues with compiling cpyrit after you compiled pyrit (the main module)
in cpyrit folder change the line in setup.py to be like this
nvcc_cmd = NVCC + bit_flag + ' -ccbin clang'\
it will compile successfully .

chaopac
2017-06-19, 11:32
I tried to followed the guide and apparently I have succeeded, since I'm getting a PASS result at the final steps.

However, I am unable to log into the machine using the default System X11, or neither GNOME and GNOME Classic. Only GNOME with WAYLAND works.
When I try to log in with the first 3 methods, after finish typing in my credentials I just got loop back into the login Username screen again. Note this is without bumblebee running since it does not automatically start on boot.

After starting bumblebee, right after finishing logging in the screen freeze, but I can still access tty. This is similar to when the Nvidia drivers were not installed correctly.

I have successfully installed official Nvidia driver previously to installing bumblebee, as I do not know if bumblebee need Nvidia drivers already in place to function or not. The guide that I followed to install official Nvidia drivers is here:

https://forums.kali.org/showthread.php?35748-TUTORIAL-Installing-official-NVIDIA-driver-in-Optimus-laptop

So if anyone know what I should do please let me know. I appreciate it a lot.

Thank you staticn0de for an awesome guide and anyone who takes the time to help.

[SOLUTION:]

I have been able to solve this by following staticn0de post in this thread. All you need to do to be able to use X11 and GNOME again is deleting the file xorg.conf at /etc/X11/

There is still a slight issue however for those who wants to use GNOME on Wayland. If you login using Wayland, the terminal will have a black box around it. This problem is persistent before and after the GNOME fix I mentioned above. Though it is only a minor inconvenience and it only affects the terminal.