Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] modules loading even though they are blacklisted
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
runningnak3d
n00b
n00b


Joined: 05 Sep 2018
Posts: 58

PostPosted: Sun Jan 27, 2019 12:40 pm    Post subject: [SOLVED] modules loading even though they are blacklisted Reply with quote

I have a laptop with nVidia Optimus, and I have Bumblebee setup. It works great with one exception -- the nvidia and nvidia_modeset kernel modules get loaded at boot.

I have blacklisted them in /etc/modprobe.d. I have blacklisted them in grub. I have extracted my initramfs, removed them, and packed it back up -- and they STILL load.

It isn't a huge deal since I can unload them, and then bbswitch works as expected, but this is about to drive me nuts.

I have other modules that I have blacklisted that don't load -- for example, I have my wireless driver blacklisted because I don't want it loaded unless I NEED wireless.

If anyone has any insight on where else to look, it would be appreciated. I am glad to post any logs / configs, but for now, I am not sure what would be of use since I have dug and haven't really found anything.

EDIT: The main reason that I want to solve this is that I also have a Displaylink adapter. If the nvidia module loads and I plug in the DL adapter, then suspend my laptop, the next time I resume -- Gnome crashes back to a login screen and I lose everything.

If I remember to unload the nvidia module, and the evdi module, then reload evdi, then plug in the DL adapter -- no crash on suspend.

-- Brian


Last edited by runningnak3d on Wed Jan 30, 2019 8:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
xdarma
l33t
l33t


Joined: 08 Dec 2003
Posts: 687
Location: tra veneto e friuli (italy)

PostPosted: Wed Jan 30, 2019 3:47 pm    Post subject: Reply with quote

IIRC, nvidia provide three modules for his hardware, maybe you need to blacklist all?

I blacklist on boot this way:
Code:
modprobe.blacklist=radeon

And it works on my computer.
_________________
proud user of faKeDE-4.7.3
Back to top
View user's profile Send private message
runningnak3d
n00b
n00b


Joined: 05 Sep 2018
Posts: 58

PostPosted: Wed Jan 30, 2019 6:59 pm    Post subject: Reply with quote

Thanks for the advice, but yea, I already tried blacking via the kernel parameter as well.

You are correct, there are three modules (nvidia, nvidia-modeset, and nvidia-drm), and I am blacklisting all three.

Now, I am truly stumped as to WHERE they are getting loaded from.

Since my first post, I have removed all things nVidia from my system (a find for nvidia.ko returns nothing) and they are STILL getting loaded from somewhere. WTF?!?

At this point it would be quicker for me to just reinstall, but that is the cowards way out ;)

I am determined to figure out how / why / and now WHERE these are getting loaded from.

-- Brian
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7093
Location: Saint Amant, Acadiana

PostPosted: Wed Jan 30, 2019 7:11 pm    Post subject: Reply with quote

What modinfo tells you?
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
runningnak3d
n00b
n00b


Joined: 05 Sep 2018
Posts: 58

PostPosted: Wed Jan 30, 2019 8:37 pm    Post subject: Reply with quote

Well, I managed to solve this effing mystery.

I have two drives in my laptop, and I use one for LVM snapshots. I don't know how, but I had a snapshot of my boot partition, and my laptop was booting from it -- so all my changes to the MOUNTED /boot were doing nothing.

Also, my changes to initramfs were for naught.

This is what I get for not compiling a new kernel more often. I am pretty sure I would have noticed real quick if a new kernel wasn't booting - LOL.

Will mark this as solved.

-- Brian
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum