Blacklist command not available - blacklist kernel module - Ubuntu/Mint/Debian


#1

My wifi has locked out again been OK for over a year. Last time I had a problem I blacklisted the acer wmi and it worked fine. But when I tried to do the same again I keep getting a blacklist command not available message. Can anyone suggest how to reinstate the blacklist function?

Linux mint 18.3
Acer es 15 laptop


#2

Hi Phil,

Without more information I can only guess that you are trying to run blacklist as a command with the kernel module as a parameter on the Linux command line. Example:

$ sudo blacklist acer_wmi
[sudo] password for linuxconfig:
sudo: blacklist: command not found

Please note that the blacklist is an instruction only to be used within /etc/modprobe.d/ configuration files located in this directory. Given that the kernel module name you are trying to blacklist is called acer_wmi then execute following commands to create a new /etc/modprobe.d/blacklist.conf configuration file to blacklist the acer_wmi module.

Note: It is a good idea to check whether the /etc/modprobe.d/blacklist.conf configuration file does not already exists so you do not overwrite it. Alternatively use >> to append to the file in case the file already exists. In case the file does not exists the file will be created. Yet, another alternative is to simply use any text editor to edit the /etc/modprobe.d/blacklist.conf configuration file:

$ sudo bash -c 'echo blacklist acer_wmi >> /etc/modprobe.d/blacklist.conf'
$ sudo update-initramfs -u

The below image demonstrates the entire procedure. In this case we are blacklisting the aesni_intel kernel module. This procedure works on any Debian based Linux distros such us Mint, Ubuntu, Debian and more:

For more information visit: https://linuxconfig.org/how-to-blacklist-a-module-on-ubuntu-debian-linux

Hope this helps!

Lubos


#3

Hi Lubos
Thank you for your time on this,
My problem is that the Wifi just stopped working after 12 months or more. I had the same problem then and solved it by blacklisting the acer_wmi which has a conflict with MINT somehow.
I have tried your suggestion and still no wifi. Any other suggestions. I do have wired internet so that not affected.

Phil


#4

Hi Phil,

Can you please be more specific. There are many states for not working. For example the module for wifi does not load, you cannot connect to AP or you simply do not have IP address assigned.

Please paste here the output of the following commands:

# lspci
# iwconfig
# lsmod

Also try run dmesg command to see if you do not find anything suspicious.

Lubos


#5

Hi
phil@phil-Aspire-ES1-521 ~ $ # 1spci
phil@phil-Aspire-ES1-521 ~ $ # iwconfig
phil@phil-Aspire-ES1-521 ~ $ # 1smod

Hopefully, I did this right nothing happened with each line

In terms of wifi not working, it has disappeared from the network settings but says I had a connection 9 days ago.
Also not on rfkill list, seems not to be recognised at all. Was working seamlessly but about 9 days ago no wifi connection could be made but wired connection working as before.

best
Phil


#6

Hi Phil,

BTW: Did something worth to mention happened with your system when the WiFi stopped working? For example, major upgrade, you installed some new packages which may be in conflict etc.

Please read the following Conventions section and and try again to execute previously mentioned commands and paste here the output. Also note the difference between 1spci and lspci.

thank you

Lubos


#7

As suggested I’ve finally got the information.I did run dmseg but didn’t see anything obvious like error messages.
Aspire-ES1-521 phil # lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1566
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Mullins [Radeon R4/R5 Graphics]
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Kabini HDMI/DP Audio
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 156b
00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1
00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1
00:08.0 Encryption controller: Advanced Micro Devices, Inc. [AMD] Device 1537
00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 11)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 40)
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39)
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39)
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 42)
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 02)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11)
00:14.7 SD Host controller: Advanced Micro Devices, Inc. [AMD] FCH SD Flash Controller (rev 01)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1580
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1581
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1582
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1583
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1584
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1585
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10)
02:00.0 Network controller: Broadcom Corporation BCM43142 802.11b/g/n (rev 01)
-ES1-521 phil # lsmod
Module Size Used by
rfcomm 77824 14
bnep 20480 2
binfmt_misc 20480 1
nls_iso8859_1 16384 1
rtsx_usb_ms 20480 0
memstick 16384 1 rtsx_usb_ms
btusb 45056 0
btrtl 16384 1 btusb
btbcm 16384 1 btusb
btintel 16384 1 btusb
uvcvideo 86016 0
bluetooth 557056 41 btrtl,btintel,bnep,btbcm,rfcomm,btusb
videobuf2_vmalloc 16384 1 uvcvideo
videobuf2_memops 16384 1 videobuf2_vmalloc
videobuf2_v4l2 24576 1 uvcvideo
videobuf2_core 40960 2 uvcvideo,videobuf2_v4l2
ecdh_generic 24576 1 bluetooth
videodev 180224 3 uvcvideo,videobuf2_core,videobuf2_v4l2
media 40960 2 uvcvideo,videodev
edac_mce_amd 28672 0
kvm_amd 86016 0
kvm 598016 1 kvm_amd
irqbypass 16384 1 kvm
crct10dif_pclmul 16384 0
crc32_pclmul 16384 0
ghash_clmulni_intel 16384 0
pcbc 16384 0
aesni_intel 188416 0
aes_x86_64 20480 1 aesni_intel
crypto_simd 16384 1 aesni_intel
glue_helper 16384 1 aesni_intel
cryptd 24576 3 crypto_simd,ghash_clmulni_intel,aesni_intel
snd_seq_midi 16384 0
snd_seq_midi_event 16384 1 snd_seq_midi
snd_hda_codec_realtek 98304 1
snd_hda_codec_generic 73728 1 snd_hda_codec_realtek
snd_hda_codec_hdmi 49152 1
snd_rawmidi 32768 1 snd_seq_midi
snd_hda_intel 40960 5
snd_hda_codec 126976 4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
pcspkr 16384 0
joydev 24576 0
input_leds 16384 0
snd_hda_core 81920 5 snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
serio_raw 16384 0
snd_hwdep 20480 1 snd_hda_codec
snd_seq 65536 2 snd_seq_midi_event,snd_seq_midi
wmi_bmof 16384 0
snd_pcm 98304 4 snd_hda_intel,snd_hda_codec,snd_hda_core,snd_hda_codec_hdmi
fam15h_power 16384 0
k10temp 16384 0
snd_seq_device 16384 3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer 32768 2 snd_seq,snd_pcm
i2c_piix4 24576 0
ccp 73728 0
snd 81920 21 snd_hda_intel,snd_hwdep,snd_seq,snd_hda_codec,snd_timer,snd_rawmidi,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_seq_device,snd_hda_codec_realtek,snd_pcm
soundcore 16384 1 snd
shpchp 36864 0
evbug 16384 0
mac_hid 16384 0
parport_pc 36864 0
ppdev 20480 0
lp 20480 0
parport 49152 3 lp,parport_pc,ppdev
autofs4 40960 2
btrfs 1126400 0
xor 24576 1 btrfs
zstd_compress 163840 1 btrfs
raid6_pq 114688 1 btrfs
dm_mirror 24576 0
dm_region_hash 20480 1 dm_mirror
dm_log 20480 2 dm_mirror,dm_region_hash
amdgpu 2732032 0
chash 16384 1 amdgpu
rtsx_usb_sdmmc 28672 0
rtsx_usb 20480 2 rtsx_usb_sdmmc,rtsx_usb_ms
radeon 1478656 15
i2c_algo_bit 16384 2 amdgpu,radeon
ttm 106496 2 amdgpu,radeon
drm_kms_helper 172032 2 amdgpu,radeon
syscopyarea 16384 1 drm_kms_helper
psmouse 147456 0
sdhci_pci 32768 0
sysfillrect 16384 1 drm_kms_helper
sdhci 49152 1 sdhci_pci
sysimgblt 16384 1 drm_kms_helper
fb_sys_fops 16384 1 drm_kms_helper
ahci 36864 3
drm 401408 9 amdgpu,radeon,ttm,drm_kms_helper
r8169 86016 0
libahci 32768 1 ahci
mii 16384 1 r8169
wmi 24576 1 wmi_bmof
video 45056 0

phil-Aspire-ES1-521 phil # iwconfig
enp1s0 no wireless extensions.

lo no wireless extensions.

I have updates all the time but dont think there ws anything major.