From owner-freebsd-acpi@FreeBSD.ORG Sat Apr 7 01:15:02 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 66600106566C for ; Sat, 7 Apr 2012 01:15:02 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-pz0-f44.google.com (mail-pz0-f44.google.com [209.85.210.44]) by mx1.freebsd.org (Postfix) with ESMTP id 22B1E8FC12 for ; Sat, 7 Apr 2012 01:15:02 +0000 (UTC) Received: by dadz14 with SMTP id z14so11288493dad.17 for ; Fri, 06 Apr 2012 18:15:01 -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=zIrDTbRCc2LIGdvQmSoGm+O1SDQG5hRSnnZ5mrMn15w=; b=KQcVBwHsWYCav1X21C6tAVYKoNPSH3tXeUDyOhU9kh2BWSQxBzTS4/NEW7ou+Yjl8v c8Kg8lM/KMdKHtqmQI0wWSoGt4M5GKQPLs+/UH540ijDxCiQ1OD+3egvme/BshzW9+6R dnZS7jm3ZtQ0PXSCrLytDMxA9XIxcGAvk8XUQtzc2Nc75UBW8IQL8BnJg/x7tSWgg/0c P0zq1hjw/0JpvUU9ZsvBmz0ipao8fj8whiYvlNyFdipcd2BNNM0VMCzVrB3adLSU9NAa E64u21U6TME05hmHJsx2dt2b/zWyXJhq/TA1lL49kCUyT5bFo9b9g+rdJRx0RQoyFUro BwYQ== Received: by 10.68.220.195 with SMTP id py3mr18176982pbc.74.1333761301709; Fri, 06 Apr 2012 18:15:01 -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 h10sm7701315pbh.69.2012.04.06.18.14.52 (version=SSLv3 cipher=OTHER); Fri, 06 Apr 2012 18:14:53 -0700 (PDT) Message-ID: <4F7F9504.1030405@gmail.com> Date: Fri, 06 Apr 2012 18:14:44 -0700 From: matt User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.3) Gecko/20120324 Thunderbird/10.0.3 MIME-Version: 1.0 To: =?UTF-8?B?0JvRjtCx0L7QvNC40YAg0JPRgNC40LPQvtGA0L7Qsg==?= References: <4E836C06.9070405@gmail.com> <4F789DD7.90604@mehnert.org> <4F7A46DB.4050701@gmail.com> <4F7A8A99.4040603@gmail.com> <20120403210619.Q2060@sola.nimnet.asn.au> <4F7DAAB0.2010206@gmail.com> <4F7E2D5C.3020506@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-acpi@freebsd.org Subject: Re: x220 notes 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, 07 Apr 2012 01:15:02 -0000 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. Matt