From owner-freebsd-mobile@FreeBSD.ORG Mon Mar 31 01:17:50 2008 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0A4261065671 for ; Mon, 31 Mar 2008 01:17:50 +0000 (UTC) (envelope-from dan@langille.org) Received: from nyi.unixathome.org (nyi.unixathome.org [64.147.113.42]) by mx1.freebsd.org (Postfix) with ESMTP id A60558FC1D for ; Mon, 31 Mar 2008 01:17:49 +0000 (UTC) (envelope-from dan@langille.org) Received: from localhost (localhost [127.0.0.1]) by nyi.unixathome.org (Postfix) with ESMTP id 27B2C50872; Mon, 31 Mar 2008 02:17:45 +0100 (BST) X-Virus-Scanned: amavisd-new at unixathome.org Received: from nyi.unixathome.org ([127.0.0.1]) by localhost (nyi.unixathome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t6KXOVAdLRDg; Mon, 31 Mar 2008 02:17:43 +0100 (BST) Received: from laptop.unixathome.org (bast.unixathome.org [72.94.192.69]) by nyi.unixathome.org (Postfix) with ESMTPSA id BB57F50858; Mon, 31 Mar 2008 02:17:42 +0100 (BST) Message-ID: <47F03BB8.7070803@langille.org> Date: Sun, 30 Mar 2008 21:17:44 -0400 From: Dan Langille Organization: The FreeBSD Diary User-Agent: Thunderbird 2.0.0.12 (X11/20080321) MIME-Version: 1.0 To: Alberto Rizzi References: <47EFF8B4.8050709@fastmail.fm> In-Reply-To: <47EFF8B4.8050709@fastmail.fm> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-mobile@freebsd.org Subject: Re: ThinkPad X61s functions keys X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2008 01:17:50 -0000 Alberto Rizzi wrote: > Ian Smith ha scritto: >> On Sat, 29 Mar 2008, Dan Langille wrote: >>> >>> Good catch. Thank you. It is 1. The copy/paste was done outside my >>> testing. Despite the /etc/sysctl.conf entry, I must set this value >>> manually as it is always zero after boot. >> >> Seems odd if setting dev.acpi_ibm.0.events=1 in /etc/sysctl.conf doesn't >> show up after boot? Could something(?) be resetting it to 0 afterwards? >> > /etc/sysctl.conf gets invoked when you enter in multiuser mode. Are you > booting multiuser or single user? Maybe you misspelled something in > /etc/sysctl.conf? Please cat /etc/sysctl.conf > >>> 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=IBM0068 _UID=0 >>> dev.acpi_ibm.0.%parent: acpi0 >>> dev.acpi_ibm.0.initialmask: 2060 >>> dev.acpi_ibm.0.availmask: 16777215 >>> dev.acpi_ibm.0.events: 0 >> ^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> >> An unfortunate paste. I assure you, it is 1. >> >>> dev.acpi_ibm.0.eventmask: 2060 >>> dev.acpi_ibm.0.hotkey: 3491 >>> dev.acpi_ibm.0.lcd_brightness: 0 >>> dev.acpi_ibm.0.volume: 7 >>> 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: 3815 >>> dev.acpi_ibm.0.fan_level: 0 >>> dev.acpi_ibm.0.fan: 1 >>> dev.acpi_ibm.0.thermal: 41 47 47 38 33 -1 30 -1 > > When you put .events=1, .eventmask is updated with the value in .availmask > In your example, eventmask != availmask, so the paste is correct and you > didn't activate .events > > Try logging in in multi user mode and sysctl dev.acpi_ibm.0 > Then set .events=1 and redump dev.acpi_ibm.0 The paste was taken BEFORE I manually set events = 1. FWIW, the problem is solved. I will reply with details soon.