From owner-freebsd-acpi@FreeBSD.ORG Thu Nov 18 17:39:10 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 08E7016A4CE for ; Thu, 18 Nov 2004 17:39:10 +0000 (GMT) Received: from ylpvm15.prodigy.net (ylpvm15-ext.prodigy.net [207.115.57.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id B434543D41 for ; Thu, 18 Nov 2004 17:39:09 +0000 (GMT) (envelope-from nate@root.org) Received: from [10.0.0.34] (adsl-67-119-74-222.dsl.sntc01.pacbell.net [67.119.74.222])iAIHd8dl027055; Thu, 18 Nov 2004 12:39:09 -0500 Message-ID: <419CDE22.8040402@root.org> Date: Thu, 18 Nov 2004 09:38:42 -0800 From: Nate Lawson User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040901) X-Accept-Language: en-us, en MIME-Version: 1.0 To: rejden References: <20041118003601.GA8873@hysteria.sk> In-Reply-To: <20041118003601.GA8873@hysteria.sk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-acpi@freebsd.org Subject: Re: acpi cpu throttling X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Nov 2004 17:39:10 -0000 rejden wrote: > Hi, > is there any way how to change CPU frequency with ACPI ? > i saw something similar under linux, googling whole night and nothin... > i'm running generic 5.3release kernel > > jan > > ----- > > daemon# sysctl -a |grep cpu > kern.threads.virtual_cpu: 1 > kern.ccpu: 1948 > kern.smp.maxcpus: 1 > kern.smp.cpus: 1 > hw.ncpu: 1 > hw.acpi.cpu.throttle_max: 8 > hw.acpi.cpu.throttle_state: 8 > hw.acpi.cpu.cx_supported: C1/1 C2/2 C3/185 > hw.acpi.cpu.cx_lowest: C3 > hw.acpi.cpu.cx_usage: 0.08% 99.91% 0.00% > machdep.cpu_idle_hlt: 1 > dev.cpu.0.%desc: ACPI CPU (3 Cx states) > dev.cpu.0.%driver: cpu > dev.cpu.0.%location: handle=\_PR_.CPU0 > dev.cpu.0.%pnpinfo: _HID=none _UID=0 > dev.cpu.0.%parent: acpi0 > > daemon# dmesg -a |grep cpu > cpu0: on acpi0 > acpi_cpu: throttling enabled, 8 steps (100% to 12.5%), currently 100.0% > hw.acpi.cpu.cx_lowest: > hw.acpi.cpu.throttle_state: You can set it directly with sysctl hw.acpi.cpu.throttle_state. However, you will probably find using /etc/rc.conf more useful. There, you can set the online and offline Cx and throttling levels. See /etc/defaults/rc.conf for info. -Nate