From owner-freebsd-questions@FreeBSD.ORG Tue Jan 19 11:45:28 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 799ED106566B for ; Tue, 19 Jan 2010 11:45:28 +0000 (UTC) (envelope-from xkyanh@gmail.com) Received: from mail-pw0-f44.google.com (mail-pw0-f44.google.com [209.85.160.44]) by mx1.freebsd.org (Postfix) with ESMTP id 4A1C78FC15 for ; Tue, 19 Jan 2010 11:45:27 +0000 (UTC) Received: by pwi15 with SMTP id 15so2508680pwi.3 for ; Tue, 19 Jan 2010 03:45:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:subject :message-id:organization:user-agent:x-operating-system:x-face:face :x-mailer:mime-version:content-type:content-transfer-encoding; bh=5wH4kBe++i8lp8TA71//x+LIRJrcvj4/Z8MqRA1Fl0c=; b=YuZNp5cCnhUEXhP5vtqec3yuVUur0PEjs/7JZ/13+WWhf86PnOJyvQcGs6RwO1wIqV /Fu+JJpVkgQo+YyYAFALCL9lckY0Rx5O2+WLNR8KNN16UI3goVc8c5iF9/StZdhVAitF GTE2IXFzZIf1XzBwwhhxq90FGt4Q/IVXd4E+Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:subject:message-id:organization:user-agent :x-operating-system:x-face:face:x-mailer:mime-version:content-type :content-transfer-encoding; b=JdCfG+vuq8NqhwFq1KvhG/S39RrpsXLphHI/YJyi6q+jOzEC47wem0hxvgFroE712v m3+SGoPhwauTOTQJUCtY1U6OWyBJ7F+KBSeyKDQ/E5a4lar57IHlPYy9wL/u4LGuMrEn DwD1PfRgLfISXyjENij934KP3lfwfjxXbdB0k= Received: by 10.142.5.25 with SMTP id 25mr3327832wfe.80.1263901527484; Tue, 19 Jan 2010 03:45:27 -0800 (PST) Received: from icy.localdomain ([222.253.78.193]) by mx.google.com with ESMTPS id 22sm5052602pzk.14.2010.01.19.03.45.25 (version=SSLv3 cipher=RC4-MD5); Tue, 19 Jan 2010 03:45:27 -0800 (PST) Sender: "Ky Anh, Huynh" Date: Tue, 19 Jan 2010 18:45:19 +0700 From: "Anh Ky Huynh" To: freebsd-questions@freebsd.org Message-ID: <20100119184519.01f3c2c3@icy.localdomain> Organization: Vietnamese TeX Users Group User-Agent: FreeBSD X-Operating-System: FreeBSD X-Face: FreeBSD Face: FreeBSD X-Mailer: FreeBSD Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: system slow after tuning cpu speed with sysctl X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jan 2010 11:45:28 -0000 Hi all, I used to change my CPU speed via sysctl: sysctl dev.cpu.0.freq=1650 I did that because that helped me to decrease the CPU temperature, and such speed was enough. This way went well and I did that after logging into the system via ssh. (I have some troubles with `powerd` so I have to use `sysctl` manually.) Yesterday, because `sysctl` often required root permission, I wrote a small script that could help to to change cpu speed via ssh ./my_script.sh 1650 => ssh toor@localhost sysctl dev.cpu.0.freq=1650 (my password goes here) Then I suddenly found that the system was very very slow after the above call, though I ran nothing (except for bash, top). Being afraid that something went wrong, I just moved to the maximum speed: ssh toor@localhost sysctl dev.cpu.0.freq=2200 but this couldn't help. (Using `dmesg` I saw a line "Device wasn't configured") Now I can't change my cpu speed anymore: If I switch from 2200 to 1925 (the next lower value), the system would be slowed down and I can't do anything (because it is very very slow). The only way is to reboot. And here is another strange thing: after the FreeBSD sends the last message of its reboot process, the system halts with black-blank screen; then I have to unplug the power supply (an external adapter), unplug the battery, wait for some seconds, plug the battery / power supply before turning the system on. I am using FreeBSD 8.0 (RELEASE) on a laptop with a custom kernel http://viettug.org/attachments/download/349/icy_kernel_20100119.txt The full output of my `sysctl dev.cpu.` /================================================================================= dev.cpu.0.%desc: ACPI CPU 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 dev.cpu.0.freq: 2200 dev.cpu.0.freq_levels: 2200/15975 1925/13978 1650/11981 1375/9984 1100/5795 962/5070 825/4346 687/3621 550/2320 481/2030 412/1740 343/1450 275/1160 206/870 137/580 68/290 dev.cpu.0.cx_supported: C1/0 dev.cpu.0.cx_lowest: C1 dev.cpu.0.cx_usage: 100.00% last 500us dev.cpu.1.%desc: ACPI CPU dev.cpu.1.%driver: cpu dev.cpu.1.%location: handle=\_PR_.CPU1 dev.cpu.1.%pnpinfo: _HID=none _UID=0 dev.cpu.1.%parent: acpi0 dev.cpu.1.cx_supported: C1/0 dev.cpu.1.cx_lowest: C1 dev.cpu.1.cx_usage: 100.00% last 500us \================================================================================= I doubt that there was something failed with my hardware :( Quite disappointed 'til now. Could you give me advice? Thank you for your helps, Regards, -- Anh Ky Huynh