Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with kernel modules & `lsmod'
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Codito ergo sum
n00b
n00b


Joined: 19 Aug 2019
Posts: 9

PostPosted: Sun Sep 01, 2019 2:53 pm    Post subject: Problem with kernel modules & `lsmod' Reply with quote

I've just installed kde, but I have no sound. I'm trying to solve it but here I have another question: while trying to solve the sound issue I found that something is wrong with my modules; `lsmod' command shows:

Code:
Module                                       Size           Used by
x86_pkg_temp_thermal                         16384                0
efivarfs                                     16384                1


In other distros its output was very long and it seems abnormal to have olny 2 modules in /proc/modules.


/sys/modules shows(including snd_hda_intel, my audio card module):

Code:
8139too/              efivars/              nf_conntrack_sip/     snd_pcm/
8250/                 ehci_hcd/             nfs/                  snd_seq/
8250_core/            fb/                   pata_amd/             snd_seq_dummy/
acpi/                 firmware_class/       pata_oldpiix/         snd_timer/
acpi_cpufreq/         hid/                  pata_sch/             spurious/
ahci/                 hid_apple/            pcie_aspm/            srcutree/
ata_piix/             hid_logitech/         pci_hotplug/          sr_mod/
auth_rpcgss/          hid_ntrig/            pcmcia/               sunrpc/
battery/              i2c_algo_bit/         pcmcia_core/          suspend/
block/                i2c_i801/             pcmcia_rsrc/          sysrq/
button/               i8042/                pnp/                  tcp_cubic/
cfg80211/             i915/                 printk/               tg3/
cpufreq/              ipv6/                 processor/            thermal/
cpuidle/              kernel/               psmouse/              uhci_hcd/
cryptomgr/            keyboard/             random/               usbcore/
devres/               libahci/              rcupdate/             usbhid/
dm_mirror/            libata/               rcutree/              usblp/
dm_mod/               lockd/                rfkill/               usb_storage/
dns_resolver/         loop/                 rng_core/             video/
drm/                  mac80211/             rtc_cmos/             vt/
drm_kms_helper/       md_mod/               scsi_mod/             workqueue/
e100/                 module/               sg/                   x86_pkg_temp_thermal/
e1000/                netconsole/           sit/                  xhci_hcd/
e1000e/               netpoll/              sky2/                 xz_dec/
edac_core/            nf_conntrack/         snd/                  yenta_socket/
eeepc_laptop/         nf_conntrack_ftp/     snd_hda_codec/       
efivarfs/             nf_conntrack_irc/     snd_hda_intel/       



And /lib/modules/4.19.66-gentoo/kernel/drivers has three directories:gpu,fs,net.

I'd like to know:

- What's the difference between modules in /sys , /lib & /proc.
-I have only sound issues & everything else (graphics, touchpad, etc.) is working well. If lsmod shows loaded kernel modules, how are my other pcis working? :roll:
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7506
Location: Saint Amant, Acadiana

PostPosted: Sun Sep 01, 2019 3:36 pm    Post subject: Reply with quote

Codito ergo sum,

other distros have developers who configure the kernel, keeping in mind it has to work on very different hardware configurations and satisfy wide variety of use cases.
Gentoo, OTOH, is a DIY Linux. In Gentoo you decide how to configure your kernel, so you have to ask yourself, why did I create these two modules?
All modules you have created go to /lib. For /sys and /proc I suggest you do a net search for sysfs and procfs, these are virtual filesystems. In case you still have questions after reading up on these two come back here and ask your questions. :) There are also man pages for procfs and sysfs.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44945
Location: 56N 3W

PostPosted: Sun Sep 01, 2019 8:05 pm    Post subject: Reply with quote

Codito ergo sum,

Its not a problem to build a monolithic kernel and disable module loading.
It works just as well. Its also removes an attack vector as its not possible to load any modules at all.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
TheLexx
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2005
Posts: 135
Location: Austin Tx

PostPosted: Mon Sep 02, 2019 3:11 am    Post subject: Reply with quote

I assume that typing "uname -r" yields "4.19.66-gentoo"

The modules inside the directory /lib/modules/4.19.66-gentoo are all the modules that COULD be loaded. Linux is pretty good at loading modules when they need to be loaded. Also modules that are not needed are seldom loaded. It has been a long time since I have had a problem with needed modules (that were actually built) not being loaded (Maybe some distro I installed before '99).

If you want to see the modules that can be installed, the following command
Code:
find /lib/modules/ -type f | grep .ko

will show them to you. However unless you are having issues with a specific piece of hardware you will usually not need to bother with knowing that info.
Back to top
View user's profile Send private message
Codito ergo sum
n00b
n00b


Joined: 19 Aug 2019
Posts: 9

PostPosted: Mon Sep 02, 2019 5:47 am    Post subject: Reply with quote

Thanx for good answers; Gentoo & its community are great!
_________________
Gentoophilus Persicus
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum