How do you get ACPI modules like ac and barrerty to load at boot time?
On Sunday 28 September 2003 04:45 pm, Santiago Erquicia wrote:
How do you get ACPI modules like ac and barrerty to load at boot time?
Add to /etc/rc.local (I'm not sure because I'm in another machine with windows only ;-) )
/sbin/modprobe ac /sbin/modprobe battery
Add the module names to /etc/modules instead.
On Sun, 2003-09-28 at 22:36, Bill Nottingham wrote:
Stephen Moore (stephen@skmoore.com) said:
How do you get ACPI modules like ac and barrerty to load at boot time?
Add them to /etc/rc.modules, /etc/rc.local, write your own init script, etc. Code will be added to do this in rc.sysinit in the next build of initscripts.
I added the following to my rc.local so that I can load modules from either 2.4 or 2.6:
kern_maj_ver=`/bin/uname -r | /bin/awk -F. '{print $2}'` kern_ver=`/bin/uname -r` if [ "$kern_maj_ver" = "6" ] then /sbin/insmod /lib/modules/$kern_ver/kernel/drivers/acpi/battery.ko /sbin/insmod /lib/modules/$kern_ver/kernel/drivers/acpi/processor.ko /sbin/insmod /lib/modules/$kern_ver/kernel/drivers/acpi/thermal.ko /sbin/insmod /lib/modules/$kern_ver/kernel/drivers/acpi/ac.ko fi if [ "$kern_maj_ver" = "4" ] then /sbin/insmod ac /sbin/insmod battery /sbin/insmod fan /sbin/insmod processor /sbin/insmod thermal fi
Thinking about it further, I was going to write an initscript that detected whether acpi=on was passed to the kernel via grub and then load the appropraite acpi modules for my system. I would think that an initscript that could be turned off via chkconfig would be the best way to go, but I'm not expert...
-josh
Joshua Legbandt (jtlegbandt@earthlink.net) said:
Thinking about it further, I was going to write an initscript that detected whether acpi=on was passed to the kernel via grub and then load the appropraite acpi modules for my system.
if [ -d /proc/acpi ]; then for module in /lib/modules/uname -r/kernel/drivers/acpi/* ; do insmod $module done fi
Bill
On Tue, 2003-09-30 at 00:43, Bill Nottingham wrote:
if [ -d /proc/acpi ]; then for module in /lib/modules/uname -r/kernel/drivers/acpi/* ; do
Surely:
[...] for module in /lib/modules/$(uname -r)/kernel/drivers/acpi/* ; do [...]
insmod $module
done fi
Nils
Nils Philippsen (nphilipp@redhat.com) said:
On Tue, 2003-09-30 at 00:43, Bill Nottingham wrote:
if [ -d /proc/acpi ]; then for module in /lib/modules/uname -r/kernel/drivers/acpi/* ; do
Surely:
[...] for module in /lib/modules/$(uname -r)/kernel/drivers/acpi/* ; do [...]
Bah, cut'n'paste ate the backticks. Yes, insert equivalent shell syntax here...
Bill
Hey Guys,
If you take a look at /etc/rc.d/init.d/acpid, you will notice that only the 'button' module is loaded at startup.
If you add the other modules (found at /lib/modules/`uname -r`/kernel/drivers/acpi) before starting the acpid then everything should work quite nicely.
Of course you must specify acpi=on as a kernel option.
rgds
Sean Craig
Bill Nottingham wrote:
Joshua Legbandt (jtlegbandt@earthlink.net) said:
Thinking about it further, I was going to write an initscript that detected whether acpi=on was passed to the kernel via grub and then load the appropraite acpi modules for my system.
if [ -d /proc/acpi ]; then for module in /lib/modules/uname -r/kernel/drivers/acpi/* ; do insmod $module done fi
Bill
-- fedora-test-list mailing list fedora-test-list@redhat.com http://www.redhat.com/mailman/listinfo/fedora-test-list
On Wed, Oct 01, 2003 at 10:10:06AM +0400, Sean Craig wrote:
If you take a look at /etc/rc.d/init.d/acpid, you will notice that only the 'button' module is loaded at startup.
That needs to be fixed not to do that since initscripts will load them all earlier.
michaelkjohnson
"He that composes himself is wiser than he that composes a book." Linux Application Development -- Ben Franklin http://people.redhat.com/johnsonm/lad/