PDA

View Full Version : Intel HD graphics and Nvivida GTX 970M conflict



rauf
2017-01-16, 00:09
Hey fork, I am facing problem between two of my graphics card.

Kali: 2016.2
Dell Laptop with graphics Intel HD and Nvidia:

lspci output:
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)
02:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)

I tried every solution available on the net but none of them work.
i would like to Nvivida as my primary or only vga as it works best with hashcat.

There is no option in my bios to disable Intel Card and when i install nvidia drivers use these instructions http://docs.kali.org/general-use/install-nvidia-drivers-on-kali-linux i ends up at "Oh sorry, Something went wrong" I already have 4 clean install for kali but no success.

Any help ??

_defalt
2017-01-16, 03:56
Can you show output of lsmod? We will going to blacklist intel HD driver. But before doing this have you installed the right driver for Nvidia graphics?

rauf
2017-01-17, 00:37
Thank you Sir, below is the output from lsmod.

I didn't blacklist anything, but i twice install nvidia using these instruction: http://docs.kali.org/general-use/install-nvidia-drivers-on-kali-linux and both time i end up at "Oh Sorry, Something went wrong and cannot be recovered" and i clean install kali four times.

Attached is cleaner and easier to read output of lsmod.

Module Size Used by
ctr 16384 2
ccm 20480 1
pci_stub 16384 1
vboxpci 24576 0
vboxnetadp 28672 0
vboxnetflt 28672 0
vboxdrv 454656 3 vboxnetadp,vboxnetflt,vboxpci
snd_hda_codec_hdmi 45056 1
snd_hda_codec_realtek 86016 1
nfnetlink_queue 20480 0
snd_hda_codec_generic 69632 1 snd_hda_codec_realtek
nfnetlink_log 20480 0
nfnetlink 16384 2 nfnetlink_log,nfnetlink_queue
binfmt_misc 20480 1
fuse 98304 5
nls_ascii 16384 1
nls_cp437 20480 1
vfat 20480 1
arc4 16384 2
intel_rapl 20480 0
fat 69632 1 vfat
x86_pkg_temp_thermal 16384 0
intel_powerclamp 16384 0
iwlmvm 241664 0
coretemp 16384 0
snd_hda_intel 36864 6
i2c_designware_platform 16384 0
i2c_designware_core 20480 1 i2c_designware_platform
mac80211 651264 1 iwlmvm
kvm_intel 188416 0
snd_hda_codec 131072 4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_gen eric,snd_hda_codec_realtek
dcdbas 16384 0
snd_hda_core 81920 5 snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi,snd _hda_codec_generic,snd_hda_codec_realtek
kvm 585728 1 kvm_intel
dell_smm_hwmon 16384 0
snd_hwdep 16384 1 snd_hda_codec
iwlwifi 147456 1 iwlmvm
efi_pstore 16384 0
irqbypass 16384 1 kvm
nouveau 1544192 0
snd_pcm 110592 4 snd_hda_intel,snd_hda_codec,snd_hda_core,snd_hda_c odec_hdmi
i915 1282048 16
snd_timer 32768 1 snd_pcm
joydev 20480 0
rtsx_pci_ms 20480 0
snd 86016 20 snd_hda_intel,snd_hwdep,snd_hda_codec,snd_timer,sn d_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_cod ec_realtek,snd_pcm
cfg80211 573440 3 iwlmvm,iwlwifi,mac80211
iTCO_wdt 16384 0
efivars 20480 1 efi_pstore
soundcore 16384 1 snd
serio_raw 16384 0
pcspkr 16384 0
memstick 20480 1 rtsx_pci_ms
iTCO_vendor_support 16384 1 iTCO_wdt
mxm_wmi 16384 1 nouveau
tpm_crb 16384 0
hid_multitouch 20480 0
sg 32768 0
mei_me 36864 0
btusb 45056 0
ttm 98304 1 nouveau
btrtl 16384 1 btusb
mei 102400 1 mei_me
uvcvideo 90112 0
videobuf2_vmalloc 16384 1 uvcvideo
videobuf2_memops 16384 1 videobuf2_vmalloc
videobuf2_v4l2 24576 1 uvcvideo
evdev 24576 19
videobuf2_core 36864 2 uvcvideo,videobuf2_v4l2
videodev 176128 3 uvcvideo,videobuf2_core,videobuf2_v4l2
idma64 20480 0
media 40960 2 uvcvideo,videodev
virt_dma 16384 1 idma64
drm_kms_helper 155648 2 nouveau,i915
drm 360448 10 nouveau,i915,ttm,drm_kms_helper
i2c_algo_bit 16384 2 nouveau,i915
shpchp 36864 0
processor_thermal_device 16384 0
intel_soc_dts_iosf 16384 1 processor_thermal_device
intel_lpss_pci 16384 0
hci_uart 86016 0
btbcm 16384 2 hci_uart,btusb
btqca 16384 1 hci_uart
btintel 16384 2 hci_uart,btusb
bluetooth 544768 7 btrtl,hci_uart,btintel,btqca,btbcm,btusb
int3403_thermal 16384 0
battery 16384 0
ac 16384 0
dell_rbtn 16384 0
wmi 16384 2 mxm_wmi,nouveau
intel_lpss_acpi 16384 0
video 40960 2 nouveau,i915
intel_lpss 16384 2 intel_lpss_pci,intel_lpss_acpi
acpi_als 16384 0
kfifo_buf 16384 1 acpi_als
int3400_thermal 16384 0
int3402_thermal 16384 0
tpm_tis 16384 0
int340x_thermal_zone 16384 3 int3402_thermal,int3403_thermal,processor_thermal_ device
acpi_thermal_rel 16384 1 int3400_thermal
rfkill 24576 7 bluetooth,dell_rbtn,cfg80211
industrialio 65536 2 acpi_als,kfifo_buf
tpm_tis_core 20480 1 tpm_tis
acpi_pad 24576 0
button 16384 2 nouveau,i915
tpm 45056 3 tpm_tis,tpm_crb,tpm_tis_core
efivarfs 16384 1
ip_tables 24576 0
x_tables 36864 1 ip_tables
autofs4 40960 2
ext4 585728 1
crc16 16384 2 bluetooth,ext4
jbd2 106496 1 ext4
crc32c_generic 16384 0
fscrypto 28672 1 ext4
ecb 16384 0
mbcache 16384 2 ext4
hid_generic 16384 0
usbhid 53248 0
sd_mod 45056 6
rtsx_pci_sdmmc 24576 0
mmc_core 143360 1 rtsx_pci_sdmmc
crct10dif_pclmul 16384 0
crc32_pclmul 16384 0
crc32c_intel 24576 2
ghash_clmulni_intel 16384 0
aesni_intel 167936 2
aes_x86_64 20480 1 aesni_intel
lrw 16384 1 aesni_intel
gf128mul 16384 1 lrw
glue_helper 16384 1 aesni_intel
ablk_helper 16384 1 aesni_intel
cryptd 24576 3 ablk_helper,ghash_clmulni_intel,aesni_intel
psmouse 135168 0
ahci 36864 4
libahci 32768 1 ahci
libata 249856 2 ahci,libahci
i2c_i801 24576 0
i2c_smbus 16384 1 i2c_i801
xhci_pci 16384 0
rtsx_pci 57344 2 rtsx_pci_sdmmc,rtsx_pci_ms
xhci_hcd 188416 1 xhci_pci
mfd_core 16384 2 rtsx_pci,intel_lpss
r8169 81920 0
mii 16384 1 r8169
scsi_mod 225280 3 sd_mod,libata,sg
usbcore 249856 5 uvcvideo,usbhid,xhci_pci,btusb,xhci_hcd
usb_common 16384 1 usbcore
fan 16384 0
thermal 20480 0
i2c_hid 20480 0
hid 118784 4 i2c_hid,hid_generic,usbhid,hid_multitouch
fjes 28672 0

Thankyou and appreciated,

_defalt
2017-01-17, 13:03
i915 module is being used by Intel HD Graphics 530. You can blacklist it to prevent it from starting during boot. I can't find any module in your output which is related to NVIDIA Corporation GM107M [GeForce GTX 960M]. Have you installed its drivers correctly? Can you show the output of lspci -v?

rauf
2017-01-18, 01:12
Hi, lspci output attached.

No i didn't install the nvidia drivers in this install but this is my 4th clean install.

In first 3 installs i did install my nvidia driver using these steps: http://docs.kali.org/general-use/install-nvidia-drivers-on-kali-linux and every time it broke my install with the error message "Oh sorry, something went wrong and cannot be recovered"

The install i am running right now is without any install related to nvidia.

Everything else is fine absolutely fine, other then the "hashcat" and i am a die hard fan of hashcat :)

_defalt
2017-01-18, 12:43
You have to install Nvidia drivers. Look for solutions if you get errors. Next time when you upload output, use these:["CODE"] and ["/CODE"] without inverted commas. See below: The text should be written in between the two.

Enter your output here

rauf
2017-01-18, 19:01
I will,
So can i try black listing my intel driver and install nvidia driver ?? because if i install nvidia drivers without blacklisting intel it totally broker my kali install.

You have to install Nvidia drivers. Look for solutions if you get errors. Next time when you upload output, use these:["CODE"] and ["/CODE"] without inverted commas. See below: The text should be written in between the two.

Enter your output here

rauf
2017-01-19, 00:33
Hi Again, I tried installing nvidia drivers and after reboot same error "oh no, something went wrong and cannot be recovered" and in rescue mode i ran "apt-get remove nvidia* --purge" and kali boot again. So the culprint is nvidia driver. Any work around for this issue please ??

_defalt
2017-01-19, 03:45
You can't blacklist intel driver. The intel module is in use. Once you install Nvidia drivers then only you can. I also don't know what is the cause of error. Have you searched any related thread here on how to install Nvidia drivers?

What commands you are entering to install Nvidia drivers?

rauf
2017-01-19, 14:59
You can't blacklist intel driver. The intel module is in use. Once you install Nvidia drivers then only you can. I also don't know what is the cause of error. Have you searched any related thread here on how to install Nvidia drivers?

What commands you are entering to install Nvidia drivers?

I did try black listing intel HD driver but no success. I tried blacklisting intel driver by following methods:
1.


vi /etc/modprobe.d/blacklist
blacklist i915
update-initramfs -u


2. Boot kali and hit "e" to edit the gurb defaults


quiet nouveau.modeset=0 i915.modeset=0

I added "i915.modeset=0" in the end

Both methods no success.


Installing Nvidia driver: I used following commands to install nvidia drivers
1.


apt-get update
apt-get dist-upgrade
apt-get install -y linux-headers-$(uname -r)
apt-get install nvidia-kernel-dkms
sed 's/quiet/quiet nouveau.modeset=0/g' -i /etc/default/grub
update-grub
reboot


2. Download the driver from nvidia website for "GTX960M" and ran it

Both methods, no success. Same error "same error "Oh no, Something went wrong""


Fix "Oh sorry, something went wrong and cannot be recovered"
Yes, I did try a lot of solutions without any success.
1.


vi /etc/gdm3/daemon.conf
Change:
AutomaticLoginEnable=false
AutomaticLogin=root or user1 (if u create a new user and want to login from it)
To
AutomaticLoginEnable=true
AutomaticLogin=root or user1


2. Tried unloading intel driver


modprobe -r i915 (in rescue mode or virtual terminal)


Both solutions, No success.

Solution for Oh no! Something has gone wrong." that actually worked for me was


apt-get remove nvidia* --purge
reboot

But this solutions, was actually removing the nvidia driver and then kali booted up successfully

_defalt
2017-01-19, 16:33
If you had blacklisted intel HD graphics then you would have faced blank screen problem due to the absence of display driver. Don't mess with kernel modules like this else you'll end up with more problems.

All drivers are installed in /lib/firmware/. If you have proprietary drivers of NVIDIA then copy them into that folder. And Reboot.

rauf
2017-01-20, 01:19
If you had blacklisted intel HD graphics then you would have faced blank screen problem due to the absence of display driver. Don't mess with kernel modules like this else you'll end up with more problems.

All drivers are installed in /lib/firmware/. If you have proprietary drivers of NVIDIA then copy them into that folder. And Reboot.

Hi _defalt,
I really appreciate that you are try to help me, but i couldn't find any other way to blacklist the intel driver and also have no idea where i can find the NVIDIA proprietary drivers to paste in /lib/firmware/.
Is there any way you can help how exactly you want me to black list my Intel and Install Nvidia drivers.

Thanks and very much appreciated.

_defalt
2017-01-20, 03:30
Did I tell you to blacklist it? You shouldn't. Perhaps I should edit my previous comment. If you read it carefully I told that you can only if Nvidia drivers are installed and working.

Click on File manager>Other locations>Computer>lib>firmware.Copy your drivers in this folder.

Do you have drivers downloaded? Maybe a link of that site from where you can download them?

rauf
2017-01-20, 16:47
Did I tell you to blacklist it? You shouldn't. Perhaps I should edit my previous comment. If you read it carefully I told that you can only if Nvidia drivers are installed and working.

Click on File manager>Other locations>Computer>lib>firmware.Copy your drivers in this folder.

Do you have drivers downloaded? Maybe a link of that site from where you can download them?

Thank You.

_defalt
2017-01-20, 18:58
Have you tried this solution: https://www.blackmoreops.com/2014/03/13/install-proprietary-nvidia-driver-kali-linux/

Can you show the output of uname -a
Run apt-cache search linux-headers
apt-get install linux-headers-$(uname-r)
Then try to install.

rauf
2017-01-20, 23:32
Have you tried this solution: https://www.blackmoreops.com/2014/03/13/install-proprietary-nvidia-driver-kali-linux/

Can you show the output of uname -a
Run apt-cache search linux-headers
apt-get install linux-headers-$(uname-r)
Then try to install.

Thank you,
Yes, https://www.blackmoreops.com/2014/03/13/install-proprietary-nvidia-driver-kali-linux/ is 200% same instructions that i followed. Not once, 3 times and every single time it broke ma kali install. Same error all 3 times. "Oh no, Something went wrong....."



Linux black 4.8.0-kali2-amd64 #1 SMP Debian 4.8.15-1kali1 (2016-12-23) x86_64 GNU/Linux

_defalt
2017-01-21, 04:45
The link is old and doesn't guarantee to work with latest upgrades of kernel.

Can you show the output of cat etc/apt/sources.list.

rauf
2017-01-21, 15:50
The link is old and doesn't guarantee to work with latest upgrades of kernel.

Can you show the output of cat etc/apt/sources.list.

Here is the output:


deb http://http.kali.org/kali kali-rolling main contrib non-free
# For source package access, uncomment the following line
deb-src http://http.kali.org/kali kali-rolling main contrib non-free


Yes, I knew the link was old and belongs to kali 1.

I followed these steps as well, but no success


apt-get update
apt-get dist-upgrade
apt-get install -y linux-headers-$(uname -r)
apt-get install nvidia-kernel-dkms
sed 's/quiet/quiet nouveau.modeset=0/g' -i /etc/default/grub
update-grub
reboot

_defalt
2017-01-21, 18:26
Your repositories are incorrect. Uncomment the second entry by putting # before deb-src http://http.kali.org/kali kali-rolling main contrib non-free like this:
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free
The line in your repository # For source package access, uncomment the following line, kali-linux developers really meant that and you were supposed to do that.
I don't recommend to follow any tutorial and workarounds from outside links. Their experience don't fit with new version of kernel.
Follow only this: http://docs.kali.org/general-use/install-nvidia-drivers-on-kali-linux.

rauf
2017-01-21, 18:48
Your repositories are incorrect. Uncomment the second entry by putting # before deb-src http://http.kali.org/kali kali-rolling main contrib non-free like this:
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free
The line in your repository # For source package access, uncomment the following line, kali-linux developers really meant that and you were supposed to do that.
I don't recommend to follow any tutorial and workarounds from outside links. Their experience don't fit with new version of kernel.
Follow only this: http://docs.kali.org/general-use/install-nvidia-drivers-on-kali-linux.

Hi,
I fixed my source list. Now it looks like this:


deb http://http.kali.org/kali kali-rolling main contrib non-free
# For source package access, uncomment the following line
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free


and yes, In my previous post I copied the commands from the same link http://docs.kali.org/general-use/install-nvidia-drivers-on-kali-linux.
because i thought instead of sending you to the link lets copy the commands here.


apt-get update
apt-get dist-upgrade
apt-get install -y linux-headers-$(uname -r)
apt-get install nvidia-kernel-dkms
sed 's/quiet/quiet nouveau.modeset=0/g' -i /etc/default/grub
update-grub
reboot


I really appreciate you help, but i gave up on nvidia driver install on my laptop.
I also have a Dell desktop computer almost same specs as of my laptop (Nvidia GeForce GTX 960 in desktop computer). I installed nvidia drivers without any problems in my destktop and it's running absolutely fine no problems at all.

Now i can use my desktop computer for hashcat. ( i am hastcat lover :) )

Thank you very much once again for all your help.

_defalt
2017-01-21, 20:42
Now you have fixed your repositories, you can try once again by following that link.

rauf
2017-01-22, 00:26
Now you have fixed your repositories, you can try once again by following that link.

:) Broke again.

Now i am running 7th Clean install :)

Ahmed Elkhateeb
2017-02-18, 14:39
I have the same problems as you, i couldn't install nvidia GEFORCE GT630 or the intel HD graphics at any way. but have you managed to install intel HD graphics or not ?!!

_defalt
2017-02-18, 19:37
I have the same problems as you, i couldn't install nvidia GEFORCE GT630 or the intel HD graphics at any way. but have you managed to install intel HD graphics or not ?!!
Intel HD graphics are come pre-installed in kali-linux. The module name is i915. You can view more information by entering modinfo i915 | head and lspci. It is the Nvidia driver which is installed by the user.

Ahmed Elkhateeb
2017-02-20, 21:12
yeah i can see that when entering lspci , but look at this 2246
graphics is intel ivybridge mobile & when i installed windows virtual machine on vmware it also didn't recognized the intel HD graphics .
It may be installed as you said but it isn't activated .
Note : i am still new to Linux distrbution

_defalt
2017-02-21, 02:54
Enable Intel Virtualization technology from your BIOS settings.

Ahmed Elkhateeb
2017-02-21, 12:50
It's enabled

_defalt
2017-02-21, 18:32
It seems more of a problem with the VMware. I don't have solutions for VMware, i don't use vrtual machines. Go through all the VMware settings and find a suspected option until any VMware expert posts solution for this.

Ahmed Elkhateeb
2017-02-21, 21:25
VMware isn't important for me now .. All I want is to fix this problem on Linux ��.. Iam sure it isn't activated since when I run the live version on my friend laptop it reads his GPU but it didn't when I try it for my laptop
Thanks in advance

_defalt
2017-02-22, 13:16
Boot into live USB and see if it shows on your PC? If it does then the problem is with VMware.

Ahmed Elkhateeb
2017-02-22, 18:48
I did. The live boot also didn't show it

starsin
2017-06-09, 05:39
Did we ever figure out the solution? I'm having the same issues and have just started searching for solutions.