I am practising with
Code: Select all
lsmod
I have removed it using
Code: Select all
modprobe -r
¿How can I avoid this behaviour?
Thanks!
Code: Select all
lsmod
Code: Select all
modprobe -r
If I stop bluetooth.service, ¿won't it load again when I restart?wizard10000 wrote:Easiest way? As root:
Next easiest way? Uninstall bluetooth.Code: Select all
systemctl stop bluetooth.service systemctl disable bluetooth.service
Next easiest way? Blacklist the kernel module.
Hope this helps -
Code: Select all
"but the module may be loaded if another non-blacklisted module depends on it or if it is loaded manually. "
Code: Select all
lsmod
Code: Select all
bluetooth 374429 21 bnep,btusb
Correct me if l'm wrong, but you need to use mask to prevent other software from reactivation bluetooth.service like:wizard10000 wrote:Easiest way? As root:
Next easiest way? Uninstall bluetooth.Code: Select all
systemctl stop bluetooth.service systemctl disable bluetooth.service
Next easiest way? Blacklist the kernel module.
Hope this helps -
Code: Select all
systemctl disable bluetooth
systemctl mask bluetooth
¿And how do you blacklist it? I have editedwizard10000 wrote: Excellent point. Shutting it off in BIOS or blacklisting the driver works for me.
Code: Select all
/etc/modprobe.d/blacklist.conf
Code: Select all
blacklist bluetooth
Code: Select all
lsmod
Good point. I'll check it out. I'm using systemd on Debian7.Segfault wrote:It may be different with systemd ... my 2¢.
I wonder, what sort of "speed up" of the system do you expect to achieve by disabling an unused bluetooth module? I'm not suggesting that you shouldn't disable any module you want to but will you be able to measure or perceive a "speed up"?banderas20 wrote: ...and I'm trying to disable Bluetooth module to speed up the system, since I don't use it.
Maybe "speed up" is not the right word. But tune it to the specific needs. If I'm not going to use Bluetooth, I want to load just the necessary modules.Thorny wrote:I wonder, what sort of "speed up" of the system do you expect to achieve by disabling an unused bluetooth module? I'm not suggesting that you shouldn't disable any module you want to but will you be able to measure or perceive a "speed up"?banderas20 wrote: ...and I'm trying to disable Bluetooth module to speed up the system, since I don't use it.
No it is not. On this low end laptop that I am using now, kernel boot time is 3.9 seconds according to systemd-analyze (user space is 7 and grub 2 and firmware sometihng). Pulling out modules will likely do nothing noticeable unless your using some 20 year old processor or really short on RAM. But it can be an interesting intellectual ordeal to try to roll a custom made kernel.banderas20 wrote:Thorny wrote:banderas20 wrote:Maybe "speed up" is not the right word. .
I'm too newbie to compile my own kernel yetSegfault wrote:Roll your own kernel and get rid of all unnecessary modules at once.
Nothing. I must get deep into it in order to learn.Segfault wrote:My first Linux was RH-5.0. It came with kernel 2.0. Which did not have the driver for my Gravis Ultrasound. I had to patch the kernel to make my sound work. I was complete newbie in Linux and all documentation was in English. I knew about ten words in English. So I was learning Linux, kernel and English at the same time. I succeeded. What you are waiting for?