You are not logged in.

#1 2006-08-06 21:05:42

efossvold
Member
From: Kamloops, Canada
Registered: 2006-07-23
Posts: 59

hardware and module detection command

I recall using a command that detects all modules currently in use so that that information can be put into the modules array in rc.conf. Problem, can't remember which command it was...

Offline

#2 2006-08-06 21:21:54

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,837

Re: hardware and module detection command

lsmod

Personally, I'd recommend autoloading with udev, instead of listing modules in rc.conf, but use whatever works for you.

Offline

#3 2006-08-07 13:30:55

efossvold
Member
From: Kamloops, Canada
Registered: 2006-07-23
Posts: 59

Re: hardware and module detection command

I know, udev works fine, but it loads like 120 modules, I doubt I use all of them. I like to have more control so I can have a cleaner system.

Anyway, does anybody know that command?

Offline

#4 2006-08-07 13:45:12

efossvold
Member
From: Kamloops, Canada
Registered: 2006-07-23
Posts: 59

Re: hardware and module detection command

Just remembered myself: hwdetect

Offline

#5 2006-08-07 14:24:18

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: hardware and module detection command

efossvold wrote:

I know, udev works fine, but it loads like 120 modules, I doubt I use all of them. I like to have more control so I can have a cleaner system.

That's probably from the initrd, not udev... Try customizing your initrd. Also, now might be a good time to switch to initcpio, which should only load the stuff you need.

Offline

#6 2006-08-07 15:48:00

efossvold
Member
From: Kamloops, Canada
Registered: 2006-07-23
Posts: 59

Re: hardware and module detection command

I switched to inicpio, slashed of a few seconds in the boot process. More important, I now have 56 modules loaded instead of 134!

Offline

#7 2006-08-07 16:20:28

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: hardware and module detection command

efossvold wrote:

I switched to inicpio, slashed of a few seconds in the boot process. More important, I now have 56 modules loaded instead of 134!

Cheers.  Always nice to hear a "working as intended" report.

Offline

#8 2006-08-12 08:58:17

Eliatamby
Member
Registered: 2005-05-06
Posts: 80

Re: hardware and module detection command

I've always wondered about this...

Do guys only load the modules that initcpio auto-suggests and not use mod-auto load in rc.conf?  I use both at the moment -- it's fairly lean but I've had to blacklist some modules (ppp etc.).  Using the ramdisk ones only was a bit sparse I found

Offline

#9 2006-08-12 10:10:52

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,837

Re: hardware and module detection command

initcpio has one purpose only - to boot your machine successfully. It is only concerned with the modules required to complete that task.

The modules required for the rest of your system are handled by udev with MOD_AUTOLOAD, or by listing them in the MODULES array, or by a combination of both.

Offline

#10 2006-08-13 00:21:49

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: hardware and module detection command

tomk wrote:

initcpio has one purpose only - to boot your machine successfully. It is only concerned with the modules required to complete that task.

The modules required for the rest of your system are handled by udev with MOD_AUTOLOAD, or by listing them in the MODULES array, or by a combination of both.

Nicely said.  I couldn't put it any better.

Offline

#11 2006-08-13 19:59:28

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,837

Re: hardware and module detection command

Thanks. smile

Offline

#12 2006-08-14 23:34:55

MrBackhand
Member
From: Texas, USA
Registered: 2006-05-26
Posts: 33

Re: hardware and module detection command

So let me make sure I understand this correctly...  smile
I have a Toshiba Tecra 9100 laptop.

lsmod shows:

Module                  Size  Used by
ipv6                  248416  12
snd_seq_oss            31104  0
snd_seq_midi_event      6528  1 snd_seq_oss
snd_seq                49872  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device          6796  2 snd_seq_oss,snd_seq
joydev                  8512  0
eth1394                17924  0
snd_pcm_oss            37536  0
snd_mixer_oss          16000  3 snd_pcm_oss
pcspkr                  2948  0
evdev                   8064  1
ppdev                   7812  0
shpchp                 43232  0
pci_hotplug            25668  1 shpchp
snd_intel8x0m          14220  2
lp                      9732  0
snd_intel8x0           28956  2
snd_ac97_codec         93088  2 snd_intel8x0m,snd_intel8x0
snd_ac97_bus            2176  1 snd_ac97_codec
snd_pcm                76164  4 snd_pcm_oss,snd_intel8x0m,snd_intel8x0,snd_ac97_codec
snd_timer              19844  2 snd_seq,snd_pcm
snd                    45540  18 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
soundcore               7776  3 snd
snd_page_alloc          8072  3 snd_intel8x0m,snd_intel8x0,snd_pcm
intel_agp              21148  1
agpgart                26852  1 intel_agp
ohci1394               31920  0
ieee1394               86232  2 eth1394,ohci1394
pcmcia                 32172  0
e100                   32644  0
eepro100               27920  0
mii                     5248  2 e100,eepro100
rtc                    10676  0
yenta_socket           23948  2
uhci_hcd               29328  0
rsrc_nonstatic         11648  1 yenta_socket
pcmcia_core            35224  3 pcmcia,yenta_socket,rsrc_nonstatic
parport_pc             24484  0
ppp_generic            26772  0
slhc                    6528  1 ppp_generic
spca5xx               672208  0
videodev                7808  1 spca5xx
usbcore               113796  3 uhci_hcd,spca5xx
xfs                   581044  0
reiserfs              249472  0
jfs                   183164  0
ext3                  126088  1
jbd                    55700  1 ext3
sata_vsc                6148  0
sata_via                6020  0
sata_uli                4868  0
sata_sx4               11780  0
sata_svw                5764  0
sata_sis                5636  0
sata_sil24              9348  0
sata_sil                7560  0
sata_qstor              7684  0
sata_promise            9220  0
sata_nv                 7044  0
sata_mv                16008  0
sx8                    15628  0
cpqarray               19044  0
cciss                  29828  0
DAC960                 69832  0
mptspi                  6536  0
mptsas                 16524  0
mptfc                  10120  0
mptscsih               31696  3 mptspi,mptsas,mptfc
mptctl                 22788  0
mptbase                45920  5 mptspi,mptsas,mptfc,mptscsih,mptctl
tmscsim                20800  0
sym53c8xx              72980  0
st                     35612  0
sr_mod                 14884  0
sg                     27292  0
scsi_transport_sas     15232  1 mptsas
raid_class              4864  0
qlogicfas408            6272  0
qla1280               116620  0
pdc_adma                7556  0
osst                   50976  0
nsp32                  23316  0
megaraid_sas           23596  0
megaraid_mbox          28304  0
megaraid_mm             9252  1 megaraid_mbox
megaraid               37064  0
lpfc                  155456  0
ipr                    58916  0
imm                    10888  0
parport                33480  4 ppdev,lp,parport_pc,imm
dmx3191d               11264  0
dc395x                 32656  0
atp870u                30592  0
ata_piix                8324  0
aic7xxx               177460  0
aic79xx               274264  0
ahci                   11012  0
libata                 53388  15 sata_vsc,sata_via,sata_uli,sata_sx4,sata_svw,sata_sis,sata_sil24,sata_sil,sata_qstor,sata_promise,sata_nv,sata_mv,pdc_adma,ata_piix,ahci
aha152x                36816  0
aacraid                56576  0
a100u2w                 9280  0
BusLogic               22836  0
3w_xxxx                24736  0
3w_9xxx                30596  0
sd_mod                 14720  0
ide_floppy             16128  0
ide_cd                 36384  0
cdrom                  35616  2 sr_mod,ide_cd
ide_disk               14208  4
via82cxxx               8580  0 [permanent]
trm290                  4100  0 [permanent]
triflex                 3328  0 [permanent]
slc90e66                5248  0 [permanent]
sis5513                13064  0 [permanent]
siimage                10496  0 [permanent]
serverworks             8072  0 [permanent]
sc1200                  6656  0 [permanent]
rz1000                  2560  0 [permanent]
piix                    9476  0 [permanent]
pdc202xx_old            9856  0 [permanent]
pdc202xx_new            8448  0 [permanent]
ns87415                 4040  0 [permanent]
it821x                  7556  0 [permanent]
hpt366                 17792  0 [permanent]
hpt34x                  4608  0 [permanent]
generic                 4356  0 [permanent]
cy82c693                4228  0 [permanent]
cs5530                  5120  0 [permanent]
cmd64x                 10652  0 [permanent]
atiixp                  5392  0 [permanent]
amd74xx                13724  0 [permanent]
alim15x3               11148  0 [permanent]
aec62xx                 6656  0 [permanent]
ide_core              115276  27 ide_floppy,ide_cd,ide_disk,via82cxxx,trm290,triflex,slc90e66,sis5513,siimage,serverworks,sc1200,rz1000,piix,pdc202xx_old,pdc202xx_new,ns87415,it821x,hpt366,hpt34x,generic,cy82c693,cs5530,cmd64x,atiixp,amd74xx,alim15x3,aec62xx

hwdetect --show-modules shows:

AGP    : agpgart intel-agp
IDE    : ide-cd ide-core ide-disk generic piix
USB    : usb-storage usblp usbhid usbcore uhci-hcd
FW     : eth1394 ieee1394 ohci1394 sbp2
NET    : e100 eepro100 mii ppp_generic slhc
PCMCIA : pcmcia_core rsrc_nonstatic yenta_socket
SOUND  : snd-mixer-oss snd-pcm-oss snd-page-alloc snd-pcm snd-timer snd snd-ac97-bus snd-ac97-codec snd-intel8x0 snd-intel8x0m soundcore
OTHER  : cdrom hw_random lp ppdev rtc evdev pcspkr serio_raw parport parport_pc pci_hotplug shpchp

If I am understanding this thread correctly I can take the modules listed from hwdetect --show-modules and place them in my rc.conf modules section and stop the udev autodetection and the loading of unused modules, correct?

Thank you.

Offline

#13 2006-08-15 00:00:44

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: hardware and module detection command

Most of those unused modules come from using mkinitrd - try switching to mkinitcpio (see the kernel26 install message)

Offline

Board footer

Powered by FluxBB