Lsmod not working

I’d like to know what kernel modules are running but lsmod does not work. I get this error:

libkmod: kmod_module_new_from_loaded: could not open /proc/modules: No such file or directory
Error: could not get list of modules: No such file or directory

Does anyone know how to get the kernel module list?

On my Jolla C lsmod works.
it lists:

  • Radio_iris_transport
  • Wlan

What phone do you use? Which os version?

1 Like

If /proc/modules is missing then the kernel has everything build in …
On Xperia 10 and Sailfish OS /proc/modules exits but its empty.

# lsmod 
Module                  Size  Used by
1 Like

That is what I know of. At least for X devices.

On my XA2 Kernel 4.4.194 is compiled with modules support but only one module is shipped with it:

$ zcat /proc/config.gz | grep MODULES
$ zcat /proc/config.gz | grep =m
1 Like


You may also check delivered modules (exactly 1) in:
/lib/modules/(uname -r)/ /lib/modules/(uname -r)/modules.order

or (builtin):
/lib/modules/$(uname -r)/modules.builtin

  • I’m using an Xperia X, with Sailfish OS, kernel version 3.10.84
  • @leon: the /proc/modules file does not exist
  • @peterleinchen: /lib/modules/3.10.84modules.builtin exist but is empty

@leon, I think that your are right. It’s just that the kernel could be compiled to have all modules built in. I’m more used to the standard way the kernel is compiled, in which its modules are mounted during booting. I’ll try to compile the kernel in a way that I can see what modules are running.