2

So I have to use a command every time I boot my laptop in order to my wireless to work.

the command is:

sudo modprobe -r acer-wmi

I found that this is a common type of question but I didn't find a pattern in the answers.

1

2 Answers 2

4

I suggest you blacklist the module so it never loads at all:

sudo -i
echo "blacklist acer-wmi"  >>  /etc/modprobe.d/blacklist.conf
exit

Reboot and test.

2

You have to add a configuration file in /etc/modprobe.d/

Blacklisting modules

In your case since you don't want to load acer-wmi module automatically, you have to blacklist it.

First try this command:

sudo sh -c 'echo blacklist acer-wmi >> /etc/modprobe.d/blacklist.conf'

In the case where the module is still being load, it means that there is another module that depends on acer-wmi. So a workaround is to use:

sudo sh -c 'echo install acer-wmi /bin/false >> /etc/modprobe.d/blacklist.conf'

Sources: Ubuntu Wiki, Arch Wiki

Edit: Rectification according to chili555's answer.

4
  • so the -r is to remove the module? Nov 7, 2014 at 21:50
  • 1
    Yes. From man modprobe command: This option (-r or --remove) causes modprobe to remove rather than insert a module. If the modules it depends on are also unused, modprobe will try to remove them too.
    – LeRieur
    Nov 7, 2014 at 21:54
  • 1
    the echo didn't work but since you explained what it was supposed to do, I manually added the 'blacklist acer-wmi' to the modprobe blacklist file thanks I will also mark your answer as the correct, even if chili555 was right because you explained and you placed links to documentation. kudos for both :) Nov 7, 2014 at 22:19
  • 1
    @LeRieur The correct file is not /etc/modprobe.d/blacklist, it is /etc/modprobe.d/blacklist.conf.
    – chili555
    Nov 7, 2014 at 22:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .