Date: Fri, 06 Apr 2012 18:14:44 -0700 From: matt <sendtomatt@gmail.com> To: =?UTF-8?B?0JvRjtCx0L7QvNC40YAg0JPRgNC40LPQvtGA0L7Qsg==?= <nm.knife@gmail.com> Cc: freebsd-acpi@freebsd.org Subject: Re: x220 notes Message-ID: <4F7F9504.1030405@gmail.com> In-Reply-To: <CAHi1JsczUOuuKjVg4xhOLy4cz32ya2ahA6e56yaMaNdDgP7i6g@mail.gmail.com> References: <4E836C06.9070405@gmail.com> <4F789DD7.90604@mehnert.org> <CAN6yY1v=gJHsuGQ6i08P6RC4tP_CnaVt1MWQqy2=Uy0tax0cfg@mail.gmail.com> <CAHi1JscAcxU3ksGPO0jAM3acQ1rzQkn_KfOy7L_LcVRsSRFc2w@mail.gmail.com> <CAN6yY1vk-%2B5fnpVe62=39o7XNPrXfdcm%2Bi=C1q4FNa5XbQXRug@mail.gmail.com> <4F7A46DB.4050701@gmail.com> <CAHi1JseURymtf1ZoSNW00DF6QMkkasy1V%2BoXvF0A6-KMUqQ67w@mail.gmail.com> <4F7A8A99.4040603@gmail.com> <CAHi1Jsf9QhA%2BrcMSEt7egHsYtAv7j47jx-XN7_5CzdFfv4N9WQ@mail.gmail.com> <20120403210619.Q2060@sola.nimnet.asn.au> <CAHi1Jse2Hk3hkg9UF%2BSu%2BwrsrwnddhF%2BhqfYAvkKdHnrvWHQZQ@mail.gmail.com> <4F7DAAB0.2010206@gmail.com> <CAHi1Jsd-vAMXwe_HKTuFxEN3egpbAOT7b9krZy46jP_kBdLZ9Q@mail.gmail.com> <4F7E2D5C.3020506@gmail.com> <CAHi1JsfRQj2MRWtvhuEf_c5DF3306g1M20aef-crF_HY9cOPbQ@mail.gmail.com> <CAN6yY1suoEXwXf3vdAXSMr=tbbqB=pTkisA55CUMDj--tt4nrA@mail.gmail.com> <CAHi1Jsfj9=7_Sm8DXvu7aLqixTitv628CZWADh5cf2rgJKcfVg@mail.gmail.com> <CAHi1JsczUOuuKjVg4xhOLy4cz32ya2ahA6e56yaMaNdDgP7i6g@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
On 04/06/12 00:10, Любомир Григоров wrote: > I am sure, because pressing Mute now lights up the little light besides > muting. Value changes to 1 as well. The rest of the buttons are not > working. Basically I only need volume since I don't use sleep/resume and I > don't care for turning off wifi from a button. But since I set mixer vol > and pcm from console, it would be nice to associate with the buttons. Below > is output (fan speed does change). > > dev.acpi_ibm.0.%desc: IBM ThinkPad ACPI Extras > dev.acpi_ibm.0.%driver: acpi_ibm > dev.acpi_ibm.0.%location: handle=\_SB_.PCI0.LPC_.EC__.HKEY > dev.acpi_ibm.0.%pnpinfo: _HID=LEN0068 _UID=0 > dev.acpi_ibm.0.%parent: acpi0 > dev.acpi_ibm.0.initialmask: 2060 > dev.acpi_ibm.0.availmask: 134217727 > dev.acpi_ibm.0.events: 0 > dev.acpi_ibm.0.eventmask: 2060 > dev.acpi_ibm.0.hotkey: 1104 > dev.acpi_ibm.0.lcd_brightness: 0 > dev.acpi_ibm.0.volume: 0 > dev.acpi_ibm.0.mute: 0 > dev.acpi_ibm.0.thinklight: 0 > dev.acpi_ibm.0.bluetooth: 0 > dev.acpi_ibm.0.wlan: 1 > dev.acpi_ibm.0.fan_speed: 2980 > dev.acpi_ibm.0.fan_level: 0 > dev.acpi_ibm.0.fan: 1 > > Are you sure acpi_ibm is actually doing the connect? What do you see >> for 'sysctl dev.acpi_ibm'? You should see a list of items, many of >> which will be '0', even though they should not be. Things like >> 'fan_speed'. Setting dev.acpi_ibm.0.mute or dev.acpi_ibm.0.thiklight >> to '1' should work. >> >> I think the hotkeys should default to 2484. You should be able to do this: sysctl dev.acpi_ibm.0.eventmask=134217727 then have devd match the incoming "IBM" events and spit them out to console. Once you know which affect what, you can then create a script to match all of them causing hotkey like actions customized for your machine... see /etc/devd/asus.conf for an example, but obviously our codes are different and unfortunately I don't have an example nor recent memory. You probably want to get devd to be very verbose and determine what the codes emitted are. Matthome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F7F9504.1030405>
