LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-23-2017, 05:52 PM   #1
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Rep: Reputation: 174Reputation: 174
How do I remove or kill an unnecessary video driver?


I have a video driver conflict on my CentOS 7.3 workstation. The message is
Code:
[    1.130608] [drm:i915_gem_init_stolen [i915]] *ERROR* conflict detected with stolen region: [0xce000000 - 0xd0000000]
I have determined that the situtation is the result of installing CentOS with the Intel integrated graphics (which did not meet my need) then installing an Nvidia Quadro K620 card and the kmod-nvidia driver. The kmpd-nvidia package blacklisted the nouveau driver in grub. However, the Intel driver ("i915" as best I can determine) is still loading. I added the blacklist command to /etc/default/grub and ran grub2-mkconfig -o /boot/grub2/grub.cfg. That did not have any effect.

For my next trick I created /etc/modprobe.d/blacklist.conf containing one line

blacklist i915

I then regenerated initramfs as follows

dracut -f /boot/initramfs-3.10.0-514.10.2.el7.x86_64.img 3.10.0-514.10.2.el7.x86_64

The computer rebooted fine. However, I still see the i915 conflict error. Can someone point to what I have done wrong? Do I perhaps not have the correct name of the driver which I am trying to blacklist?

Here are the reults of my effort to identify the offending driver.
Code:
[root@taylor20 Desktop]# lspci | grep Intel

00:02.0 Display controller: Intel Corporation HD Graphics 530 (rev 06)

[root@taylor20 Desktop]# less /proc/modules
 
 (I found the following lines of interest)
 
nvidia_drm 53080 1 - Live 0xffffffffa01cd000 (POE)
nvidia_modeset 790274 4 nvidia_drm, Live 0xffffffffa0fd4000 (POE)
i915 1307079 2 - Live 0xffffffffa0e5c000
nvidia 12145802 70 nvidia_modeset, Live 0xffffffffa01ea000 (POE)
crct10dif_pclmul 14289 1 - Live 0xffffffffa01c8000
crct10dif_common 12595 3 crc_t10dif,crct10dif_generic,crct10dif_pclmul, Live 0xf
fffffffa0121000

video 24400 1 i915, Live 0xffffffffa0018000

[root@taylor20 Desktop]# lsmod

 (I found the following lines of interest)
 
nvidia_drm             53080  1
nvidia_modeset        790274  4 nvidia_drm
i915                 1307079  2
nvidia              12145802  70 nvidia_modeset

i2c_hid                18821  0
i2c_core               40756  7 drm,i915,i2c_i801,i2c_hid,drm_kms_helper,i2c_algo_bit,nvidia
Any help would be greatly appreciated. I really do not want to reinstall the OS and all the packages I need and do all the configuration and tweaking - about 2 weeks effort - well probably not that long this time - I do have some decent build notes

Tia,

Ken
 
Old 03-23-2017, 08:37 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
This should help.

Blacklisting a Driver-

https://access.redhat.com/documentat...cklisting.html
 
1 members found this post helpful.
Old 03-23-2017, 08:46 PM   #3
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
Thanks Ztcoracat,

I believe I came across that page in my searching. It is for RHEL 6.8 which I think still used grub as opposed to grub2(?) I have bookmarked it and will dig in tomorrow morning.

Ken
 
1 members found this post helpful.
Old 03-23-2017, 08:56 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,976

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Maybe something like this? http://www.dedoimedo.com/computers/centos-7-nvidia.html for clues.

Last edited by jefro; 03-23-2017 at 08:58 PM.
 
1 members found this post helpful.
Old 03-23-2017, 09:03 PM   #5
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
Thanks jefro,

I believe that is the page where I got my grub blacklist ideas from. I must have transcribed something wrong or missed a step when cloning the Nouveau blacklist process to my i915 blacklist. I will try again in the morning.

Ken
 
Old 03-23-2017, 09:11 PM   #6
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by taylorkh View Post
Thanks Ztcoracat,

I believe I came across that page in my searching. It is for RHEL 6.8 which I think still used grub as opposed to grub2(?) I have bookmarked it and will dig in tomorrow morning.

Ken
You're Welcome.

Just add 2 like this:
Code:
/boot/grub2/grub.conf
The RH documentation works well for CentOS as it is the free version of the rebuild.

Last edited by Ztcoracat; 03-23-2017 at 09:12 PM.
 
1 members found this post helpful.
Old 03-23-2017, 09:19 PM   #7
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
http://www.advancedclustering.com/ac...rhel-centos-7/
 
1 members found this post helpful.
Old 03-24-2017, 08:15 AM   #8
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
The grub configuration file is still /etc/default/grub in grub2. It is the updating process which is different. In grub it was update-grub. In grub2 it is
Code:
grub2-mkconfig -o /boot/grub2/grub.cfg
At least that is what I have found. Anyhow, here is what I changed the /etc/default/grub file to read
Code:
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto rhgb quiet nouveau.modeset=0 rd.driver.blacklist=nouveau rd.driver.blacklist=i915"
GRUB_DISABLE_RECOVERY="true"
I also tried rddriver.blacklist= as shown in the example (without the period between rd and driver). I then ran the grub2-mkconfig command and rebooted. No change. I still see the offending i915
Code:
[ken@taylor20 Desktop]$ lsmod | grep i915
i915                 1307079  2 
i2c_algo_bit           13413  1 i915
drm_kms_helper        146456  2 i915,nvidia_drm
drm                   372540  5 i915,drm_kms_helper,nvidia_drm
video                  24400  1 i915
i2c_core               40756  7 drm,i915,i2c_i801,i2c_hid,drm_kms_helper,i2c_algo_bit,nvidia
That is where I am at.

Ken
 
Old 03-24-2017, 02:07 PM   #9
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Ideas:

Edit the end of the kernel line to say:
Code:
rdblacklist=i915
Than create a new file named /etc/modprobe.d/ and add this argument to it:
Code:
blacklist i915
Reboot--

If that doesn't work you can press the 'e' key from the bootloader as it's booting up and edit the kernel line that way.

-e is for edit
-o is for insert a new line
-d is to delete a line

After you make the changes press the 'b' key it executes the cmds and boots the os.

OR> you can hold down Ctrl and X to start.
 
1 members found this post helpful.
Old 03-25-2017, 06:12 PM   #10
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
Thanks Ztcoracat,

In fact I have done both of the procedures you recommended and I have also killed the rogue driver. At least ps does not show it in memory anymore. I still get the conflict detected with stolen region error which made me think it was still present. I also get some other errors flash by when I resume the machine. Too fast to read/memorize and I am tired of screwing with it. I did confirm experimentally that if I install CentOS with the Nvidia card in place the i915 drivers are not even installed on the OS drive. I am reviewing my installation/configuration notes and, provided I can restore my /home directory with my personal preferences etc., I should be able to rebuild it in less than a day. I think it will be worth the effort. I ran my original CentOS 6 install - updated of course - for 7 years.

Ken

p.s. FANTASTIC artwork!!!

Last edited by taylorkh; 03-25-2017 at 06:15 PM.
 
1 members found this post helpful.
Old 03-25-2017, 06:19 PM   #11
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by taylorkh View Post
Thanks Ztcoracat,

In fact I have done both of the procedures you recommended and I have also killed the rogue driver. At least ps does not show it in memory anymore. I still get the conflict detected with stolen region error which made me think it was still present. I also get some other errors flash by when I resume the machine. Too fast to read/memorize and I am tired of screwing with it. I did confirm experimentally that if I install CentOS with the Nvidia card in place the i915 drivers are not even installed on the OS drive. I am reviewing my installation/configuration notes and, provided I can restore my /home directory with my personal preferences etc., I should be able to rebuild it in less than a day. I think it will be worth the effort. I ran my original CentOS 6 install - updated of course - for 7 years.

Ken

p.s. FANTASTIC artwork!!!
You're Welcome-

Glad you had success with blacklisting that driver.
Good luck with the rebuild.

Thanks! Nice of you to say positive feedback about my Art work.
 
Old 03-25-2017, 06:25 PM   #12
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Don't forget to click 'yes' if the post was helpful and when you get a chance mark your thread SOLVED.

Have a good weekend!-
 
Old 03-25-2017, 08:19 PM   #13
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
Glad to do so.

Ken
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remove unnecessary files from kernel mrigendra Linux - Newbie 11 07-26-2016 06:33 PM
[SOLVED] how to use 'apt-get autoremove' to remove unnecessary packages Gregg Bell Linux - Newbie 6 12-05-2014 01:44 AM
Ubuntu Netbook - remove all unnecessary packages to run a server role fantasygoat Linux - Server 5 11-25-2010 12:55 PM
remove unnecessary contents divyashree Linux - Newbie 4 06-15-2009 06:20 AM
Remove unnecessary packages on a Fedora 10 install Roflcopter Linux - Software 5 04-12-2009 11:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration