From owner-freebsd-acpi@FreeBSD.ORG Mon Apr 25 08:01:22 2005 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 84F2B16A4CE for ; Mon, 25 Apr 2005 08:01:22 +0000 (GMT) Received: from smtp817.mail.sc5.yahoo.com (smtp817.mail.sc5.yahoo.com [66.163.170.3]) by mx1.FreeBSD.org (Postfix) with SMTP id 2758743D5A for ; Mon, 25 Apr 2005 08:01:22 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: from unknown (HELO optimator.noacks.org) (noacks@swbell.net@70.240.205.64 with login) by smtp817.mail.sc5.yahoo.com with SMTP; 25 Apr 2005 08:01:21 -0000 Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id AD64D613E; Mon, 25 Apr 2005 03:01:20 -0500 (CDT) Received: from optimator.noacks.org ([127.0.0.1]) by localhost (optimator.noacks.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00611-11; Mon, 25 Apr 2005 03:01:17 -0500 (CDT) Received: from compgeek.noacks.org (compgeek [192.168.1.10]) by optimator.noacks.org (Postfix) with ESMTP id 0545E60CF; Mon, 25 Apr 2005 03:01:16 -0500 (CDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by compgeek.noacks.org (8.13.3/8.13.3) with ESMTP id j3P81Eea001891; Mon, 25 Apr 2005 03:01:15 -0500 (CDT) (envelope-from noackjr@alumni.rice.edu) Message-ID: <426CA3CA.2050301@alumni.rice.edu> Date: Mon, 25 Apr 2005 03:01:14 -0500 From: Jon Noack User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050406) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nate Lawson References: <20050413123022.GR2298@poupinou.org> <426539B0.4040100@root.org> In-Reply-To: <426539B0.4040100@root.org> Content-Type: multipart/mixed; boundary="------------000408020104060900020604" X-Virus-Scanned: amavisd-new at noacks.org cc: freebsd-acpi@freebsd.org Subject: Re: [cpufreq] speedstep support via GSI driver X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Apr 2005 08:01:22 -0000 This is a multi-part message in MIME format. --------------000408020104060900020604 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 04/19/05 12:02, Nate Lawson wrote: > Bruno Ducrot wrote: >> The smist driver (speedstep support for older kind of Intel's speedstep) >> is (maybe?) ready for inclusion. I CC to -acpi in order to get more >> feedback about this. >> It was tested on current with success by Jon (but should work with >> stable as well). >> >> The driver is available at >> http://www.poupinou.org/cpufreq/bsd/smist.tar.gz >> or >> http://www.poupinou.org/cpufreq/bsd/smist/smist.c > > Ok, it has been imported with minor changes. Let me know if you have > any problems. Sorry for the delay in getting back to you on this, but my laptop and recent -CURRENT weren't playing well together. The driver does not attach during the boot process and I see no messages with a verbose boot. I'm not sure if this ever worked; I may have always loaded the module after booting. In any case, I cleaned up the identify method and added some debug printouts (see attached diff). With those changes I see the following with a verbose boot: smist: could not find supported isa bridge! If I load the module after booting I see the following line (in addition to others): smist: found supported isa bridge Intel PIIX4 ISA bridge I can only assume that during the boot the call to pci_find_device is failing. Any ideas? Again, everything works fine if I load the module after booting. Regards, Jon --------------000408020104060900020604 Content-Type: text/x-patch; name="smist.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="smist.diff" --- /sys/i386/cpufreq/smist.c Tue Apr 19 11:38:24 2005 +++ smist.c Mon Apr 25 02:38:01 2005 @@ -228,7 +228,8 @@ struct piix4_pci_device *id; device_t piix4 = NULL; - if (resource_disabled("ichst", 0)) + /* Make sure we're not being doubly invoked. */ + if (device_find_child(parent, "smist", -1) != NULL) return; /* Check for a supported processor */ @@ -239,6 +240,8 @@ case 0x6a0: /* Pentium III [Tualatin] */ break; default: + if (bootverbose) + printf("smist: could not find supported processor!\n"); return; } @@ -247,14 +250,15 @@ if ((piix4 = pci_find_device(id->vendor, id->device)) != NULL) break; } - if (!piix4) + if (!piix4) { + if (bootverbose) + printf("smist: could not find supported isa bridge!\n"); return; + } if (bootverbose) printf("smist: found supported isa bridge %s\n", id->desc); - if (device_find_child(parent, "smist", -1) != NULL) - return; if (BUS_ADD_CHILD(parent, 0, "smist", -1) == NULL) device_printf(parent, "smist: add child failed\n"); } --------------000408020104060900020604-- From owner-freebsd-acpi@FreeBSD.ORG Mon Apr 25 11:02:10 2005 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 ADCF816A4CE for ; Mon, 25 Apr 2005 11:02:10 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 92C6D43D2D for ; Mon, 25 Apr 2005 11:02:10 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j3PB29lM061365 for ; Mon, 25 Apr 2005 11:02:09 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j3PB29OJ061359 for freebsd-acpi@freebsd.org; Mon, 25 Apr 2005 11:02:09 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 25 Apr 2005 11:02:09 GMT Message-Id: <200504251102.j3PB29OJ061359@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-acpi@FreeBSD.org Subject: Current problem reports assigned to you 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: Mon, 25 Apr 2005 11:02:10 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/07/22] i386/54756 acpi ACPI suspend/resume problem on CF-W2 lapt o [2003/08/17] i386/55661 acpi ACPI suspend/resume problem on ARMADA M70 o [2003/08/20] kern/55822 acpi No ACPI power off with SMP kernel o [2003/08/27] kern/56024 acpi ACPI suspend drains battery while in S3 o [2003/09/03] i386/56372 acpi acpi don't work on TYAN tiger100 M/B f [2003/09/10] kern/56659 acpi ACPI trouble on IBM ThinkPad X31 f [2003/12/17] i386/60317 acpi FreeBSD 5.2rc1 doesn't boot with ACPI ena f [2004/03/02] kern/63666 acpi [acpi] Network card 3c575B do not work af o [2004/03/09] i386/64002 acpi acpi problem o [2004/05/27] i386/67273 acpi [hang] system hangs with acpi and Xfree o [2004/10/12] i386/72566 acpi ACPI, FreeBSD disables fan on Compaq Arma o [2005/03/21] i386/79080 acpi acpi thermal changes freezes HP nx6110 o [2005/03/21] i386/79081 acpi ACPI suspend/resume not working on HP nx6 13 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- f [2004/01/22] i386/61703 acpi ACPI + Sound + Boot = Reboot o [2004/03/17] kern/64365 acpi ACPI problems f [2004/05/25] i386/67189 acpi ACPI S3 reboot computer on Dell Latitude o [2004/05/28] kern/67309 acpi zzz reboot computer (ACPI S3) f [2004/06/23] i386/68219 acpi ACPI + snd_maestro3 problem o [2004/07/29] i386/69750 acpi Boot without ACPI failed on ASUS L5 o [2004/11/11] i386/73822 acpi acpi / thermal support o [2004/11/21] kern/74215 acpi [request] add ACPI headers to /usr/includ 8 problems total. From owner-freebsd-acpi@FreeBSD.ORG Mon Apr 25 17:21:09 2005 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 8F59316A4CE for ; Mon, 25 Apr 2005 17:21:09 +0000 (GMT) Received: from poup.poupinou.org (poup.poupinou.org [195.101.94.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA8DA43D31 for ; Mon, 25 Apr 2005 17:21:08 +0000 (GMT) (envelope-from ducrot@poupinou.org) Received: from ducrot by poup.poupinou.org with local (Exim) id 1DQ7GW-0007nM-00; Mon, 25 Apr 2005 19:21:00 +0200 Date: Mon, 25 Apr 2005 19:21:00 +0200 To: freebsd-acpi@freebsd.org Message-ID: <20050425172100.GU2298@poupinou.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6+20040907i From: Bruno Ducrot Subject: [powerd] mode adaptive2 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: Mon, 25 Apr 2005 17:21:09 -0000 Hi, This algorithm give me some interesting behaviour. There is some trouble especially with max frequency setting which may need to be improved somehow. Also, it's very likely it fail if min frequency is too low (but I think its more a problem with kernel). After solving those issues, I'll introduce some adaptive filters. Index: powerd.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/powerd/powerd.c,v retrieving revision 1.6 diff -u -p -r1.6 powerd.c --- powerd.c 10 Apr 2005 20:42:55 -0000 1.6 +++ powerd.c 25 Apr 2005 16:57:42 -0000 @@ -48,9 +48,13 @@ __FBSDID("$FreeBSD: src/usr.sbin/powerd/ #define DEFAULT_IDLE_PERCENT 90 #define DEFAULT_POLL_INTERVAL 500 /* Poll interval in milliseconds */ + +#define DELTA_MAX 2 + enum modes_t { MODE_MIN, MODE_ADAPTIVE, + MODE_ADAPTIVE2, MODE_MAX, }; @@ -229,6 +233,8 @@ parse_mode(char *arg, int *mode, int ch) *mode = MODE_MAX; else if (strcmp(arg, "adaptive") == 0) *mode = MODE_ADAPTIVE; + else if (strcmp(arg, "adaptive2") == 0) + *mode = MODE_ADAPTIVE2; else errx(1, "bad option: -%c %s", (char)ch, optarg); } @@ -417,6 +423,46 @@ main(int argc, char * argv[]) if (read_usage_times(&idle, &total)) err(1, "read_usage_times"); + if (mode == MODE_ADAPTIVE2) { + if (100 * idle <= DELTA_MAX * total && + curfreq < freqs[0]) { + if (vflag) + printf("idle time <= %d%%, increasing " + "clock speed from %d MHz to %d " + "MHz\n", + DELTA_MAX, curfreq, freqs[0]); + + if (set_freq(freqs[0])) + err(1, "error setting CPU frequency %d", + freqs[0]); + } else if (curfreq > freqs[numfreqs - 1]) { + for (i = 0; i < numfreqs; i++) { + if (freqs[i] == curfreq) + break; + } + if (idle < total * freqs[i + 1] / freqs[i]) + continue; + + if (vflag) + printf("idle time >= %d%%, ", + 100 * freqs[i + 1] / freqs[i]); + for (i = 0; i < numfreqs - 1; i++) { + if (freqs[i] <= + curfreq * (total - idle) / total) + break; + } + if (vflag) { + printf("decreasing clock speed " + "from %d MHz to %d MHz\n", + curfreq, freqs[i]); + } + if (set_freq(freqs[i])) + err(1, "error setting CPU frequency %d", + freqs[i]); + } + continue; + } + /* * If we're idle less than the active mark, jump the CPU to * its fastest speed if we're not there yet. If we're idle -- Bruno Ducrot -- Which is worse: ignorance or apathy? -- Don't know. Don't care. From owner-freebsd-acpi@FreeBSD.ORG Tue Apr 26 05:23:43 2005 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 84CDA16A4CE for ; Tue, 26 Apr 2005 05:23:43 +0000 (GMT) Received: from phoenix.gargantuan.com (srv01.lak.lwxdatacom.net [24.73.171.238]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBC2143D31 for ; Tue, 26 Apr 2005 05:23:42 +0000 (GMT) (envelope-from michael@gargantuan.com) Received: from localhost (localhost.gargantuan.com [127.0.0.1]) by spamassassin-injector (Postfix) with SMTP id 1D681369 for ; Tue, 26 Apr 2005 01:23:42 -0400 (EDT) Received: by phoenix.gargantuan.com (Postfix, from userid 1001) id 90A075CF; Tue, 26 Apr 2005 01:23:32 -0400 (EDT) Date: Tue, 26 Apr 2005 01:23:32 -0400 From: "Michael W. Oliver" To: acpi@freebsd.org Message-ID: <20050426052332.GC48704@gargantuan.com> Mail-Followup-To: acpi@freebsd.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yudcn1FV7Hsu/q59" Content-Disposition: inline X-WWW-URL: http://michael.gargantuan.com X-GPG-PGP-Public-Key: http://michael.gargantuan.com/gnupg/pubkey.asc X-GPG-PGP-Fingerprint: 2694 0179 AE3F BFAE 0916 0BF5 B16B FBAB C5FA A3C9 X-Home-Phone: +1-863-816-8091 X-Mobile-Phone: +1-863-738-2334 X-Mailing-Address0: 8008 Apache Lane X-Mailing-Address1: Lakeland, FL X-Mailing-Address2: 33810-2172 X-Mailing-Address3: United States of America X-Guide-Questions: http://www.catb.org/~esr/faqs/smart-questions.html X-Guide-Netiquette: http://www.ietf.org/rfc/rfc1855.txt User-Agent: Mutt/1.5.9i X-Spam-DCC: dcc3mcgill: phoenix.gargantuan.com 1275; Body=1 Fuz1=1 Fuz2=1 X-Spam-Flag: NO X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on phoenix.gargantuan.com X-Spam-Level: X-Spam-Status: No, score=-105.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, USER_IN_WHITELIST autolearn=ham version=3.0.2 X-Spam-Pyzor: Reported 0 times. Subject: ec0 delay 11000us, batt init failed 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: Tue, 26 Apr 2005 05:23:43 -0000 --yudcn1FV7Hsu/q59 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Nate, I asked about this a couple of months ago, but you were on the verge of importing cpufreq and didn't have time to look at it. I am hoping that you have time now. Here is the tail of my dmesg: acpi_ec0: info: new max delay is 100 us acpi_ec0: info: new max delay is 11000 us acpi_cmbat0: battery initialization failed, giving up acpi_acad0: acline initialization start acpi_acad0: acline initialization done, tried 1 times acpi_tz0: _CRT value is absurd, ignored (154.8C) acpi_tz0: _CRT value is absurd, ignored (154.8C) acpi_tz0: _CRT value is absurd, ignored (154.8C) acpi_tz0: _CRT value is absurd, ignored (154.8C) and here is `sysctl hw.acpi.battery`: hw.acpi.battery.life: -1 hw.acpi.battery.time: -1 hw.acpi.battery.state: 7 hw.acpi.battery.units: 1 hw.acpi.battery.info_expire: 5 and here is `sysctl dev.cpu`: dev.cpu.0.%desc: ACPI CPU dev.cpu.0.%driver: cpu dev.cpu.0.%location: handle=3D\_PR_.CPU0 dev.cpu.0.%pnpinfo: _HID=3Dnone _UID=3D0 dev.cpu.0.%parent: acpi0 dev.cpu.0.freq: 800 dev.cpu.0.freq_levels: 2200/81500 1800/47000 800/19000 All of the usual stuff you would ask for is on: http://michael.gargantuan.com/sager_4750v/#Utility_Command_Output (dmesg -a, pciconf, usbdevs, devinfo, asl, etc.) If more information is required, please let me know. I would *love* to get battery status working on this sucker. Thanks for everything Nate. --=20 Mike Oliver [see complete headers for contact information] --yudcn1FV7Hsu/q59 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCbdBUsWv7q8X6o8kRAqHfAKCCuBqO+2WVZDIrMsElo6h2z/waEQCfdSNS QySVSYtiODG1jsJfGexY+6c= =gBz4 -----END PGP SIGNATURE----- --yudcn1FV7Hsu/q59-- From owner-freebsd-acpi@FreeBSD.ORG Tue Apr 26 17:15:08 2005 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 5004B16A4CE for ; Tue, 26 Apr 2005 17:15:08 +0000 (GMT) Received: from anubis.medic.chalmers.se (anubis.medic.chalmers.se [129.16.30.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7043343D2D for ; Tue, 26 Apr 2005 17:15:07 +0000 (GMT) (envelope-from nik@cs.chalmers.se) Received: from webmail.chalmers.se (elbe1.ita.chalmers.se [129.16.222.100]) by mail.chalmers.se (Postfix) with ESMTP id 243328B54 for ; Tue, 26 Apr 2005 19:15:06 +0200 (CEST) Received: from 83.226.116.53 (SquirrelMail authenticated user nik); by webmail.chalmers.se with HTTP; Tue, 26 Apr 2005 19:15:06 +0200 (CEST) Message-ID: <58705.83.226.116.53.1114535706.squirrel@webmail.chalmers.se> Date: Tue, 26 Apr 2005 19:15:06 +0200 (CEST) From: "Niklas Sorensson" To: freebsd-acpi@freebsd.org User-Agent: SquirrelMail/1.4.3a-7.EL3 X-Mailer: SquirrelMail/1.4.3a-7.EL3 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: acpi_thermal 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: Tue, 26 Apr 2005 17:15:08 -0000 Hi, I'm about to change cpu-fan on my Athlon64 computer, and would like to be able to monitor the temperature to make sure that everything is ok. However, i have no "hw.acpi.thermal" sysctl entry. Does it have to be enabled somehow, or is it not supported by the driver (or even worse, not supported by the hardware)? /Niklas From owner-freebsd-acpi@FreeBSD.ORG Wed Apr 27 10:45:30 2005 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 3658116A4CE for ; Wed, 27 Apr 2005 10:45:30 +0000 (GMT) Received: from postman.ripe.net (postman.ripe.net [193.0.0.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id C8B3243D5F for ; Wed, 27 Apr 2005 10:45:29 +0000 (GMT) (envelope-from marks@ripe.net) Received: by postman.ripe.net (Postfix, from userid 8) id 9138224547; Wed, 27 Apr 2005 12:45:28 +0200 (CEST) Received: from birch.ripe.net (birch.ripe.net [193.0.1.96]) by postman.ripe.net (Postfix) with ESMTP id 716DE242B3; Wed, 27 Apr 2005 12:45:26 +0200 (CEST) Received: from laptop.santcroos.net (cow.ripe.net [193.0.1.239]) by birch.ripe.net (8.12.10/8.11.6) with SMTP id j3RAjQet032056; Wed, 27 Apr 2005 12:45:26 +0200 Received: (nullmailer pid 10363 invoked by uid 1001); Wed, 27 Apr 2005 10:45:26 -0000 Date: Wed, 27 Apr 2005 12:45:26 +0200 From: Mark Santcroos To: KubaTyszko Message-ID: <20050427104526.GB1421@laptop.santcroos.net> References: <20050420192840.GA3963@lbl.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050420192840.GA3963@lbl.pl> User-Agent: Mutt/1.4.2.1i X-RIPE-Spam-Level: X-RIPE-Spam-Tests: ALL_TRUSTED,BAYES_00 X-RIPE-Spam-Status: N 0.017220 / -5.9 X-RIPE-Signature: 0192a391fdaf73cf601132418024cc1c cc: freebsd-acpi@freebsd.org Subject: Re: thinkpad t42 (recent -CURRENT) drains battery when acpi/apm sleep 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: Wed, 27 Apr 2005 10:45:30 -0000 On Wed, Apr 20, 2005 at 09:28:40PM +0200, KubaTyszko wrote: > my thinkpad drains 10 times more battery when sleeping than expected. What's the definition of "sleep" here? Mark > i have heard that can be a problem with radeon or something similar > (when sleeping i can still see the display on LCD (without backlit)). > can anybody help me with this issue ? (fix or at least debug so i would > provice more info to developers). -- RIPE NCC - Delft University of Technology - The FreeBSD Project marks@ripe.net - m.a.santcroos@ewi.tudelft.nl - marks@freebsd.org From owner-freebsd-acpi@FreeBSD.ORG Wed Apr 27 16:58:52 2005 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 2FEC516A4CE for ; Wed, 27 Apr 2005 16:58:52 +0000 (GMT) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE8B043D58 for ; Wed, 27 Apr 2005 16:58:51 +0000 (GMT) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id C7EF272DE9; Wed, 27 Apr 2005 09:58:51 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id C5EDF72DE7; Wed, 27 Apr 2005 09:58:51 -0700 (PDT) Date: Wed, 27 Apr 2005 09:58:51 -0700 (PDT) From: Doug White To: Niklas Sorensson In-Reply-To: <58705.83.226.116.53.1114535706.squirrel@webmail.chalmers.se> Message-ID: <20050427095758.N59710@carver.gumbysoft.com> References: <58705.83.226.116.53.1114535706.squirrel@webmail.chalmers.se> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-acpi@freebsd.org Subject: Re: acpi_thermal 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: Wed, 27 Apr 2005 16:58:52 -0000 On Tue, 26 Apr 2005, Niklas Sorensson wrote: > Hi, > > I'm about to change cpu-fan on my Athlon64 computer, and would > like to be able to monitor the temperature to make sure that > everything is ok. > > However, i have no "hw.acpi.thermal" sysctl entry. Does it have > to be enabled somehow, or is it not supported by the driver (or > even worse, not supported by the hardware)? It has to be supported by your BIOS ( which supplies the ACPI methods to inquiry the hardware). You might try the xmbmon port. -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org From owner-freebsd-acpi@FreeBSD.ORG Wed Apr 27 18:45:33 2005 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 7B57716A4CF for ; Wed, 27 Apr 2005 18:45:33 +0000 (GMT) Received: from mail28.sea5.speakeasy.net (mail28.sea5.speakeasy.net [69.17.117.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id CAF7743D58 for ; Wed, 27 Apr 2005 18:45:32 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 3308 invoked from network); 27 Apr 2005 18:45:32 -0000 Received: from server.baldwin.cx ([216.27.160.63]) (envelope-sender )AES256-SHA encrypted SMTP for ; 27 Apr 2005 18:45:32 -0000 Received: from [10.50.41.242] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id j3RIiqae044824; Wed, 27 Apr 2005 14:45:26 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-current@FreeBSD.org Date: Wed, 27 Apr 2005 13:49:23 -0400 User-Agent: KMail/1.8 References: <20050414103154.GA11341@laptop.santcroos.net> <5e7c3d2084ff2460d6e48786defc8f33@xcllnt.net> <20050415173627.GQ4842@dan.emsphone.com> In-Reply-To: <20050415173627.GQ4842@dan.emsphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200504271349.24843.jhb@FreeBSD.org> X-Spam-Status: No, score=-101.7 required=4.2 tests=ALL_TRUSTED, SUBJ_HAS_UNIQ_ID,USER_IN_WHITELIST autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx cc: freebsd-acpi@FreeBSD.org cc: Dan Nelson Subject: Re: Please test: ACPI-CA import 20050408 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: Wed, 27 Apr 2005 18:45:33 -0000 On Friday 15 April 2005 01:36 pm, Dan Nelson wrote: > In the last episode (Apr 15), Marcel Moolenaar said: > > On Apr 15, 2005, at 9:28 AM, Mark Santcroos wrote: > > >On Fri, Apr 15, 2005 at 09:20:52AM -0700, Marcel Moolenaar wrote: > > >>BTW: Is ACPICA getting slower? > > > > > > Might be. I don't have numbers on that. I guess we're still > > > focusing on functionality and not so much on speed. Do you have a > > > concrete area where you think we are loosing performance? > > > > No, not yet. It's just that there are 2 "dead" spots in the booting > > process of the plutos we have in the cluster and these "dead" spots > > appeared to be longer. I think there's a lot of AML interpretation > > going on during that time, but I might be wrong. > > What I have personally seen is a long delay in bus_alloc_resource() on > some older Dell machines (desktop and laptop, both under 500Mhz). If I > apply the attached patch, I see between 15 and 20 rows of identical > output, and each call to b_a_r takes a noticeable fraction of a second > (i.e. the cursor spends most of its time after an IRQ, not after a 'y' > or 'n'.) The delays probably add 45 seconds total to the boot time. > > Newer systems will just generate 4 or 5 lines total for the entire boot > process. Current doesn't use that version of the pci_link code anymore, so you should only see these delays on RELENG_5 now. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-acpi@FreeBSD.ORG Wed Apr 27 20:26:44 2005 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 BD2A616A4CE for ; Wed, 27 Apr 2005 20:26:44 +0000 (GMT) Received: from anubis.medic.chalmers.se (anubis.medic.chalmers.se [129.16.30.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id E2F3043D48 for ; Wed, 27 Apr 2005 20:26:43 +0000 (GMT) (envelope-from nik@cs.chalmers.se) Received: from webmail.chalmers.se (elbe1.ita.chalmers.se [129.16.222.100]) by mail.chalmers.se (Postfix) with ESMTP id CDA005821; Wed, 27 Apr 2005 22:26:42 +0200 (CEST) Received: from 83.226.116.53 (SquirrelMail authenticated user nik); by webmail.chalmers.se with HTTP; Wed, 27 Apr 2005 22:26:42 +0200 (CEST) Message-ID: <57802.83.226.116.53.1114633602.squirrel@webmail.chalmers.se> In-Reply-To: <20050427095758.N59710@carver.gumbysoft.com> References: <58705.83.226.116.53.1114535706.squirrel@webmail.chalmers.se> <20050427095758.N59710@carver.gumbysoft.com> Date: Wed, 27 Apr 2005 22:26:42 +0200 (CEST) From: "Niklas Sorensson" To: "Doug White" User-Agent: SquirrelMail/1.4.3a-7.EL3 X-Mailer: SquirrelMail/1.4.3a-7.EL3 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal cc: freebsd-acpi@freebsd.org Subject: Re: acpi_thermal 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: Wed, 27 Apr 2005 20:26:44 -0000 > On Tue, 26 Apr 2005, Niklas Sorensson wrote: > >> Hi, >> >> I'm about to change cpu-fan on my Athlon64 computer, and would >> like to be able to monitor the temperature to make sure that >> everything is ok. >> >> However, i have no "hw.acpi.thermal" sysctl entry. Does it have >> to be enabled somehow, or is it not supported by the driver (or >> even worse, not supported by the hardware)? > > It has to be supported by your BIOS ( which supplies the ACPI methods to > inquiry the hardware). > > You might try the xmbmon port. This worked well. Thanks! /Niklas From owner-freebsd-acpi@FreeBSD.ORG Thu Apr 28 16:07:31 2005 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 8242E16A4CE for ; Thu, 28 Apr 2005 16:07:31 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9FCE543D58 for ; Thu, 28 Apr 2005 16:07:30 +0000 (GMT) (envelope-from debackerl@gmail.com) Received: by rproxy.gmail.com with SMTP id a41so389491rng for ; Thu, 28 Apr 2005 09:07:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=RUrHw+2vCh8iKcKAlpASQkkG4Qsn5TPssfnF+Ix8DxrZX67u1o3zUEfZ51ZGPY1RSc2gsrrXoEKzQClS3mOeaT3v1e1KZCNX/pq+u9UwDFHaDglzJMy1Rj+qKjH6/UZA8XAH19zOUjKYK/Nam2EJdG8IiIW1UJ8RhWN/PMq/6u8= Received: by 10.38.12.8 with SMTP id 8mr2547378rnl; Thu, 28 Apr 2005 09:04:36 -0700 (PDT) Received: by 10.38.59.40 with HTTP; Thu, 28 Apr 2005 09:04:31 -0700 (PDT) Message-ID: <75751ca8050428090466a8bfa3@mail.gmail.com> Date: Thu, 28 Apr 2005 18:04:31 +0200 From: Laurent Debacker To: freebsd-acpi@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: =?iso-8859-1?q?Toshiba_Port=E9g=E9_4000_laptop?= X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Laurent Debacker List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2005 16:07:31 -0000 Hi I'm running FreeBSD 5.4-RC3 on a Toshiba Port=E9g=E9 4000 laptop. I'm running the kernel in ACPI mode, with Toshiba ACPI extension enabled. When my laptop wake up, the screen becomes white from the bottom to the top, always brighter and brighther until completely white. However the screen is not perfectly white, it's a bit odd, a bit as if the LCD would be transparent. What I need to do is to switch the video output. I always tried to suspend my laptop using the /usr/sbin/zzz command once. When it waked up, I think the disk's driver wasn't reloaded. Indeed when I asked FreeBSD to shut down, it couldn't sync the inodes. I tried to suspend it using Gnoppix, and I got no screen problem. I'd be glad to help you to enhance the ACPI system of FreeBSD. Just tell me what to type. And how to not loss all my inodes :p I don't want to pass another 10hours or so to reinstall and reconfigure my lovely FreeBSD. I'm a C/C++/C# developper, but with not much real experience since I'm still a student. Thanks! Laurent. From owner-freebsd-acpi@FreeBSD.ORG Fri Apr 29 01:01:38 2005 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 5350A16A4CE; Fri, 29 Apr 2005 01:01:38 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE28B43D2F; Fri, 29 Apr 2005 01:01:37 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id j3T11bv2074654; Thu, 28 Apr 2005 20:01:37 -0500 (CDT) (envelope-from dan) Date: Thu, 28 Apr 2005 20:01:37 -0500 From: Dan Nelson To: John Baldwin Message-ID: <20050429010136.GA22365@dan.emsphone.com> References: <20050414103154.GA11341@laptop.santcroos.net> <5e7c3d2084ff2460d6e48786defc8f33@xcllnt.net> <20050415173627.GQ4842@dan.emsphone.com> <200504271349.24843.jhb@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200504271349.24843.jhb@FreeBSD.org> X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.8i cc: freebsd-acpi@FreeBSD.org cc: freebsd-current@FreeBSD.org Subject: Re: Please test: ACPI-CA import 20050408 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: Fri, 29 Apr 2005 01:01:38 -0000 In the last episode (Apr 27), John Baldwin said: > On Friday 15 April 2005 01:36 pm, Dan Nelson wrote: > > What I have personally seen is a long delay in bus_alloc_resource() on > > some older Dell machines (desktop and laptop, both under 500Mhz). If I > > Current doesn't use that version of the pci_link code anymore, so you > should only see these delays on RELENG_5 now. I built a test -current kernel and it definitely boots a lot faster! -- Dan Nelson dnelson@allantgroup.com