Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 May 2012 12:28:31 +0400
From:      Nikolay Tychina <niktychina@gmail.com>
To:        matt <sendtomatt@gmail.com>
Cc:        freebsd-acpi@freebsd.org
Subject:   Re: Brightness keys and booting the kernel
Message-ID:  <CAEXpyJvwTTVA96w=sRzUrOH2bD6d=Yj8%2B%2BOrW%2BZ7i32Ky-=wDA@mail.gmail.com>
In-Reply-To: <4FA44BFB.20408@gmail.com>
References:  <CAEXpyJuv9K13ZCmiUkLiT6Td6Y6UxBSt_tGJpBcpubE1-uRUtA@mail.gmail.com> <20120502014958.H91148@sola.nimnet.asn.au> <CAEXpyJs3AXQK48dV-OR=diUgBta5tLSizbFw=pgpNObGyVEaxw@mail.gmail.com> <4FA44BFB.20408@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2012/5/5 matt <sendtomatt@gmail.com>:
> 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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,P=
GE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
>>
>> Features2=3D0x9ae3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,=
PDCM,PCID,SSE4.1,SSE4.2,POPCNT>
>> =A0 AMD Features=3D0x28100800<SYSCALL,NX,RDTSCP,LM>
>> =A0 AMD Features2=3D0x1<LAHF>
>> =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:<PTLTD =A0 =A0 =A0 =A0 =A0 APIC>
>> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAEXpyJvwTTVA96w=sRzUrOH2bD6d=Yj8%2B%2BOrW%2BZ7i32Ky-=wDA>