From owner-acpi-jp@jp.FreeBSD.org Mon Jul 21 07:46:04 2003
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id h6KMk4R11580;
	Mon, 21 Jul 2003 07:46:04 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from rootlabs.com (root.org [67.118.192.226])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with SMTP/inet id h6KMk3T11575
	for <acpi-jp@jp.freebsd.org>; Mon, 21 Jul 2003 07:46:03 +0900 (JST)
	(envelope-from nate@rootlabs.com)
Received: (qmail 32824 invoked by uid 1000); 20 Jul 2003 22:45:55 -0000
From: Nate Lawson <nate@root.org>
To: acpi-jp@jp.FreeBSD.org
Message-ID: <20030720153907.A32793@root.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
Date: Sun, 20 Jul 2003 15:45:55 -0700
X-Sequence: acpi-jp 2477
Subject: [acpi-jp 2477] acpi and cpu performance states
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: nate@root.org
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+030702

When I boot my laptop on acline, everything works normally.  When I unplug
the AC adapter, I get the offline event and the cpu drops back to a slower
speed (verified by benchmarks).  When I go back online, the performance
goes right back to its normal speed.

However, if I boot without the AC adapter attached, even though I get the
notification of acad status change and it says "profile changed to
'economy'" or "to 'performance'", the performance according to the CPU
benchmark is only the slower speed.  It never gets set back to the full
speed.

-Nate

dmesg:
acpi_cpu0: <CPU> on acpi0
acpi_acad0: Notify 128
system power profile changed to 'economy'
acpi_acad0: Off Line

sysctl:
hw.acpi.supported_sleep_state: S3 S4 S5
hw.acpi.power_button_state: S5
hw.acpi.sleep_button_state: S1
hw.acpi.lid_switch_state: S1
hw.acpi.standby_state: S1
hw.acpi.suspend_state: S3
hw.acpi.sleep_delay: 0
hw.acpi.s4bios: 1
hw.acpi.verbose: 1
hw.acpi.disable_on_poweroff: 1
hw.acpi.thermal.min_runtime: 0
hw.acpi.thermal.polling_rate: 30
hw.acpi.thermal.tz0.temperature: 3212
hw.acpi.thermal.tz0.active: -1
hw.acpi.thermal.tz0.thermal_flags: 0
hw.acpi.thermal.tz0._PSV: 3637
hw.acpi.thermal.tz0._HOT: -1
hw.acpi.thermal.tz0._CRT: 3692
hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
hw.acpi.battery.life: 60
hw.acpi.battery.time: 62
hw.acpi.battery.state: 1
hw.acpi.battery.units: 2
hw.acpi.battery.info_expire: 5
hw.acpi.acline: 0

ASL:
Scope(\_PR_) {
    Processor(CPU_, 1, 0x1018, 0x6) {
        Method(_INI) {
            INI2()
        }
        Method(INI2) {
            Store(\P0FQ, Index(DerefOf(Index(_PSS, 0x0, )), 0x0, ))
            Store(\P0PW, Index(DerefOf(Index(_PSS, 0x0, )), 0x1, ))
            Store(\P1FQ, Index(DerefOf(Index(_PSS, 0x1, )), 0x0, ))
            Store(\P1PW, Index(DerefOf(Index(_PSS, 0x1, )), 0x1, ))
        }
        Method(INIC) {
            Noop
        }
        Name(_PCT, Package(0x2) {
            Buffer(0x11) {0x82, 0xc, 0x0, 0x1, 0x8, 0x0, 0x0, 0xb2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x79, 0x0 },
            Buffer(0x11) {0x82, 0xc, 0x0, 0x1, 0x8, 0x0, 0x0, 0x50, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x79, 0x0 },
        })
        Name(_PSS, Package(0x2) {
            Package(0x6) {
                0x0,
                0x0,
                0x01f4,
                0x0,
                0xf6,
                0x0,
            },
            Package(0x6) {
                0x0,
                0x0,
                0x01f4,
                0x0,
                0xf7,
                0x1,
            },
        })
        Method(_PPC) {
            If(\_SB_.PCI0.LPC_.EC__.HPLO) {
                Return(0x1)
            }
            Else {
                If(LOr(\_SB_.PCI0.LPC_.EC__.HT00, \_SB_.PCI0.LPC_.EC__.HT10)) {
                    Return(0x1)
                }
                Else {
                    Return(0x0)
                }
            }
        }
    }
}

