Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Feb 2013 17:16:14 -0800
From:      matt <sendtomatt@gmail.com>
To:        Eitan Adler <lists@eitanadler.com>
Cc:        bapt@freebsd.org, freebsd-acpi@freebsd.org, Ian Smith <smithi@nimnet.asn.au>
Subject:   Re: what is required to support a new laptop?
Message-ID:  <512ABB5E.5050904@gmail.com>
In-Reply-To: <CAF6rxg=qzuFdsOkV8Ry9oCw3V=pxwihDiR2E8DE=bJ%2BVQaBvOA@mail.gmail.com>
References:  <CAF6rxg=c=JN=N7NkWYdRHbgAqQTPGoFr=uLuXgiCfh%2BDdd-C4w@mail.gmail.com> <20130128114938.GK50515@e-new.0x20.net> <CAF6rxgnHayanFrLhmixdixe_pKeifPZG2mUYnJc51ioc47oYJQ@mail.gmail.com> <CAN6yY1tLY_LSv6xpcfD_oC_6769BSuFutKYE4%2BExN81oyue5vQ@mail.gmail.com> <20130130024649.R87033@sola.nimnet.asn.au> <CAF6rxgnuC%2B9-TZV_3uv2hyGiGOngost9k2ct0ZFtfvnzeDPvEA@mail.gmail.com> <20130130032714.D87033@sola.nimnet.asn.au> <CAF6rxgmuvv%2B8wOgju6bbjLk-WysDo8BpDaKebMMOd0aSohPO=w@mail.gmail.com> <20130130050811.H87033@sola.nimnet.asn.au> <512AB6F3.6030001@gmail.com> <CAF6rxg=qzuFdsOkV8Ry9oCw3V=pxwihDiR2E8DE=bJ%2BVQaBvOA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 02/24/13 17:04, Eitan Adler wrote:
> On 24 February 2013 19:57, matt <sendtomatt@gmail.com> wrote:
>> On 01/29/13 10:24, Ian Smith wrote:
>>> On Tue, 29 Jan 2013 12:46:43 -0500, Eitan Adler wrote:
>>>  > On 29 January 2013 12:29, Ian Smith <smithi@nimnet.asn.au> wrote:
>>>  > > Ah right.  I don't suppose kldload -v shows anything useful about the
>>>  > > problem loading it?  Ah, never mind, it may be obvious .. lightly
>>>  > > skimming your asl.y530.gz, I recalled folks having to patch something
>>>  > > for Lenovo rather than IBM OEMIDs .. hunt, hunt .. ok, here it is:
>>>  > >
>>>  > > http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/164538
>>>  >
>>>  >
>>>  > This is after the install of a patched acpi_ibm
>>>  > [3500 root@gravity /usr/src/sys/modules/acpi ]#kldload -v acpi_ibm
>>>  > Loaded acpi_ibm, id=12
>>>
>>> Which looks maybe successful, on the face of it? ..
>>>
>>>  > [5507 eitan@gravity (100)% ~ !1!]%sysctl dev.acpi_ibm
>>>  > sysctl: unknown oid 'dev.acpi_ibm'
>>>
>>> .. but clearly wasn't.
>>>
>> The Y series doesn't have the HKEY stuff, or it's not the same. You want
>> acpi_video (as does every new Lenovo, thinkpad or not).
>>
>> The problem is Lenovo is putting the "correct" _BCL/_BCM under "PEG"
>> devices....section from your dsdt follows, temporary workaround test
>> after that
> ...
>
>> This would be under _SB.PCI0.PEG0.VGA
>>
>> Try acpi_call -p '\_SB.PCI0.PEG0.VGA.LCD._BCL'
>> then
>> acpi_call -p '\_SB.PCI0.PEG0.VGA.LCD._BCL' -i 50
>>
>> Experiment with the numbers.
>>
>> We need to fix acpi_video so it attaches to the correct _BCL on these
>> laptops.
> Unknown object type '4'
>
> regardless of what number is passed to -i.  Same with the first call.
>

I made a typo :( Change the second call from _BCL to _BCM.
The first call _BCL would "trapdoor" a thinkpad, and it returns an
unknown object type 4. Acpi call has some formatting options to display
this "object", it's usually (or should be) a list of valid backlight
levels. The second call should set the value. _BQC will return the
current value. If that does not work, also try replacing PEG0 with PEG1.


Matt



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?512ABB5E.5050904>