Author Topic: How to remove unneeded modules  (Read 2880 times)

Dj

  • Newbie
  • *
  • Posts: 43
  • Karma: +0/-0
How to remove unneeded modules
« on: Thu Dec 29 15:25:39 2022 »
Hello!
 I did not install any bluetooth application. But I can see that some bt modules are active.
Any ideas, thank you.

Thierry

  • Administrator
  • Hero Member
  • *****
  • Posts: 706
  • Karma: +13/-0
  • Gender: Male
    • NuTyX distribution

Dj

  • Newbie
  • *
  • Posts: 43
  • Karma: +0/-0
Re: How to remove unneeded modules
« Reply #2 on: Thu Dec 29 18:01:24 2022 »
There is no  /etc/modprobe.d/

Thierry

  • Administrator
  • Hero Member
  • *****
  • Posts: 706
  • Karma: +13/-0
  • Gender: Male
    • NuTyX distribution
Re: How to remove unneeded modules
« Reply #3 on: Thu Dec 29 18:33:06 2022 »
Damm you right it's in

/etc/sysconfig/modules.d/ directory now

Thanks for pointing  out

Documentation is also fixed :)
BR,
Thierry
« Last Edit: Thu Dec 29 18:57:22 2022 by Thierry »

Dj

  • Newbie
  • *
  • Posts: 43
  • Karma: +0/-0
Re: How to remove unneeded modules
« Reply #4 on: Fri Jan 06 11:26:01 2023 »
I am not quite sure how to blacklist bluetooth.
There is no /etc/sysconfig/modules.d/ folder in my installation of Nutyx.

Thierry

  • Administrator
  • Hero Member
  • *****
  • Posts: 706
  • Karma: +13/-0
  • Gender: Male
    • NuTyX distribution
Re: How to remove unneeded modules
« Reply #5 on: Fri Jan 06 12:33:31 2023 »
Hi Dj

Blacklist it in a /etc/sysconfig/modprobe.d/blacklist.conf file as done with the forte module in the example below:

In root:

Code: [Select]
mkdir -p /etc/sysconfig/modules.d
echo "blacklist forte" >/etc/sysconfig/modprobe.d/blacklist.conf

Blacklisted modules can still be loaded manually with the explicit modprobe command.

BR,
Thierry

Dj

  • Newbie
  • *
  • Posts: 43
  • Karma: +0/-0
Re: How to remove unneeded modules
« Reply #6 on: Sat Jun 24 16:47:51 2023 »
Sorry for bumping this thread. I have been trying to blacklist acpi-cpufreq.
 But that module is still active.
 Can anyone help ?

Thierry

  • Administrator
  • Hero Member
  • *****
  • Posts: 706
  • Karma: +13/-0
  • Gender: Male
    • NuTyX distribution
Re: How to remove unneeded modules
« Reply #7 on: Sun Jun 25 20:42:41 2023 »
What is the file you're using for blacklisting ?