Fix intel driver after installing nvidia
After I installed the nvidia proprietary driver from this post with cuda6
I found that the INTEL driver is broken and some apps need it for 3D acceleration like GDM3 or anything that can't run with optirun
so here is a fix I did after reading and searching in other places .
first : to check if your INTEL driver is broken run this command without optirun
if it works you are good nothing to do after this if not follow next instruction
--- remove the invidia driver if you installed it from NVIDIAxxx*.run that is the one you downloaded from nvidia site.
--- remove it with nividia-intaller-cleanup just intall it and it'll prompt you to remove the driver.
--- then follow the first post to install the driver from repository which is 331-xx version. don't forget to change bumblebee and xorg as mentioned in the first post, for the repo driver to work. | the first post is changed it doesn't have the repo driver anymore .| so install it by apt-get intall nvidia-glx and apt-get install nvidia alternative
it will grab everything else . or google how to install nvidia driver 331 would be better.
--- at this point you have the nvidia driver functioning with optirun but if you have cuda6-5 it won't function because it requires a higher version of driver 340.xx. at least that's what happened to me
--- to fix it remove cuda6-5 by entering the folder where you installed the NVIDIA Cuda samples, probably you installed it in root folder. then run
--- remove the samples folder
--- go to /usr/local/ and delete cudaxx and its symlink .
--- you can still use cuda6-5 if you upgrade the driver follow last lines in this post
--- if you are ok with cuda5 download cuda5.xx and install it follow the firt page in this thread .
--- if you have the intel mesa driver broken still then do the next
--- download mesa-alternative-glx I often use synaptic to install my packages else apt-get from terminal .
--- when it's installed run
Code:
update-alternative --config glx
--- when you have both nvidia and intel drivers installed it will display three options
auto (with the selected driver)
manual nvidia
manual intel
--- enter the number in the far left that correspond to intel and hit Enter
--- now it will fix your intel driver. reboot and try glxgears and optirun glxgears it should work, works for me :)
--- finally if you still want to use cuda6-5 update the nvidia driver
--- *add this repo to your source.list .
--- run apt-get update when done open synaptic and upgrade the nvidia driver and reboot
--- now you can install cuda6-5 again following this post
. don't forget to remove the repo you added to your source.list, before you break something
I hope someone will find this useful it works for me
here is glxgears with intel and nvidia notice fps and compare it with nvidia one .
Code:
glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
300 frames in 5.0 seconds = 59.828 FPS
300 frames in 5.0 seconds = 59.807 FPS
with optirun
Code:
optirun glxgears
4139 frames in 5.0 seconds = 827.670 FPS
4114 frames in 5.0 seconds = 822.686 FPS
NVIDIA will not install correctly
First of all many thanks to staticn0de, I could not have made half the progress I have without his posts.
I really hope someone can help me with this issue. I have been struggling for days now trying to get this up and running, i.e. my Nvidia graphics card.
I have listed below all the information I think might be pertinent, maybe over kill but I didn't want to leave anything out. I am new to this so forgive me if I am on the wrong thread or have used the wrong format.
I have downloaded the NVIDIA drivers NVIDIA GeForce 610m (1GB) from the nvidia web site as directed, these are the drivers the specs for my pc state, Lenovo Ideapad U410.
I am running Kali 64 bit as my primary OS, no dual boot, kernel details are also listed below.
Below are the steps I have gone through trying to get this working: These were all done as a regular user then again as root.
-stopped gdm3 / terminal ./NVIDIA-Linux-x86_64-340.65.run -dkms -z (failed)
-stopped gdm3 /terminal ./NVIDIA-Linux-x86_64-340.65.run (failed)
-booted to command prompt ./NVIDIA-Linux-x86_64-340.65.run -dkms -z (failed)
-booted to command prompt ./NVIDIA-Linux-x86_64-340.65.run (failed)
Removed all files containing NVIDIA with Synaptic Package Manager then went through the steps listed above, same results.
Removed all files containing nouveau with Synaptic Package Manager then went through the steps listed above, same results.
I have now reinstalled the nouveau files I removed previously.
I have NOT reinstalled the nvidia files referenced to in Synaptic Package Manager.
I have included my sources list below for verification..it contains notes to myself in it as well.
I have followed the below link on what to do post Kali install
HTML Code:
http://www.blackmoreops.com/2014/03/03/20-things-installing-kali-linux/
I followed these instructions, but lost the gui altogether. This happend a number of times and I reinstalled the OS twice before I found the xorg file and removed it...(I guess I should have read step B and saved some time)
HTML Code:
http://www.blackmoreops.com/2014/06/27/kali-linux-1-0-7-kernel-3-14-install-proprietary-nvidia-driver/
etc/fstab/
Code:
## CD/DVD Repositories ##
#deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot amd64 LIVE/INSTALL Binary 20141002-11:29]/ kali contrib main non-free
#deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot amd64 LIVE/INSTALL Binary 20141002-11:29]/ kali contrib main non-free
## Regular Repositories ##
deb http://http.kali.org/kali kali main non-free contrib
#deb http://security.kali.org/kali-security kali/updates main contrib non-free
## Source Repositories ##
deb-src http://http.kali.org/kali kali main non-free contrib
deb-src http://security.kali.org/kali-security kali/updates main contrib non-free
## Security Updates ##
deb http://security.kali.org/kali-security kali/updates main contrib non-free
## HOWTO - Install GNS3 1.2 using Kali Linux 1.0.9 64-bit ##
## https://community.gns3.com/thread/3752 ##
## REMOVE THESE FROM SOURCES AFTER INTSLLING GNS3 SEEMED TO CAUSE PROBLEMS WITH GUI IF USED W/APT-GET UPDATE / UPGRADE ##
#deb http://http.us.debian.org/debian testing main non-free contrib
#deb-src http://http.us.debian.org/debian testing main non-free contrib
Code:
user@gabrielle:~$ lspci -vnn | grep VGA -A 12
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09) (prog-if 00 [VGA controller])
Subsystem: Lenovo Device [17aa:3903]
Flags: bus master, fast devsel, latency 0, IRQ 47
Memory at eb000000 (64-bit, non-prefetchable) [size=4M]
Memory at d0000000 (64-bit, prefetchable) [size=256M]
I/O ports at 4000 [size=64]
Expansion ROM at <unassigned> [disabled]
Capabilities: <access denied>
Kernel driver in use: i915
00:14.0 USB controller [0c03]: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller [8086:1e31] (rev 04) (prog-if 30 [XHCI])
Subsystem: Lenovo Device [17aa:3977]
Flags: bus master, medium devsel, latency 0, IRQ 41
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:1058] (rev a1) (prog-if 00 [VGA controller])
Subsystem: Lenovo Device [17aa:3903]
Flags: bus master, fast devsel, latency 0, IRQ 46
Memory at ea000000 (32-bit, non-prefetchable) [size=16M]
Memory at e0000000 (64-bit, prefetchable) [size=128M]
Memory at e8000000 (64-bit, prefetchable) [size=32M]
I/O ports at 3000 [size=128]
Expansion ROM at <ignored> [disabled]
Capabilities: <access denied>
Kernel driver in use: nouveau
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller [10ec:8136] (rev 05)
Subsystem: Lenovo Device [17aa:3975]
Code:
user@gabrielle:~$ uname -a
Linux gabrielle 3.14-kali1-amd64 #1 SMP Debian 3.14.5-1kali1 (2014-06-07) x86_64 GNU/Linux
Code:
user@gabrielle:~$ lsmod | grep nouveau
nouveau 1053347 0
mxm_wmi 12515 1 nouveau
ttm 69667 1 nouveau
drm_kms_helper 39998 2 i915,nouveau
video 17804 2 i915,nouveau
drm 240557 5 ttm,i915,drm_kms_helper,nouveau
i2c_algo_bit 12751 2 i915,nouveau
i2c_core 24265 7 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit,nouveau,videodev
wmi 17339 2 mxm_wmi,nouveau
button 12944 2 i915,nouveau
Code:
user@gabrielle:/home/user# passwd -S sys | tail -1 | awk '{print $3}'
10/02/2014
Code:
user@gabrielle:/home/user# tune2fs -l /dev/sda1 | grep 'Filesystem created'
Filesystem created: Thu Dec 25 12:43:33 2014
Code:
user@gabrielle:/home/user# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 2
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 58
Stepping: 9
CPU MHz: 806.250
BogoMIPS: 4988.59
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 4096K
NUMA node0 CPU(s): 0-3
Code:
user@gabrielle:/home/user# lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation Device 1058 (rev a1)
Code:
user@gabrielle:~$ lspci | egrep 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation Device 1058 (rev a1)
nvidia-installer log file '/var/log/nvidia-installer.log'
Code:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Wed Dec 31 10:46:46 2014
installer version: 340.65
PATH: /sbin:/usr/sbin:/bin:/usr/bin
nvidia-installer command line:
./nvidia-installer
Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 340.65.
-> There appears to already be a driver installed on your system (version: 340.65). As part of installing this driver (version: 340.65), the existing driver will be uninstalled. Are you sure you want to continue? (Answer: Continue installation)
-> Would you like to register the kernel module sources with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later. (Answer: Yes)
-> Installing both new and classic TLS OpenGL libraries.
-> Installing both new and classic TLS 32bit OpenGL libraries.
-> Install NVIDIA's 32-bit compatibility libraries? (Answer: No)
-> Parsing log file:
-> done.
-> Validating previous installation:
-> done.
-> Uninstalling NVIDIA Accelerated Graphics Driver for Linux-x86_64 (1.0-34065 (340.65)):
-> DKMS module detected; removing...
-> done.
-> Uninstallation of existing driver: NVIDIA Accelerated Graphics Driver for Linux-x86_64 (340.65) is complete.
-> Skipping installation of the libvdpau wrapper library.
-> Searching for conflicting X files:
-> done.
-> Searching for conflicting OpenGL files:
-> done.
-> Installing 'NVIDIA Accelerated Graphics Driver for Linux-x86_64' (340.65):
executing: '/sbin/ldconfig'...
-> done.
-> Driver file installation is complete.
-> Installing DKMS kernel module:
ERROR: Failed to run `/usr/sbin/dkms build -m nvidia -v 340.65 -k 3.14-kali1-amd64`:
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area....
make KERNELRELEASE=3.14-kali1-amd64 module KERNEL_UNAME=3.14-kali1-amd64; make -C uvm module KERNEL_UNAME=3.14-kali1-amd64 KBUILD_EXTMOD=/var/lib/dkms/nvidia/340.65/build/uvm....(bad exit status: 2)
Error! Bad return status for module build on kernel: 3.14-kali1-amd64 (x86_64)
Consult /var/lib/dkms/nvidia/340.65/build/make.log for more information.
-> error.
ERROR: Failed to install the kernel module through DKMS. No kernel module was installed; please try installing again without DKMS, or check the DKMS logs for more information.
ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.
NVIDIA will not install correctly
Staticn0de...again many thanks. I do NOT have python errors anymore, infact I just rebuilt this Kali install, 3x. I had a backup file which I used, but that failed. Anyway post 25 was followed exactly, after a clean install.
As you can see I am still having issues, and the NVIDIA drivers failed to install.
Quote:
Edit xorg.conf.nvidia and add a line under the 'Section "Device"' area so that is matches what is shown below. Change the bus ID to match what you recorded previously and take note that you recored a . before the last number and it is now a ':'. You need the ':'.
Section "Device"
Identifier "DiscreteNvidia"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BusID "PCI:03:00:0"
Above directions were not compete...file xorg.conf.nvidia does not exist, see below code.
Code:
root@Debian:/var/lib/dkms/nvidia/340.65/build# locate xorg.conf.
/usr/share/X11/xorg.conf.d
/usr/share/X11/xorg.conf.d/10-evdev.conf
/usr/share/X11/xorg.conf.d/50-synaptics.conf
/usr/share/X11/xorg.conf.d/50-vmmouse.conf
/usr/share/X11/xorg.conf.d/50-wacom.conf
/usr/share/man/man5/xorg.conf.5.gz
/usr/share/man/man5/xorg.conf.d.5.gz
Quote:
It would also be good to see the log here:
/var/lib/dkms/nvidia/340.65/build/make.log
The above requested file does not exist, see below.
Code:
root@Debian:/var/lib/dkms/nvidia/340.65/build# ls
conftest.sh Makefile nv-dma.c nv_gpu_ops.h nvidia-modules-common.mk nv-misc.h nv-procfs.c nv_uvm_interface.c os-interface.h os-usermap.c
cpuopsys.h nv-acpi.c nv-drm.c nvgputypes.h nv-kernel.o nv-mmap.c nv-proto.h nv_uvm_interface.h os-mlock.c rmil.h
dkms.conf nv.c nverror.h nv-gvi.c nv-linux.h nv-p2p.c nv-reg.h nv-vm.c os-pci.c rmretval.h
gcc-version-check.c nv-chrdev.c nv-frontend.c nv.h nv-memdbg.h nv-p2p.h nvtypes.h nv-vtophys.c os-registry.c uvm
g_nvreadme.h nv-cray.c nv-frontend.h nv-i2c.c nv-mempool.c nv-pat.c nv-usermap.c os-interface.c os-smp.c xapi-sdk.h
root@Debian:/var/lib/dkms/nvidia/340.65/build#
I do have this file...
Code:
root@Debian:/usr/share/doc/NVIDIA_GLX-1.0# cat README.txt
The above file had too many characters to post.
I use Kali is my primary OS, bad practice I know, but I use it with work constantly. I hope that my installing additional applications doesn't impair our working on my NVIDIA graphics driver. As you can see I am still in need of some assistance. Please let me know what files or data I can post that will help this along.
Vr/
NVIDIA will not install correctly
@staticn0de
Thanks for pointing out the files, apprantly I don't know how to use the command 'locate'.
I have completed the install now, without error. I guess maybe I am not in the know for how NVIDIA Gforce is used. Under Applications -> System Tools -> Preferences -> NVIDIA X server settings I have the below error.
Code:
You do not appear to be using the NVIDIA X driver. Please edit your X configuration file (just run `nvidia-xconfig` as root), and restart the X server.
Applications -> System Tools -> Preferences -> Systems Settings -> Details -> Graphics (there is no driver listed and Experience states "Fallback)
Applications -> Programming -> Nvidia Visual Profiler (not sure what this is all about, it appears to be a web page)
I guess I am confused as to what getting the NVIDIA drivers installed correctly was supposed to accomplish.