ACPI configuration.

Internal storage, motherboards, PCI cards, stuff inside the case.

ACPI configuration.

Postby fender0107401 » 13 Apr 2009, 10:33

Hi all:

In handbook 11.15.3:
The acpi.ko driver is loaded by default at start up by the loader(8) [color="Red"]and should not be compiled into the kernel.[/color] The reasoning behind this is that modules are easier to work with, say if switching to another acpi.ko without doing a kernel rebuild. This has the advantage of making testing easier. Another reason is that starting ACPI after a system has been brought up often doesn't work well. If you are experiencing problems, you can disable ACPI altogether. This driver should not and can not be unloaded because the system bus uses it for various hardware interactions. ACPI can be disabled by setting hint.acpi.0.disabled="1" in /boot/loader.conf or at the loader(8) prompt.


In the default kernel configuration file:
# Bus support.
[color="Red"] device acpi[/color]
device pci

Why add "acpi" into the defaul kernel setting and also not recommended this?
Just be yourself.
User avatar
fender0107401
Member
 
Posts: 301
Joined: 17 Nov 2008, 03:57
Location: China, Beijing.

Postby fender0107401 » 13 Apr 2009, 11:10

I commented out this line in my /etc/make.conf "NO_MODULES=true" and recompiled the kernel and installed it.
$ kldstat
Id Refs Address Size Name
1 1 0xffffffff80100000 684978 kernel

Seems no any thing is loaded except the kernel.
$ ls /boot/kernel | grep -i acpi
acpi_aiboost.ko
acpi_asus.ko
acpi_dock.ko
acpi_fujitsu.ko
acpi_ibm.ko
acpi_panasonic.ko
acpi_sony.ko
acpi_toshiba.ko
acpi_video.ko

Seems "acpi" in the kernel is mot complete?
Just be yourself.
User avatar
fender0107401
Member
 
Posts: 301
Joined: 17 Nov 2008, 03:57
Location: China, Beijing.

Postby SirDice » 13 Apr 2009, 11:14

fender0107401 wrote:In the default kernel configuration file:

Unless I'm mistaken device acpi is NOT part of i386 GENERIC. That line should read device eisa.
It's only in GENERIC on amd64. IIRC on amd64 it is mandatory.
User avatar
SirDice
Old Fart
 
Posts: 16182
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Postby fender0107401 » 13 Apr 2009, 11:22

I don't remember that I have edited "GENERIC", but not sure.
$ uname -a
FreeBSD PC-686.Workstation 7.1-RELEASE-p4 FreeBSD 7.1-RELEASE-p4 #2: Mon Apr 13 18:51:07 CST 2009 fender@PC-686.Workstation:/usr/obj/usr/src/sys/MYKERNEL amd64

$ grep -i acpi /sys/amd64/conf/GENERIC
device acpi
Just be yourself.
User avatar
fender0107401
Member
 
Posts: 301
Joined: 17 Nov 2008, 03:57
Location: China, Beijing.


Return to System Hardware

Who is online

Users browsing this forum: No registered users and 0 guests