Install Nvidia driver on Centos 6 system and Lenovo optimus Laptop Y580 failed
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Install Nvidia driver on Centos 6 system and Lenovo optimus Laptop Y580 failed
I have a Lenovo Y580 Laptop with Centos 6.4 version on it. The original kernel is 2.6.32. I compiled a newer version kernel 3.4.53. And I used the newer version all the time.
Recently, I decided to install nvidia driver on my Centos 6 system, and be able to switch between integrated video card and nvidia video card. I used "yum install bumblebee" to install all the dependencies. However, I encountered several difficulties.
1. The bbswitch module cannot be found. It turned out yum install the bbswitch and nvidia modules into /lib/modules/2.6.32-xxx... instead of /lib/modules/3.4.53/. I searched online, I think the reason is that the kernel header is still 2.6.32 even I am using 3.4.53. I cannot find 3.4.53 version of kernel header by something like "yum install kernel-devel-3.4.53". So I have to switch back to 2.6.32.
2. The new problem is the nvidia driver doesn't work. I tried both ways: install xxx.run from downloaded from nvidia.com direclty and blacklist nouveau; or install nvidia.ko using yum install kmod-nvidia. It will automatically blacklist nouveau driver. But after I reboot system, I cannot login, it will stuck in booting stage.
3. Another way I tried is to remove all the nvidia configuration file and remove blacklist of nouveau, so I can login using nouveau driver. I can also turn on bbswitch: tee /proc/acpi/bbswitch <<<ON. But when I try to load nvidia.ko by "modprobe nvidia" OR use "optirun glxgear", my computer will freeze forever. I have to push power off for several seconds to shut it down.
2 ~ 3 indicate that I didn't get nvidia driver installed correctly. So my questions are: (1) Is there a way to install correct kernel version when I use 3.4.53, so that I can use yum install to get the correct kernel module place.(2) More importantly, how can I enable nvidia,ko without crash the system.
The bbswitch module cannot be found. It turned out yum install the bbswitch and nvidia modules into /lib/modules/2.6.32-xxx... instead of /lib/modules/3.4.53/. I searched online, I think the reason is that the kernel header is still 2.6.32 even I am using 3.4.53.
I think your right so....
Installing the kernel-devel and the kernel-headers and that should solve that problem.
As far as the Nvidia and Bumblebee issue that you have going on, I don't for one, understand why it's not working for you. Also I don't have experience with Nvidia cards.
Thank you! I have checked the BIOS, it has two options. One is for integrated card only, the other one is switchable card. Since my laptop is dual boot (CentOS+Windows7). I can use Nvidia GPU in Win7 system. So it's not because of the BIOS setting.
Thank you! I have checked the BIOS, it has two options. One is for integrated card only, the other one is switchable card. Since my laptop is dual boot (CentOS+Windows7). I can use Nvidia GPU in Win7 system. So it's not because of the BIOS setting.
Your very Welcome:-
-:-Let us know how how things go with the kernel-devel and kernel-headers.-:-
Cent dose not support OLD minor versions
CentOS 6.4 and 6.5 are BOTH unsupported
upgrade the the current and only supported version ASAP
CentOS 6.6 ( soon to be 6.7 )
I use "cat /etc/issue" to check, my version is CentOS 6.4. But if I use "cat /etc/redhat-release", my version is CentOS 6.6(Final). So I think 6.6 is the correct version.
Quote:
Originally Posted by John VV
you first have to uninstall nouveau then REBUILD!!! the boot image
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.