From owner-freebsd-acpi@FreeBSD.ORG Wed Jul 16 13:28:30 2014 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A8CED911 for ; Wed, 16 Jul 2014 13:28:30 +0000 (UTC) Received: from nm14-vm7.access.bullet.mail.bf1.yahoo.com (nm14-vm7.access.bullet.mail.bf1.yahoo.com [216.109.115.22]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46A67285D for ; Wed, 16 Jul 2014 13:28:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=att.net; s=s2048; t=1405517169; bh=b3KBCcbuBkyQgzD4WxAEVZGXv5y7aW/FSh9HZhSNbls=; h=Received:Received:Received:DKIM-Signature:X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=KSNQ2wQoVJBkmP8XROw460FcU/61/wlBdfKAJnxw7UzS4TnxMQXmpZQmmDqvFeLor1/HnLSOhgvsLkEATwe4kvmiTx63q5bbEouq8mm3AzFZ+X0OhEAqwg92Iv+ex1c/fZkW8GgzXvqcW6w+D6FhPX2khVjz7GLgFwFFBUCjQhLBLuZEFzXxNZDVIxuYlAUiPGtDhH3lc2I9Mjjd/hfxq/R0gMHfTwpF7SdWo+xpI+lgBp6sEhItSP1sxjFOhip3J8Vt5J52+30SgUg3zpQEIzWvf7prTOAk844zXU0fhBY69HhDfvaKjP9QfonFOr3LYbdbPFrn3UWWgb53Pnk2oQ== DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=att.net; b=nrq/cflW0YncvDfkYUXRTq+uBP0iMJt8nCGUdnambjGjt3GVPUtOGljqE8UYwE9Gf1dML2j3J+AKbPxnff3B3z/Jvut2+iDh8ObJfLWAk8Oho8s9ChBZf4uxRqI5nQ1Rhvrln+S2OOPpnBuMgvaCqimCOhxfZbLDbz1IDxNZR7Jo5adhe8Y8zUzAUUvm2gvVGrumTYUGMnPKsvt65TX8VWcgobZvKkkF/58Iwnj0nVg/tFOEhwIkpAE+CAWcQ/fG1GN/gRRJq368Wv3l75HhS273Mdgn1oT1jUiUrxouM5q4ElOeMiHJSEPOI8sQUbPX0qymc9gMI81bYSHYWSBKsA==; Received: from [66.196.81.157] by nm14.access.bullet.mail.bf1.yahoo.com with NNFMP; 16 Jul 2014 13:26:09 -0000 Received: from [98.138.104.99] by tm3.access.bullet.mail.bf1.yahoo.com with NNFMP; 16 Jul 2014 13:26:09 -0000 Received: from [127.0.0.1] by smtp119.sbc.mail.ne1.yahoo.com with NNFMP; 16 Jul 2014 13:26:09 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=att.net; s=s1024; t=1405517169; bh=b3KBCcbuBkyQgzD4WxAEVZGXv5y7aW/FSh9HZhSNbls=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=KhEKpogXUqTIOkOJNSD45AOmeZeqzyks2UZwAfJjkvAoLNB9+jnAWMCkhZ9VhOoUJMt3FODlJu8I1irGcCx+10BvLs0z/NtpytLnNVx2yhe2sWN5SdBVZ8PziY/ZVHTaVmMQUAJrfBxFPWR1NuihQwCOXsJjhSvESV1eD6WGIlw= X-Yahoo-Newman-Id: 339229.83428.bm@smtp119.sbc.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: JJjDOU8VM1m4crYf9Aao.B9yn7LFhFHYOAxVpAbO4voky6X oayGdMLbaS3_CIxmSktHKpt2S1jb5.8EksUPX9nwIs8l_2GUDIiWM1bxCVIb T7raiXkyr6mjkGfHu0DbngSugikJ1m8tz690AEDAopKHbFECsePBrtZBukCy 6qssQUJOm6dl8Z4aub3FJQpMvrsu2mX1W6S5fKTl72t3AiWjctQdlRkIR8Oe btIGqPgr0rEsU1Ka4GT83vP4hDhcEg3RgtNhBrE0X63OUz.ebLEhlTot425M YGBE0IyFVz6map4ZpvFcX7qc8.MeHcPgMdHZX4VOzl5kyBwNyXfFySx5OePo PtEAlPzP5Ym1cB1SytjSWVKf.xGincAHHatEJGo7l_.uYcnorAYppAhEkl_6 bdmR.guwz.kJVqrVEtmMEtZgxQitXUWk.8yrjfCnfAVLDe.Ctc5ACaPl_kUI FVt_8qTa5FtcGHP8dcxNzxQhU96iIrviO5k6Glgll07RS_8TOBeZe4BQGrpI IFf8_omz8ec1hV3ia4.Y6cvixaVVav0pk66us2UAk6dO2_E_YVO.HEKbFYVf v5Zo6iF_0QWDqO3ua4JXhr.TrGlou2ymglm6FhXcxAMVVgVK.8mO.J0907Zv fVqiWW054uxQ4_TYWMk_9Azk2EYO3cvdB00gBCLDgz4MsFCAeVA5RfrYGRi7 jj3T3EV6GgkInxGBBayk5jb56xh3EXw-- X-Yahoo-SMTP: OKD1keCswBBTAmAF1s00hLyKW3wE3YfSK0Eazl6b4VZG4LTqJxg- Message-ID: <53C67D70.6060603@att.net> Date: Wed, 16 Jul 2014 09:26:08 -0400 From: Anthony Jenkins User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Daniele Mazzotti , Ian Smith Subject: Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E References: <53BFCBF4.2090104@att.net> <53C020CE.8010205@att.net> <53C02604.9070207@att.net> <53C3D322.3080302@att.net> <20140716040719.Y50382@sola.nimnet.asn.au> <20140716143406.V50382@sola.nimnet.asn.au> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jul 2014 13:28:30 -0000 On 07/16/2014 01:32, Daniele Mazzotti wrote: > > Hi guys, > > thanks again for the support, but I am leaving for a businesses trip and I will be forced to put this debug thing on hold for a while. I will be back on track next week. > Bah... really wanted to figure out the patch problem. I suspect the file picked up some corruption somewhere between the email and your FreeBSD filesystem. Your OS version has the same revision of that source file as mine, so it should apply cleanly. If you feel like tinkering with it in your free time, I've posted the patch here: http://pastebin.com/P0B44u0c Good luck, Anthony > > @Ian: there is only one thing I got from this problem NEVER BUY A SONY VAIO. It took 3 years before having support for my WiFi card on BSD and I hate Linux (especially Ubuntu)... There is no way I am going to use that OS on my desktop :-). > > Cheers, > Daniele. > > Il 16/lug/2014 07:20 "Ian Smith" > ha scritto: > > On Tue, 15 Jul 2014 20:47:44 +0200, Daniele Mazzotti wrote: > > Hi Ian, > > > > I have just rebooted the PC after turning the deep debug on. Here is the > > output: http://pastebin.com/H61zJhqc. It is very likely that the dmesg has > > been cut due to the large amount of output. Is there any way to have it all? > > > > Cheers, > > Daniele. > > >From the boot menu you can drop to the loader, and enter something like: > set kern.msgbufsize=120000 > boot > where the default is about 64K these days, I think. > > However I couldn't spot anything further regarding 'battery|BAT0', and > you did catch the start of initialisation. I'm out of my depth, but you > might also try layer 'ACPI_EC' with high verbosity? > > You shoudn't need to reboot to try things now that ACPI_DEBUG is enabled > in your kernel; you can adjust them on the fly. From section 11.16.6 on > the acpi-debug page: > > "If the information you want is triggered by a specific event (say, a > suspend and then resume), you can leave out changes to loader.conf and > instead use sysctl to specify the layer and level after booting and > preparing your system for the specific event. The sysctls are named the > same as the tunables in loader.conf." > > So you could avoid all the boot messages, if they're not helpful, and > log events like switching from AC to battery and vice versa, which might > trigger interrogating the battery (via the EC, probably), by adjusting > those sysctls, just for an example: > > root# sysctl debug.acpi.layer="ACPI_EC ACPI_BATTERY ACPI_AC_ADAPTER" > root# sysctl debug.acpi.level="ACPI_LV_VERBOSITY3" > > But I'm just stabbing in the dark, really .. good luck. > > cheers, Ian > > > 2014-07-15 20:22 GMT+02:00 Ian Smith >: > > > > > On Tue, 15 Jul 2014 19:49:46 +0200, Daniele Mazzotti wrote: > > > > > > > I made a few step ahead (at least on my side) and tried to follow the > > > > recommendation from the handbook ( > > > > http://www.pl.freebsd.org/doc/handbook/acpi-debug.html). > > > > > > > > I was able to turn on the verbose boot and here you can find the output: > > > > http://pastebin.com/kkDAZEVb. At boot time I can see an error stating > > > > "battery0: battery initialization failed, giving up" which is thrown by > > > the > > > > acpi_cmbat_init_battery within acpi_cmbat.c module. After six retries > > > the > > > > error is printed out. Actually I am not able to figure out who is > > > calling > > > > the method, but that is another story. > > > > > > Actually you'll see those messages on a 'normal' verbose boot, ie > > > there's nothing extra logged of note regarding battery issues. If you > > > are up for lots more output on one boot at least, perhaps try what > > > acpi(4) suggests: > > > > > > debug.acpi.layer="ACPI_ALL_COMPONENTS ACPI_ALL_DRIVERS" > > > debug.acpi.level="ACPI_LV_ALL_EXCEPTIONS" > > > > > > which is less deep, but wider :) Communications with batteries often, > > > likely usually, is moderated by the embedded controler (ACPI_EC) and it > > > wouldn't hurt to report any exceptions from other subsystems also. If > > > that yields nothing useful you could increase the level .. > > > > > > Sorry, I can't read messages backwards very well, so I'll drop the tail. > > > > > > cheers, Ian >