NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: howto use the power management in NetBSD ?



On Tue, May 5, 2009 at 12:39 PM, Francisco Valladolid 
<ficovh%gmail.com@localhost> wrote:
> Hi.
>
> On Tue, May 5, 2009 at 9:05 AM, matthew sporleder 
> <msporleder%gmail.com@localhost>
> wrote:
>>
>> On Mon, May 4, 2009 at 9:02 PM, Francisco Valladolid 
>> <ficovh%gmail.com@localhost>
>> wrote:
>> > Hi, I have a IBM Thinkpad T43p laptop running 5.0 Release, and want to
>> > know
>> > the basis from using the ACPI .
>> > Currently I can't suspend/resume it when the lid open/close is done.
>> >
>> > I have :
>> >
>> > apmd=YES  in /etc/rc.conf only.
>> >
>> > My kernel is the default at the boot.
>> >
>>
>>
>> Do you see dmesg events for acpi stuff?  Also check out powerd.
>
> ficovh@thinkpad ~ % dmesg | grep acpi
>
> acpi0 at mainbus0: Intel ACPICA 20080321
> acpi0: X/RSDT: OemId <IBM   ,TP-1Y   ,00001240>, AslId < LTP,00000000>
> acpiecdt0 at acpi0: ACPI Embedded Controller via ECDT
> acpi0: SCI interrupting at int 9
> acpi0: fixed-feature power button present
> acpilid0 at acpi0 (LID, PNP0C0D): ACPI Lid Switch
> acpibut0 at acpi0 (SLPB, PNP0C0E): ACPI Sleep Button
> attimer1 at acpi0 (TIMR, PNP0100): AT Timer
> pcppi1 at acpi0 (SPKR, PNP0800)
> npx1 at acpi0 (FPU, PNP0C04)
> pckbc1 at acpi0 (KBD, PNP0303): kbd port
> pckbc2 at acpi0 (MOU, IBM0057): aux port
> FDC (PNP0700) at acpi0 not configured
> LPT (PNP0400) at acpi0 not configured
> acpiec0 at acpi0 (EC, PNP0C09-0): ACPI Embedded Controller (disabled)
> acpibat0 at acpi0 (BAT0, PNP0C0A-0): ACPI Battery (Control Method)
> acpibat0: battery info: SONY, LION, IBM-92P1073  6177
> acpiacad0 at acpi0 (AC, ACPI0003-0): ACPI AC Adapter
> thinkpad0 at acpi0 (HKEY, IBM0068)
> thinkpad0: using EC at acpiecdt0
> acpitz0 at acpi0 (THM0): critical 99.0C passive 36.0C, passive cooling
> apm0 at acpi0: Power Management spec V1.2
> acpiacad0: AC adapter offline.
> acpiacad0: AC adapter online.
>
>
> This is the dmesg..!


acpilid0 at acpi0 (LID, PNP0C0D): ACPI Lid Switch <-- good news

That should give a message similar to the AC adapter one when you
close/open the lid.  You should also get messages when you hit the
sleep/hibernate button, press the power buttom, and run the battery
way down.  You'll want to startup in rc.conf:
apmd=YES
powerd=YES
envsys=YES

And you'll see the powerd scripts in /etc/powerd/scripts


Home | Main Index | Thread Index | Old Index