From owner-freebsd-mobile@FreeBSD.ORG Wed Oct 30 15:13:02 2013 Return-Path: Delivered-To: freebsd-mobile@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 ESMTP id A8B0D200 for ; Wed, 30 Oct 2013 15:13:02 +0000 (UTC) (envelope-from ooomka@yandex.ru) Received: from forward4l.mail.yandex.net (forward4l.mail.yandex.net [IPv6:2a02:6b8:0:1819::4]) by mx1.freebsd.org (Postfix) with ESMTP id 3BDA72953 for ; Wed, 30 Oct 2013 15:13:01 +0000 (UTC) Received: from smtp11.mail.yandex.net (smtp11.mail.yandex.net [95.108.130.67]) by forward4l.mail.yandex.net (Yandex) with ESMTP id 484661440D68 for ; Wed, 30 Oct 2013 19:12:59 +0400 (MSK) Received: from smtp11.mail.yandex.net (localhost [127.0.0.1]) by smtp11.mail.yandex.net (Yandex) with ESMTP id 096F37E0869 for ; Wed, 30 Oct 2013 19:12:58 +0400 (MSK) Received: from ip-230-38-120-176.corp.langate.ua (ip-230-38-120-176.corp.langate.ua [176.120.38.230]) by smtp11.mail.yandex.net (nwsmtp/Yandex) with ESMTP id al7PllUpMN-CwTC7JWa; Wed, 30 Oct 2013 19:12:58 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1383145978; bh=LnxLIlUY5YAH+vlX3pszBNe14yOdkglrClqTNfGuWvU=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: References:In-Reply-To:X-Forwarded-Message-Id:Content-Type: Content-Transfer-Encoding; b=J3OtWkVQ06o1Id/JhNGdq98N0EsVZ6G4oRDxhhAEwWwKsbx/d2Fe2JPQujI/UnLGb ugD2AVVlpKs+7IXITJn6jdS22iNS1ysPosOExeD8A+YL0eWLgRwA9xQEPbioo6/2/v iUd60RaMFTtmjeigCtkA7MxXW4kglTG6ZDGOihSY= Authentication-Results: smtp11.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <527121F5.7030705@yandex.ru> Date: Wed, 30 Oct 2013 17:12:53 +0200 From: Sergiy Mikhailushko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: freebsd-mobile@freebsd.org Subject: ASUS U46E laptop brightness References: <524C3747.6060900@yandex.ru> In-Reply-To: <524C3747.6060900@yandex.ru> X-Forwarded-Message-Id: <524C3747.6060900@yandex.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Oct 2013 15:13:02 -0000 Hi all Could you please help me with a little annoying problem concerning laptop backlight? I've got ASUS U46E laptop with Intel GMA graphics running FreeBSD 9-STABLE amd64. The problem is that backlight is always set to maximum value. Pressing Fn+F5 (brightness down) has no effect, just yielding the following to /var/log/messages: ACPI Error: Result stack is empty! State=0xfffffe00017fa800 (20110527/dswstate-113) ACPI Exception: AE_AML_NO_RETURN_VALUE, Missing or null operand (20110527/dsutils-695) ACPI Exception: AE_AML_NO_RETURN_VALUE, While creating Arg 0 (20110527/dsutils-821) ACPI Error: Method parse/execution failed [\_SB_.PCI0.GFX0.GCBL] (Node 0xfffffe000181f600), AE_AML_NO_RETURN_VALUE (20110527/psparse-560) This happens both in console and X Window mode What I've tried: 1) Flashed the latest BIOS version from ASUS website (ver301) 2) Upgraded OS to the latest STABLE version (last upgrade Oct 28 2013) 3) Loading acpi_asus module: # kldload acpi_asus # sysctl -a | grep asus # 4) Loading acpi_video module: # sysctl hw.acpi.video.lcd0.active=1 hw.acpi.video.lcd0.active: 0 -> 0 # sysctl hw.acpi.video.lcd0.fullpower=60 hw.acpi.video.lcd0.fullpower: 100 -> 60 # sysctl hw.acpi.video.lcd0.economy=60 hw.acpi.video.lcd0.economy: 77 -> 60 # sysctl hw.acpi.video.lcd0.brightness=60 hw.acpi.video.lcd0.brightness: 60 -> 60 Values are changed but brightness doesn't 5) Using acpi_call utility (not sure what value should be changed, tried acpi_call -p '\_SB_.PCI0.GFX0.GCBL' and acpi_call -p '\_SB_.PCI0.LPCB.EC0_._Q0E' -- both resulting in Unknown object type '0') 6) Writing to freebsd-questions and freebsd-acpi mailing lists -- no replies so far # uname -a FreeBSD toysrv 9.2-STABLE FreeBSD 9.2-STABLE #0 r257265: Mon Oct 28 23:05:31 EET 2013 oomka@toysrv:/usr/obj/usr/src/sys/TOYSRV amd64 # acpidump -dt > u46e.asl (http://tny.cz/452a2978) I used to run i386 FreeBSD on this laptop -- the brightness control was okay on it. There were often kernel panics on that architecture so I've switched to amd64. Panics disappeared and the things work fine so far, except the screen brightness. I know that my problem isn't critical when I'm working on daylight or with external LCD display, but when I have to work at the laptop at night -- this spotlight really drives me crazy. Thank you in advance for your help. From owner-freebsd-mobile@FreeBSD.ORG Wed Oct 30 15:42:16 2013 Return-Path: Delivered-To: freebsd-mobile@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 ESMTP id 8DA49FE7 for ; Wed, 30 Oct 2013 15:42:16 +0000 (UTC) (envelope-from henry.hu.sh@gmail.com) Received: from mail-ie0-x22b.google.com (mail-ie0-x22b.google.com [IPv6:2607:f8b0:4001:c03::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 603342BA5 for ; Wed, 30 Oct 2013 15:42:16 +0000 (UTC) Received: by mail-ie0-f171.google.com with SMTP id tp5so2659979ieb.30 for ; Wed, 30 Oct 2013 08:42:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=p2RIpZ/pKU7TUbHNOiTyjzyZekoA0K0Xo9SNxfMEJlM=; b=oMJYJ5vJPfxOk0YiqnOduH3Hx44EDxDc7WPs8Tok1/fD6kz8yxoYlXIQGfflmvDr0p m9oxCehBDpN00hMW16s0jk4xApe1vLq0nuEBwRiTsJRk9P+5a/Y9UWr4h+kJc0CXJGxs NmCfYEYXHdqNiLoCS5rPCpyKm0EdskK6zzaWSvPw5Zp/KVyGz5S4Ta5VkD8fYCIPAwyH 87PKqWYCx2c8BRWYhYVAs2w6veX5muzxQtFpQI9PGkwnaoS6AwX1HFgxhJR9dJBVN8qs tNaWUlQEC0u/eBG8PZgeER7p+3LdMFO6+qbrO80VQowFQQ0oZNiNA02ZMMgeYLvGAFLz rbbA== X-Received: by 10.50.118.41 with SMTP id kj9mr2892256igb.9.1383147735763; Wed, 30 Oct 2013 08:42:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.72.134 with HTTP; Wed, 30 Oct 2013 08:41:55 -0700 (PDT) In-Reply-To: <527121F5.7030705@yandex.ru> References: <524C3747.6060900@yandex.ru> <527121F5.7030705@yandex.ru> From: Henry Hu Date: Wed, 30 Oct 2013 11:41:55 -0400 Message-ID: Subject: Re: ASUS U46E laptop brightness To: Sergiy Mikhailushko Content-Type: text/plain; charset=KOI8-R X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-mobile@freebsd.org X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Oct 2013 15:42:16 -0000 On Wed, Oct 30, 2013 at 11:12 AM, Sergiy Mikhailushko wrote: > > Hi all > Could you please help me with a little annoying problem concerning > laptop backlight? > I've got ASUS U46E laptop with Intel GMA graphics running FreeBSD > 9-STABLE amd64. The problem is that backlight is always set to maximum > value. Pressing Fn+F5 (brightness down) has no effect, just yielding the > following to /var/log/messages: > > ACPI Error: Result stack is empty! State=0xfffffe00017fa800 > (20110527/dswstate-113) > ACPI Exception: AE_AML_NO_RETURN_VALUE, Missing or null operand > (20110527/dsutils-695) > ACPI Exception: AE_AML_NO_RETURN_VALUE, While creating Arg 0 > (20110527/dsutils-821) > ACPI Error: Method parse/execution failed [\_SB_.PCI0.GFX0.GCBL] (Node > 0xfffffe000181f600), AE_AML_NO_RETURN_VALUE (20110527/psparse-560) > > This happens both in console and X Window mode > > What I've tried: > > 1) Flashed the latest BIOS version from ASUS website (ver301) > > 2) Upgraded OS to the latest STABLE version (last upgrade Oct 28 2013) > > 3) Loading acpi_asus module: > # kldload acpi_asus > # sysctl -a | grep asus > # > > 4) Loading acpi_video module: > # sysctl hw.acpi.video.lcd0.active=1 > hw.acpi.video.lcd0.active: 0 -> 0 > # sysctl hw.acpi.video.lcd0.fullpower=**60 > hw.acpi.video.lcd0.fullpower: 100 -> 60 > # sysctl hw.acpi.video.lcd0.economy=60 > hw.acpi.video.lcd0.economy: 77 -> 60 > # sysctl hw.acpi.video.lcd0.brightness=**60 > hw.acpi.video.lcd0.brightness: 60 -> 60 > Values are changed but brightness doesn't > > 5) Using acpi_call utility (not sure what value should be changed, tried > acpi_call -p '\_SB_.PCI0.GFX0.GCBL' and acpi_call -p > '\_SB_.PCI0.LPCB.EC0_._Q0E' -- both resulting in Unknown object type '0') > > I'm using ASUS UX51VZ and I can use this to adjust the brightness: acpi_call -p "\_SB.ATKD.SPLV" -i $2 acpi_call -p "\ISMI" -i 154 I found these statements in acpidump, so you may find similar statements. > 6) Writing to freebsd-questions and freebsd-acpi mailing lists -- no > replies so far > > # uname -a > FreeBSD toysrv 9.2-STABLE FreeBSD 9.2-STABLE #0 r257265: Mon Oct 28 > 23:05:31 EET 2013 oomka@toysrv:/usr/obj/usr/src/**sys/TOYSRV amd64 > > # acpidump -dt > u46e.asl (http://tny.cz/452a2978) > > I used to run i386 FreeBSD on this laptop -- the brightness control was > okay on it. There were often kernel panics on that architecture so I've > switched to amd64. Panics disappeared and the things work fine so far, > except the screen brightness. > I know that my problem isn't critical when I'm working on daylight or > with external LCD display, but when I have to work at the laptop at > night -- this spotlight really drives me crazy. Thank you in advance for > your help. > > > > > > > ______________________________**_________________ > freebsd-mobile@freebsd.org mailing list > http://lists.freebsd.org/**mailman/listinfo/freebsd-**mobile > To unsubscribe, send any mail to "freebsd-mobile-unsubscribe@**freebsd.org > " > -- Cheers, Henry From owner-freebsd-mobile@FreeBSD.ORG Wed Oct 30 17:29:31 2013 Return-Path: Delivered-To: freebsd-mobile@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 ESMTP id 47CAB929 for ; Wed, 30 Oct 2013 17:29:31 +0000 (UTC) (envelope-from ooomka@yandex.ru) Received: from forward6l.mail.yandex.net (forward6l.mail.yandex.net [IPv6:2a02:6b8:0:1819::6]) by mx1.freebsd.org (Postfix) with ESMTP id 03A88245C for ; Wed, 30 Oct 2013 17:29:31 +0000 (UTC) Received: from smtp13.mail.yandex.net (smtp13.mail.yandex.net [95.108.130.68]) by forward6l.mail.yandex.net (Yandex) with ESMTP id C08FE14E0CD0; Wed, 30 Oct 2013 21:29:28 +0400 (MSK) Received: from smtp13.mail.yandex.net (localhost [127.0.0.1]) by smtp13.mail.yandex.net (Yandex) with ESMTP id 6D660E40794; Wed, 30 Oct 2013 21:29:28 +0400 (MSK) Received: from ip-230-38-120-176.corp.langate.ua (ip-230-38-120-176.corp.langate.ua [176.120.38.230]) by smtp13.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 7UJGCCYORG-TR7053ko; Wed, 30 Oct 2013 21:29:28 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1383154168; bh=bBDZpRP3zB0zqDhubJpEpVY+HO5o/xbFC6T40a3p3bU=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=vCBJgvce2He2RGRyfFUn9C8mMqwI/s5DthHsihO86HruFOJHwWTkvFz8duDk4pg2Y nAnz6gkDCSC/hSM/aJqWfK7eD3FWyeQLpW5Nu+0pl17gOToAjwcmE79dHBaZebz89f qERSIbcIh6i7lmktWYiv5WisheN9ZDOTcEQCu41Y= Authentication-Results: smtp13.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <527141F2.4010402@yandex.ru> Date: Wed, 30 Oct 2013 19:29:22 +0200 From: Sergiy Mikhailushko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: Henry Hu Subject: Re: ASUS U46E laptop brightness References: <524C3747.6060900@yandex.ru> <527121F5.7030705@yandex.ru> In-Reply-To: Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-mobile@freebsd.org X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Oct 2013 17:29:31 -0000 On 10/30/2013 17:41, Henry Hu wrote: > > > On Wed, Oct 30, 2013 at 11:12 AM, Sergiy Mikhailushko > wrote: > > I'm using ASUS UX51VZ and I can use this to adjust the brightness: > > acpi_call -p "\_SB.ATKD.SPLV" -i $2 > acpi_call -p "\ISMI" -i 154 > > I found these statements in acpidump, so you may find similar statements. > Hooray! Your method works, you saved my eyes. I can change brightness level with "acpi_call -p "\_SB.ATKD.SPLV" -i $[1-10]. Thanks a lot! I've made keyboard shortcuts for brightness control. Maybe someone may need it -- here I leave the recipe: 1) Granted access to acpi to anybody from wheel group by adding the following to /etc/devfs.conf (don't forget to restart devfs service after changing the file): perm acpi 0660 2) Created two tiny scripts in ~/bin: brup.sh... #!/bin/sh if [ ! -f /tmp/brightlvl ]; then echo 1 > /tmp/brightlvl fi lvl=`cat /tmp/brightlvl` if [ $lvl -gt 9 ]; then exit 0 fi lvl=`expr $lvl + 1` echo $lvl > /tmp/brightlvl echo $lvl exit 0 ...and brdown.sh #!/bin/sh if [ ! -f /tmp/brightlvl ]; then echo 10 > /tmp/brightlvl fi lvl=`cat /tmp/brightlvl` if [ $lvl -lt 2 ]; then exit 0 fi lvl=`expr $lvl - 1` echo $lvl > /tmp/brightlvl echo $lvl exit 0 2) Added the following to ~/.fluxbox/keys (if you use another WM/DE then you'll have another way to bind hotkeys): Control Right :Exec acpi_call -p "\_SB.ATKD.SPLV" -i `brup.sh` Control Left :Exec acpi_call -p "\_SB.ATKD.SPLV" -i `brdown.sh` Now I can adjust brightness by pressing Ctrl+Left/Ctrl+Right. Somewhat more convenient then typing the command in the terminal. From owner-freebsd-mobile@FreeBSD.ORG Fri Nov 1 05:51:32 2013 Return-Path: Delivered-To: freebsd-mobile@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 ESMTP id 10D244AD for ; Fri, 1 Nov 2013 05:51:32 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qe0-x22f.google.com (mail-qe0-x22f.google.com [IPv6:2607:f8b0:400d:c02::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CB4262FCD for ; Fri, 1 Nov 2013 05:51:31 +0000 (UTC) Received: by mail-qe0-f47.google.com with SMTP id b4so2335581qen.6 for ; Thu, 31 Oct 2013 22:51:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=JAcydXZ/5iea50Y6Nj6JHsdkh13fWgnNUdy3afFOeco=; b=JmMCB/3xKpAn3R1l1EdRe6VG8VSg66JPETYaG3EJT+OUMTpxaU40QVlWNIyRafbRxv RBdGfSDb9sGL7XLaz8EJ9wt+/FMLlxbVc7I0O/NO2XDW9VhqGvwJ8G7E3Qfs949KVZnD OnURr9tjKAtg73oajSeyXh7rYmBOrD2069f2lVpgJQfvXXXyWoQ4F824Sysja1ecN317 Y7C57EKgq9Naw5M7d6LZMagKw+B9xkfdjnnvuhRQjGEvAnZAj6cXOZBveLE0iBXu9EuU XtHknNVy/50zw1aySG3KZUhqWe/sv56y/aWKwO0CfdM7k+Q5C21gepSnODyjqvP5/iEZ iVjQ== MIME-Version: 1.0 X-Received: by 10.224.55.80 with SMTP id t16mr1660347qag.106.1383285090715; Thu, 31 Oct 2013 22:51:30 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.207.66 with HTTP; Thu, 31 Oct 2013 22:51:30 -0700 (PDT) Date: Thu, 31 Oct 2013 22:51:30 -0700 X-Google-Sender-Auth: Cr50cLJ__OPiUZXfW9QmMp4u4wo Message-ID: Subject: 11-HEAD i386 on T400 - rundown From: Adrian Chadd To: "freebsd-mobile@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2013 05:51:32 -0000 Hi, I recently upgraded my Lenovo T400 to the latest i386 -HEAD (as of last night.) The 30 second version: Works: * it boots fine! * xorg works fine, but I haven't tested out 3d; * wifi works fine (intel 5100 abgn wifi); * bluetooth isn't tested, but not much has changed here, so I expect it will be; Doesn't work: * USB port power still doesn't come back after a resume. Things that may work better: * reboot was never 100% reliable; I'll have to reboot a hundred times to see if it's still flaky; * same with suspend/resume, but I've not had it resume badly yet. Now, for the power consumption bits: Using acpiconf -i0, I can get the power draw down to around 14W when idle, running xorg: * no firefox/chrome, as those do all kinds of high resolution timer events that we dutifully meet; * iwn(4) in powersave mode (ifconfig wlan0 create wlandev iwn0 powersave); * bluetooth disabled; * LCD brightness turned further down. Now, I'd like to find ways to turn the power down. Vague forum searches show that this _should_ get down to around 10W. I can't think of anything else to do system-wise - I don't know if it's hard disk related (I think it's always spinning, that may be a problem); I don't know if it's GPU related (ie, if the GPU is constantly on and we're not doing "sleep" things.) I'm going to play with booting it in single-CPU mode and see if that drops power consumption. If so, I wonder if for mostly-idle workloads the "right" thing to do is just leave the other CPUs in an idle state and only start scheduling work on them if the run queue gets too deep. Comments? I'll try this on an X220 in a couple weeks. Hopefully the latest -HEAD and xorg suspend/resumes video correctly! Thanks, -adrian