34

I am trying to install this module: https://github.com/mkottman/acpi_call

I did a make, make install.

I then saw acpi_call.ko is in /lib/modules/4.3.3-5-default/extra/.

When I do a

modprobe acpi_call

I get

modprobe: FATAL: Module acpi_call not found in directory /lib/modules/4.3.3-5-default

Tried putting acpi_call.ko in /lib/modules/4.3.3-5-default but got the same result.

I would like to make it persistent so that when I reboot, module is loaded. I think it's possible only with modprobe.

Karel Vlk
  • 230
  • 1
  • 6
robert trudel
  • 5,283
  • 17
  • 72
  • 124

4 Answers4

73

If the module .ko file is really under /lib/modules/4.3.3-5-default/extra/ and 4.3.3-5-default is indeed your current kernel version, then the problem may simply be that you need to run depmod to re-create the module dependency list. Run:

sudo depmod

and try again to modprobe the module.

chris
  • 1,831
  • 18
  • 33
thkala
  • 84,049
  • 23
  • 157
  • 201
1

My solution is unique, but in my system I rebuilt the kernel and took out a module. I installed the vendors module and could not get the system to boot using the vendors module. In my case I forgot to move all the /lib/modules info, so modules.builtin still had the module, that I was upgrading. Manually removing the module from modules.builtin and doing the depmod -a fixed my problem.

AlexH
  • 828
  • 7
  • 26
oldone1
  • 11
  • 1
-1

This will solve it for ubuntu/debian

sudo apt install linux-generic -y 
sudo apt install --reinstall linux-image-$(uname -r) -y;
sudo apt install --reinstall linux-modules-$(uname -r) -y;
sudo apt install --reinstall linux-modules-extra-$(uname -r) -y;
-2

Try running make && sudo make install in the source directory. That should install the module in the right place using the Makefile that comes with your kernel headers.

Steven
  • 5,654
  • 1
  • 16
  • 19