Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 Nov 2003 13:47:55 -0500 (EST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   RE: 4.9-RELEASE, ACPI and DELL Latitude D600
Message-ID:  <XFMail.20031106134755.jhb@FreeBSD.org>
In-Reply-To: <XFMail.20031106112514.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 06-Nov-2003 John Baldwin wrote:
> 
> On 06-Nov-2003 Andre Grosse Bley wrote:
>> Hi all, 
>> 
>> i am trying to install FreeBSD 4.9-RELEASE on a Dell Latitude D600
>> notebook. "standard" Kernel without ACPI works fine 
>> (dmesg at http://www.nm.ruhr-uni-bochum.de/~gandalf/dell/dmesg.noacpi.txt)
>> 
>> Since i need the batterystatus (and the Bios doesnt seem to support APM
>> anymore) i activated acpi: The machine paniced after detecting the brgphy0.
>> After removing pcic0/pcic1 from the kernel configuration, i was able to
>> boot with ACPI (wow!;)
>> But no batterystatus. Googling found a solution:
>> 
>> http://sandcat.nl/~stijn/freebsd/dell.php
>> 
>> I needed to add
>> acpi_dsdt_load="YES"
>> acpi_dsdt_name="/boot/acpi_dsdt.aml"
>> acpi_dsdt_type="acpi_dsdt"
>> 
>> 
>> to /boot/loader.conf
>> 
>> dmesg is at http://www.nm.ruhr-uni-bochum.de/~gandalf/dell/dmesg.acpi.txt
>> 
>> My problem: the machine panics when closing the lid, even after
>> sysctl hw.acpi.lid_switch_state=NONE.
>> 
>
> Ah, the problem is that ACPI tries to sleep from a task, which is not safe
> to do.  This is not easy to fix. :(

Actually, it may not be too hard.  In current, ACPI uses its own thread
to run the tasks in, so stable would need the same sort of thing.
Basically, ACPI needs to start up a kproc and needs to have its own
taskqueue again that uses this kproc for its execution context.

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20031106134755.jhb>