From owner-freebsd-acpi@FreeBSD.ORG Fri Jul 11 05:58:59 2014 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8D61DEE0 for ; Fri, 11 Jul 2014 05:58:59 +0000 (UTC) Received: from mail-oa0-x231.google.com (mail-oa0-x231.google.com [IPv6:2607:f8b0:4003:c02::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5222B215C for ; Fri, 11 Jul 2014 05:58:59 +0000 (UTC) Received: by mail-oa0-f49.google.com with SMTP id eb12so677201oac.22 for ; Thu, 10 Jul 2014 22:58:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=v3nQmqDVyJZS+xz1BEBDyTWVoSoqRBj3BW895K047fs=; b=ABoizIpOue+VEiuN0hTYjhYvzHlAOM+uAxQaQDyYE5bUaXi/7ESgatMZjcmow32cRv Ek4iz/bl3W4b0HNFVzcajdxAhj/JpUstwR9D9PgzDpPrUj9Hr50M55JnrtdcHPlPi3J3 by6J32mT8ZBH0pLUX+ckpJ5/7tD/ShsZEvogq9TVIm2+Ef4BftT7SRdli/hp1oBRO4yd EHG3WhVfbRrr17s9UGVGjlyx+3e3GL+gpnlrutXwqUM6hx5HIJ/6EH+a3gq3p4n1j7X4 v8KjXFat/qX7o+HM75znw/9YoxePX/FglVDNiNKS1eo510G2ktUggtWgushirPceSuE2 mSdw== MIME-Version: 1.0 X-Received: by 10.182.60.65 with SMTP id f1mr8941730obr.78.1405058338034; Thu, 10 Jul 2014 22:58:58 -0700 (PDT) Received: by 10.182.29.9 with HTTP; Thu, 10 Jul 2014 22:58:57 -0700 (PDT) In-Reply-To: <53BF0546.70505@att.net> References: <53BF0546.70505@att.net> Date: Fri, 11 Jul 2014 07:58:57 +0200 Message-ID: Subject: Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E From: Daniele Mazzotti To: Anthony Jenkins Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18 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: Fri, 11 Jul 2014 05:58:59 -0000 Hello Anthony, thanks for the quick reply! I tried what you suggested. loader.conf: # Module for Windows Partition & Linux Mount fuse_load="YES" autoboot_delay="5" #acpi_sony_load="YES" # Debugging Symbols for ACPI debug.acpi.layer="ACPI_BATTERY" debug.acpi.level="ACPI_LV_ALL_EXCEPTIONS" debug.acpi.enable_debug_objects="1" 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 log/messages: cat /var/log/messages | grep acpi Jul 11 07:30:47 Von-Neumann kernel: acpi0: on motherboard Jul 11 07:30:47 Von-Neumann kernel: acpi_ec0: port 0x62,0x66 on acpi0 Jul 11 07:30:47 Von-Neumann kernel: cpu0: on acpi0 Jul 11 07:30:47 Von-Neumann kernel: cpu1: on acpi0 Jul 11 07:30:47 Von-Neumann kernel: cpu2: on acpi0 Jul 11 07:30:47 Von-Neumann kernel: cpu3: on acpi0 Jul 11 07:30:47 Von-Neumann kernel: hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Jul 11 07:30:47 Von-Neumann kernel: atrtc0: port 0x70-0x77 irq 8 on acpi0 Jul 11 07:30:47 Von-Neumann kernel: attimer0: port 0x40-0x43,0x50-0x53 irq 0 on acpi0 Jul 11 07:30:47 Von-Neumann kernel: acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 Jul 11 07:30:47 Von-Neumann kernel: pcib0: port 0xcf8-0xcff on acpi0 Jul 11 07:30:47 Von-Neumann kernel: battery0: on acpi0 Jul 11 07:30:47 Von-Neumann kernel: acpi_acad0: on acpi0 Jul 11 07:30:47 Von-Neumann kernel: acpi_lid0: on acpi0 Jul 11 07:30:47 Von-Neumann kernel: acpi_button0: on acpi0 Jul 11 07:30:47 Von-Neumann kernel: acpi_tz0: on acpi0 Jul 11 07:30:47 Von-Neumann kernel: acpi_tz1: on acpi0 Jul 11 07:30:47 Von-Neumann kernel: atkbdc0: port 0x60,0x64 irq 1 on acpi0 Jul 11 07:30:47 Von-Neumann kernel: acpi_sony0: on acpi0 Jul 11 07:30:47 Von-Neumann kernel: acpi_sony0: PID 0 Jul 11 07:37:54 Von-Neumann kernel: acpi0: on motherboard Jul 11 07:37:54 Von-Neumann kernel: acpi_ec0: port 0x62,0x66 on acpi0 Jul 11 07:37:54 Von-Neumann kernel: cpu0: on acpi0 Jul 11 07:37:54 Von-Neumann kernel: cpu1: on acpi0 Jul 11 07:37:54 Von-Neumann kernel: cpu2: on acpi0 Jul 11 07:37:54 Von-Neumann kernel: cpu3: on acpi0 Jul 11 07:37:54 Von-Neumann kernel: hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Jul 11 07:37:54 Von-Neumann kernel: atrtc0: port 0x70-0x77 irq 8 on acpi0 Jul 11 07:37:54 Von-Neumann kernel: attimer0: port 0x40-0x43,0x50-0x53 irq 0 on acpi0 Jul 11 07:37:54 Von-Neumann kernel: acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 Jul 11 07:37:54 Von-Neumann kernel: pcib0: port 0xcf8-0xcff on acpi0 Jul 11 07:37:54 Von-Neumann kernel: battery0: on acpi0 Jul 11 07:37:54 Von-Neumann kernel: acpi_acad0: on acpi0 Jul 11 07:37:54 Von-Neumann kernel: acpi_lid0: on acpi0 Jul 11 07:37:54 Von-Neumann kernel: acpi_button0: on acpi0 Jul 11 07:37:54 Von-Neumann kernel: acpi_tz0: on acpi0 Jul 11 07:37:54 Von-Neumann kernel: acpi_tz1: on acpi0 Jul 11 07:37:54 Von-Neumann kernel: atkbdc0: port 0x60,0x64 irq 1 on acpi0 It seems to me the verbose debugging is either not enabled (perhaps I made some mistakes with the loader.conf) or the debug is really enabled but there is no special output on the wrong log file. Actually I am a bit puzzled as I am not a real expert "admin". I only enjoy getting my hands on Unix on my desktop PC just for fun. However, do you think either I missed something or made anything wrong? I look forward to receiving from you. Cheers, Daniele. 2014-07-10 23:27 GMT+02:00 Anthony Jenkins : > On 07/10/2014 16:49, Daniele Mazzotti wrote: > > Hello there, > > > > it is been a while since I finished installing Freebsd 10 on my Sony Vaio > > PC and resolving (or at least I am trying to) one by one, all the > problems > > this hardware is giving me. Actually I cannot find a solution to > correctly > > display the battery level on my laptop. If I unplug my PC from the power > > and type 'sysctl hw.acpi.battery' this is the result I get: > > > > 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 > > > > Moreover the suspend mode is giving me some problems as well, but this > has > > definitely a lower priority. > > > > I either tried to search for a solution on the FreeBSD Handook with no > > luck, and google the problem a little bit, but I could not find any > > valuable help. I would be really interested to investigate the problem > > further. Is there anyone who can help me out with this and tell me what > > pieces of information are needed to better understand the problem? > Try enabling the ACPI_BATTERY layer and ACPI_LV_ALL_EXCEPTIONS level in > /boot/loader.conf: > > debug.acpi.layer="ACPI_BATTERY" > debug.acpi.level="ACPI_LV_ALL_EXCEPTIONS" > debug.acpi.enable_debug_objects="1" # I assume this is how you > turn on ACPI debugging without recompiling the kernel with 'options > ACPI_DEBUG' > > and running 'sysctl hw.acpi.battery' again. Post /var/log/messages ACPI > messages about battery here. > > Anthony > > > > > Cheers, > > Daniele. > > _______________________________________________ > > 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" > > > >