From: Kristen Carlson Accardi Subject: Re: [ibm-acpi-devel] CONFIG_IBM_BAY Date: Tue, 20 Mar 2007 09:11:25 -0700 Message-ID: <20070320091125.9d8b4623.kristen.c.accardi@intel.com> References: <20070315125037.3e82e0c4.kristen.c.accardi@intel.com> <45FCD062.3050001@gmail.com> <20070318082751.GA28591@homac2> <20070319132243.GA2869@srcf.ucam.org> <20070319134822.GA4885@homac2.suse.de> <20070319140403.GA3697@srcf.ucam.org> <20070319143746.GC4885@homac2.suse.de> <20070319111109.1a62740b.kristen.c.accardi@intel.com> <20070319231119.GB5932@khazad-dum.debian.net> <20070319165634.2f2f380c.kristen.c.accardi@intel.com> <20070320001240.GF5932@khazad-dum.debian.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from mga02.intel.com ([134.134.136.20]:10249 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934023AbXCTQNy (ORCPT ); Tue, 20 Mar 2007 12:13:54 -0400 In-Reply-To: <20070320001240.GF5932@khazad-dum.debian.net> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Henrique de Moraes Holschuh Cc: Holger Macht , Matthew Garrett , linux-acpi@vger.kernel.org, ibm-acpi-devel@lists.sourceforge.net, Len Brown On Mon, 19 Mar 2007 21:12:40 -0300 Henrique de Moraes Holschuh wrote: > On Mon, 19 Mar 2007, Kristen Carlson Accardi wrote: > > Is this what you had in mind? (Warning - I didn't test this). > > > > > > Allow the driver to be loaded with an option that will allow userspace to > > control whether the laptop is ejected immediately when the user presses the > > button, or only when the syfs undock file is written. > > > > if immediate_undock == 1, then when the user presses the undock button, the > > laptop will send an event to userspace to notify userspace of the undock, but > > then immediately undock without waiting for userspace. This is the current > > behavior, and I set this to be the default. > > > > if immediate_undock == 0, then when the user presses the undock button, the > > laptop will send an event to userspace and do nothing. User space can query > > the "flags" sysfs entry to determine if an undock request has been made by > > the user (if bit 1 is set). User space will then need to write the undock > > sysfs entry to complete the undocking process. > > Yes, that's it exactly. I didn't try to test it, as I don't have a dock, > but the above describes what I wanted, indeed. > Ok - I will implement this for real later this week and try to get something that is somewhat tested by friday. I won't have access to my test laptops till later in the week.