From owner-freebsd-acpi@FreeBSD.ORG Fri May 4 21:37:17 2012 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5B1AC1065705 for ; Fri, 4 May 2012 21:37:17 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 287F98FC0C for ; Fri, 4 May 2012 21:37:17 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so4755911pbb.13 for ; Fri, 04 May 2012 14:37:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=AWPKFoluDkIgqhoMW6GoKXA/JeHnyot0Uy1c6aQ5j0Q=; b=SThBdgAwou4jkN9vV4pOn+LxTNI/880ZJO0tZLaPfO2Ot1Wmq+05Doz236i7C7KPPH Jj3AVPRlOExDxTYcyO5ZiTIMTB/wBD4rfrN0j0ss1YSozf2qF4xcRHSB9HfGJ9cOdxHE oNg/YFVlP7uJtCSISmSDL006WGxXWiOOqBc7VNw2HG0/De52qj6x1RPbcPlxt6U/E7Kv +o6yonuS9iQBi52cHPxvx9xy5dBAM5yigGA8CTWpugMsKIULi9sfMk3vcJ8yDU3du1w6 o9fpaM4XLTeL03z2KSkAIu1wT8MpHbIzKMZBBbXj3mFaCIcBI7J6x2eZhLm78EU3iSzb 4rPg== Received: by 10.68.228.106 with SMTP id sh10mr484696pbc.107.1336167436977; Fri, 04 May 2012 14:37:16 -0700 (PDT) Received: from flatline.local (70-36-223-239.dsl.dynamic.sonic.net. [70.36.223.239]) by mx.google.com with ESMTPS id q1sm9699198pbp.62.2012.05.04.14.37.15 (version=SSLv3 cipher=OTHER); Fri, 04 May 2012 14:37:15 -0700 (PDT) Message-ID: <4FA44BFB.20408@gmail.com> Date: Fri, 04 May 2012 14:36:59 -0700 From: matt User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:11.0) Gecko/20120422 Thunderbird/11.0.1 MIME-Version: 1.0 To: Nikolay Tychina References: <20120502014958.H91148@sola.nimnet.asn.au> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org, Ian Smith Subject: Re: Brightness keys and booting the kernel X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 May 2012 21:37:17 -0000 On 05/01/12 10:13, Nikolay Tychina wrote: >> > Considering the fact that brightness keys work until kernel is loaded, >> > is it possible to make them work >> > after the kernel is booted in some simple way? >> > I remember my previous laptop was able to control brightness without >> > any acpi_* modules and disregarding >> > OS running. >> >> What make and model laptop? What OS? (this one, and the previous?) >> >> % head -24 /var/run/dmesg.boot >> >> should provide a clue or two. >> >> cheers, Ian > This is Samsung RV511-S02 which runs FreeBSD 9-RELEASE, previous was > Acer Aspire 5520G running FreeBSD 8-STABLE until it burned away in > 2010, and I couldn't find dmesg for it. > > Regards > > > ACPI set debug layer 'ACPI_ALL_COMPONENTS ACPI_ALL_DRIVERS' level > 'ACPI_LV_ERROR' > Copyright (c) 1992-2012 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 9.0-RELEASE #1: Thu Feb 23 18:33:29 MSK 2012 > nicholas@rv511:/usr/obj/usr/src/sys/GENERIC amd64 > CPU: Intel(R) Core(TM) i3 CPU M 380 @ 2.53GHz (2527.05-MHz K8-class CPU) > Origin = "GenuineIntel" Id = 0x20655 Family = 6 Model = 25 Stepping = 5 > Features=0xbfebfbff > Features2=0x9ae3bd > AMD Features=0x28100800 > AMD Features2=0x1 > TSC: P-state invariant, performance statistics > real memory = 4294967296 (4096 MB) > avail memory = 3940532224 (3757 MB) > Event timer "LAPIC" quality 600 > ACPI APIC Table: > FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs > FreeBSD/SMP: 1 package(s) x 2 core(s) x 2 SMT threads > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 > cpu2 (AP): APIC ID: 4 > cpu3 (AP): APIC ID: 5 > _______________________________________________ > 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" > I know that Thinkpads (obviously not the same but the information may be useful) start in "BIOS" mode, where acpi does not handle most hotkeys, brightness etc. So the brightness keys work. As soon as acpi attaches, however, it "trapdoors" into ACPI mode, where it expects Windows or Linux drivers to handle hotkeys and call either acpi video extensions or other ACPI methods to initiate display changes and brightness. Have you tried using the acpi_video module? The reason it works during early kernel and prior on Thinkpads is due to the fact it hasn't been "trapdoored" into ACPI mode yet. Matt