From owner-freebsd-hackers@FreeBSD.ORG Fri Feb 23 00:00:20 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EE5B816A402 for ; Fri, 23 Feb 2007 00:00:20 +0000 (UTC) (envelope-from pietro.cerutti@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.249]) by mx1.freebsd.org (Postfix) with ESMTP id 694AB13C4A3 for ; Fri, 23 Feb 2007 00:00:20 +0000 (UTC) (envelope-from pietro.cerutti@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so267338ana for ; Thu, 22 Feb 2007 16:00:19 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qXTbT2Q3hxEzpXOu72KvV8n4WPZRZupws9RjCzfl4Y+jB2qfybJ+QmTMsgp83omC8YCSovdKDv993CuIXCw2qjwuKbXLZQTMJTf3lNV6cId61FYG5h7waUo8E2uaZXzkdq5X9l2J/Q6a+Ahut/hmEfnOYeSaZlHpRPgHPlorE3k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GZzCAUTwpr4tlPZzUS0OJ37qsw4cdLRLbIZQbcanoDuw5U7kvGXo0IDSxYI9uas0+hLFTqb9IxHmS5fUYtGiI8g/EXM1uqpjpRWn6G4y/uwWPAb9VgENJWIHkG0uR5El0Ta69N4p/S9xrzVPMbak5gq4tcUoiWblmfiNoltUxl4= Received: by 10.100.33.14 with SMTP id g14mr1025456ang.1172188819771; Thu, 22 Feb 2007 16:00:19 -0800 (PST) Received: by 10.100.33.5 with HTTP; Thu, 22 Feb 2007 16:00:19 -0800 (PST) Message-ID: Date: Fri, 23 Feb 2007 01:00:19 +0100 From: "Pietro Cerutti" To: "Moore, Robert" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: rodrigc@crodrigues.org, freebsd-acpi@freebsd.org, freebsd-hackers@freebsd.org, Nate Lawson Subject: Re: Laptop won't power off X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Feb 2007 00:00:21 -0000 On 2/23/07, Moore, Robert wrote: > On linux, the compiler must be generated with the "flex-old" package, I > don't know if there is anything like it for bsd. We are looking at > making changes to support newer versions of flex/bison. Bob, we don't have a flex-old package, so we'll have to wait till the new version becomes available. By the way, the asl code compiles without warning using the iasl apt package on Ubuntu, so the problem is definitely not with the asl. > Power problems: sorry, not the expert in this area. For everyone else: By disabling SMP I could get to a stage where, at the end of the shutdown process, this message is displayed (with SMP enabled, the screen turns black and I can't read messages): AcpiEnterSleepStatePrep failed - AE_NOT_FOUND So, any ideas on that? > > > > -----Original Message----- > > From: Pietro Cerutti [mailto:pietro.cerutti@gmail.com] > > Sent: Thursday, February 22, 2007 3:46 PM > > To: Moore, Robert > > Cc: Nate Lawson; rodrigc@crodrigues.org; freebsd-hackers@freebsd.org; > > freebsd-acpi@freebsd.org > > Subject: Re: Laptop won't power off > > > > On 2/23/07, Moore, Robert wrote: > > > Not likely to be cause of power off problems > > Ok, any other ideas? > > > > > > > > Compiler runs on linux, should run on bsd. > > If you're talking about this one: > > http://www.intel.com/technology/iapc/acpi/downloads/acpica-unix- > > 20061109.tar.gz > > it doesn't compile neither on Debian (Kernel 2.6.12) nor on FreeBSD > > (6.2).... > > > > > make > > bison -v -d -y -pAslCompiler aslcompiler.y > > aslcompiler.y:3083.37-48: warning: rule never reduced because of > > conflicts: OptionalResourceType: /* empty */ > > > > cp y.tab.c aslcompilerparse.c > > cp y.tab.h aslcompiler.y.h > > cc -Wall -O2 -Wstrict-prototypes -D_LINUX -DACPI_ASL_COMPILER > > -I../include -c -o aslcompilerparse.o aslcompilerparse.c > > flex -i -PAslCompiler -oaslcompilerlex.c aslcompiler.l > > cc -Wall -O2 -Wstrict-prototypes -D_LINUX -DACPI_ASL_COMPILER > > -I../include -c -o aslcompilerlex.o aslcompilerlex.c > > aslcompiler.l: In function 'comment': > > aslcompiler.l:847: error: 'yytext_ptr' undeclared (first use in this > > function) > > aslcompiler.l:847: error: (Each undeclared identifier is reported only > > once > > aslcompiler.l:847: error: for each function it appears in.) > > make: *** [aslcompilerlex.o] Error 1 > > > > > > > > > > > > > > -----Original Message----- > > > > From: Pietro Cerutti [mailto:pietro.cerutti@gmail.com] > > > > Sent: Thursday, February 22, 2007 3:31 PM > > > > To: Moore, Robert > > > > Cc: Nate Lawson; rodrigc@crodrigues.org; > freebsd-hackers@freebsd.org; > > > > freebsd-acpi@freebsd.org > > > > Subject: Re: Laptop won't power off > > > > > > > > On 2/23/07, Moore, Robert wrote: > > > > > > MSI-1034.orig.asl 4206: If (SS1) > > > > > > Error 1037 - syntax error ^ > > > > > > > > > > 3) Newer versions of iASL will allow executable statements > outside > > > of > > > > > control methods. > > > > > > > > So, sorry if I'm a bit slow, but this isn't likely to be the cause > to > > > > my problems, isn't it? > > > > > > > > Any plan to port a new version of iASL (supporting the new > features) > > > to > > > > FreeBSD? > > > > > > > > > > > > > > > > > > > ASL Optimizing Compiler / AML Disassembler version 20041119 > [Feb > > > 22 > > > > > 2007] > > > > > > > > > > Like mid 2006 and newer. > > > > > Bob > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: owner-freebsd-acpi@freebsd.org [mailto:owner-freebsd- > > > > > > acpi@freebsd.org] On Behalf Of Pietro Cerutti > > > > > > Sent: Thursday, February 22, 2007 2:54 PM > > > > > > To: Nate Lawson; rodrigc@crodrigues.org > > > > > > Cc: freebsd-hackers@freebsd.org; freebsd-acpi@freebsd.org > > > > > > Subject: Re: Laptop won't power off > > > > > > > > > > > > On 2/22/07, Nate Lawson wrote: > > > > > > > Pietro Cerutti wrote: > > > > > > > > Hi Lists, > > > > > > > > first off, sorry for cross-posting, but I'm not subscribed > to > > > > > > > > freebsd-acpi@, so acpi guys please CC me. > > > > > > > > > > > > > > > > The problem here is that my laptop doesn't power off when > > > issuing > > > > > halt > > > > > > > > -p or shutdown -p now. > > > > > > > > This is the machine: > > > > > > > > http://www.msicomputer.com/NB/product_spec.asp?model=MS- > > > > > > 1034_(Core2_Duo) > > > > > > > > > > > > > > > > Any hint is greatly appreciated! > > > > > > > > CPU: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz > > > (2000.15-MHz > > > > > > > > 686-class CPU) > > > > > > > > Origin = "GenuineIntel" Id = 0x6f6 Stepping = 6 > > > > > > > > > > > > > > > > > > > > > > > Features=0xbfebfbff > > > > ,M > > > > > > > > > CA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Features2=0xe3bd,CX16,, > > > > > > > > > > > > > > AMD Features=0x20100000 > > > > > > > > AMD Features2=0x1 > > > > > > > > Cores per package: 2 > > > > > > > > > > > > > > Try disabling SMP so only 1 core is running. Build a kernel > > > without > > > > > SMP > > > > > > > option or at loader prompt type: > > > > > > > > > > > > > > set hint.apic.0.disabled="1" > > > > > > > > > > > > I already tried this way, but without any results... disabling > > > SMPing > > > > > > only enables S3 state, which doesn't work otherwise.. > > > > > > > > > > > > Moreover, following the directives on "11.16 Using and > Debugging > > > > > > FreeBSD ACPI" of the FreeBSD handbook, I put my ASL online > here: > > > > > > > > > > > > https://staff.hti.bfh.ch/ctp3/MSI-1034.asl > > > > > > > > > > > > If I try to recompile it, there are a few errors: > > > > > > > > > > > > > iasl MSI-1034.asl > > > > > > > > > > > > Intel ACPI Component Architecture > > > > > > ASL Optimizing Compiler / AML Disassembler version 20041119 > [Feb > > > 22 > > > > > 2007] > > > > > > Copyright (C) 2000 - 2004 Intel Corporation > > > > > > Supports ACPI Specification Revision 2.0c > > > > > > > > > > > > MSI-1034.orig.asl 4128: PTS (Arg0) > > > > > > Error 1022 - ^ Object does not exist > (PTS_) > > > > > > > > > > > > MSI-1034.orig.asl 4149: WAK (Arg0) > > > > > > Error 1022 - ^ Object does not exist > (WAK_) > > > > > > > > > > > > MSI-1034.orig.asl 4206: If (SS1) > > > > > > Error 1037 - syntax error ^ > > > > > > > > > > > > ASL Input: MSI-1034.orig.asl - 4406 lines, 130275 bytes, 1862 > > > > > keywords > > > > > > Compilation complete. 3 Errors, 0 Warnings, 0 Remarks, 536 > > > > > Optimizations > > > > > > > > > > > > I solved the first two by putting the function declarations of > PRS > > > and > > > > > > WAK above the actual call at line 4128 and 4149, but I can't > > > really > > > > > > figure out how to fix the third error. > > > > > > > > > > > > Thanx in advance! > > > > > > > > > > > > > > > > > > > > -- > > > > > > > Nate > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > Pietro Cerutti > > > > > > > > > > > > - ASCII Ribbon Campaign - > > > > > > against HTML e-mail and > > > > > > proprietary attachments > > > > > > www.asciiribbon.org > > > > > > _______________________________________________ > > > > > > freebsd-acpi@freebsd.org mailing list > > > > > > http://lists.freebsd.org/mailman/listinfo/freebsd-acpi > > > > > > To unsubscribe, send any mail to > > > > > "freebsd-acpi-unsubscribe@freebsd.org" > > > > > > > > > > > > > > > > > -- > > > > Pietro Cerutti > > > > > > > > - ASCII Ribbon Campaign - > > > > against HTML e-mail and > > > > proprietary attachments > > > > www.asciiribbon.org > > > > > > > > > -- > > Pietro Cerutti > > > > - ASCII Ribbon Campaign - > > against HTML e-mail and > > proprietary attachments > > www.asciiribbon.org > -- Pietro Cerutti - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org