You are not logged in.
Is there a way to force load kernel modules on boot? Whether through mkinitcpio or rc.conf?
Last edited by lolhue (2011-10-09 03:42:48)
Offline
If by force you mean `modprobe -f module`: don't.
If by force you mean manually load a non-autodetected module: Please search before posting and read the wiki (you can use either mkinitcpio or rc.conf).
Last edited by Stebalien (2011-10-07 09:16:01)
Offline
If by force you mean `modprobe -f module`: don't.
If by force you mean manually load a non-autodetected module: Please search before posting and read the wiki (you can use either mkinitcpio or rc.conf).
I mean 'modprobe -f module'. I need the samsung_laptop module for backlight/fan/cpu support, but it refuses to detect my samsung laptop, so I want a way to force load it on boot short of making a script with "modprobe -f samsung-laptop"
Last edited by lolhue (2011-10-07 18:42:34)
Offline
Well "-f" just tells modprobe to ignore version checks. So samsung_laptop compiled for the right kernel version as it is in Arch's package should load whether you use the "-f" flag or not. What happens when you add it to the MODULES array in rc.conf? And out of curiosity, what is the cpu support you mention? Frequency scaling?
Last edited by ConnorBehan (2011-10-07 19:06:28)
6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.
Offline
The force option doesn't do what you think it does. -f ignores vermagic and modversion attributes and loads the module anyways. It has no bearing on whether or not the hardware exists.
# modprobe padlock-sha
FATAL: Error inserting padlock_sha (/lib/modules/3.0-ARCH/kernel/drivers/crypto/padlock-sha.ko.gz): No such device
# modprobe -f padlock-sha
FATAL: Error inserting padlock_sha (/lib/modules/3.0-ARCH/kernel/drivers/crypto/padlock-sha.ko.gz): No such device
Offline
Well "-f" just tells modprobe to ignore version checks. So samsung_laptop compiled for the right kernel version as it is in Arch's package should load whether you use the "-f" flag or not. What happens when you add it to the MODULES array in rc.conf? And out of curiosity, what is the cpu support you mention? Frequency scaling?
Adding it to rc.conf doesn't load it on boot. (ie typing "rmmod samsung-laptop" after a reboot says it's not loaded)
The module should add support for Samsung's fan speed and cpu frequency scaling support (prioritizing fan noise over cpu frequency and vice versa)
The force option doesn't do what you think it does. -f ignores vermagic and modversion attributes and loads the module anyways. It has no bearing on whether or not the hardware exists.
Ah, sorry, I got "modprobe samsung-laptop force" mixed up with "modprobe -f samsung-laptop". There's an argument for the samsung-laptop module that lets you ignore DMI checks, which allows the module to be loaded despite it complaining the device doesn't exist.
Offline
Oh well then you should make sure that one of the files in /etc/modprobe.d contains the line "options samsung-laptop force". Or you can put samsung-laptop.force on your kernel command line.
6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.
Offline
Just out of curiosity, is there a way to get it to force load in mkinitcpio and not just rc.conf?
Offline
Offline
Alright thanks. Works fine now.
Offline