From owner-freebsd-acpi@FreeBSD.ORG Sat May 5 08:28:32 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 EDCD4106566C for ; Sat, 5 May 2012 08:28:32 +0000 (UTC) (envelope-from niktychina@gmail.com) Received: from mail-qa0-f47.google.com (mail-qa0-f47.google.com [209.85.216.47]) by mx1.freebsd.org (Postfix) with ESMTP id A190F8FC0C for ; Sat, 5 May 2012 08:28:32 +0000 (UTC) Received: by qabg1 with SMTP id g1so1732506qab.13 for ; Sat, 05 May 2012 01:28:32 -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:content-transfer-encoding; bh=mAw9aQ4CQfsp7vycpldz8MbubgRBEmw0ThURtliBAKA=; b=QhQw4I/90lCdFyitD3zH9ZTyE4/NtawFjYzKXVEPT6AZKfUXgO4XWQ6CD7TNWgc0Bk WjH6Jer6Gr70avs6SnKmeu5RBOjKlvOyGtwT0vAx/YJNi3mLWd76T5GXBjtfYlaBXa2o 9RwowoCzrU3W1ej/PKILGRjoDsOduAivdjBiSLkGglM1jqJP2e//haeXhfcDtYBcBphi Ffodcq0C0gugbGaG1ht2qtvCr+tqhIrb0IHqTjMk3HsheXMqFrELOKaqjpmq1nGywGqT PcvGcZ/Du6oK7C8dI2vZeljXa7i7FeMDU9MWgwEos7hFLROLePUx8IAGgySmiZz4pXmL ti7w== MIME-Version: 1.0 Received: by 10.224.191.3 with SMTP id dk3mr14346393qab.99.1336206511935; Sat, 05 May 2012 01:28:31 -0700 (PDT) Received: by 10.229.183.207 with HTTP; Sat, 5 May 2012 01:28:31 -0700 (PDT) In-Reply-To: <4FA44BFB.20408@gmail.com> References: <20120502014958.H91148@sola.nimnet.asn.au> <4FA44BFB.20408@gmail.com> Date: Sat, 5 May 2012 12:28:31 +0400 Message-ID: From: Nikolay Tychina To: matt Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-acpi@freebsd.org 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: Sat, 05 May 2012 08:28:33 -0000 2012/5/5 matt : > On 05/01/12 10:13, Nikolay Tychina wrote: >>> >>> =A0> =A0Considering the fact that brightness keys work until kernel is >>> loaded, >>> =A0> =A0is it possible to make them work >>> =A0> =A0after the kernel is booted in some simple way? >>> =A0> =A0I remember my previous laptop was able to control brightness wi= thout >>> =A0> =A0any acpi_* modules and disregarding >>> =A0> =A0OS running. >>> >>> What make and model laptop? =A0What OS? =A0(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 >> =A0 =A0 =A0 =A0The Regents of the University of California. All rights r= eserved. >> FreeBSD is a registered trademark of The FreeBSD Foundation. >> FreeBSD 9.0-RELEASE #1: Thu Feb 23 18:33:29 MSK 2012 >> =A0 =A0 nicholas@rv511:/usr/obj/usr/src/sys/GENERIC amd64 >> CPU: Intel(R) Core(TM) i3 CPU =A0 =A0 =A0 M 380 =A0@ 2.53GHz (2527.05-MH= z K8-class >> CPU) >> =A0 Origin =3D "GenuineIntel" =A0Id =3D 0x20655 =A0Family =3D 6 =A0Model= =3D 25 =A0Stepping >> =3D 5 >> >> Features=3D0xbfebfbff >> >> Features2=3D0x9ae3bd >> =A0 AMD Features=3D0x28100800 >> =A0 AMD Features2=3D0x1 >> =A0 TSC: P-state invariant, performance statistics >> real memory =A0=3D 4294967296 (4096 MB) >> avail memory =3D 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 >> =A0cpu0 (BSP): APIC ID: =A00 >> =A0cpu1 (AP): APIC ID: =A01 >> =A0cpu2 (AP): APIC ID: =A04 >> =A0cpu3 (AP): APIC ID: =A05 >> _______________________________________________ >> 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 I have tried it, but changing brightness in sysctl doesn't affect anything. Have just found samsung-laptop.c from linux that reads "This driver is needed because a number of Samsung laptops do not hook their control settings through ACPI. So we have to poke around in the BIOS to do things like brightness values, and "special" key controls." heh Nikolay