From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Garrett Subject: Re: dell-wmi - question concerning battery charge key functionality Date: Wed, 24 Nov 2010 16:41:18 +0000 Message-ID: <20101124164118.GA1811@srcf.ucam.org> References: <4CDD1603.808@googlemail.com> <20101112195322.GB1299@core.coreip.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from cavan.codon.org.uk ([93.93.128.6]:54971 "EHLO cavan.codon.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751443Ab0KXQl1 (ORCPT ); Wed, 24 Nov 2010 11:41:27 -0500 Content-Disposition: inline In-Reply-To: <20101112195322.GB1299@core.coreip.homeip.net> Sender: platform-driver-x86-owner@vger.kernel.org List-ID: To: Dmitry Torokhov Cc: Dmitry Gubenko , Rezwanul Kabir , Platform Driver x86 On Fri, Nov 12, 2010 at 11:53:22AM -0800, Dmitry Torokhov wrote: > > I'm using dell_wmi on my laptop (Dell Latitude e4300) which has > > keybinds for toggling battery charging if AC adapter is available > > (Fn+F2 and Fn+F3). > > As far as i understand this functionality is not available as of now. > > I get > > dell-wmi: Received unknown WMI event (0x11) > > Looking at the code we are only prepared to handle 0x10 events. Rezwanul > Kabir added the code to handle newer Dells so he might have an idea what > event 0x11 is (CCed). Fn+F2 should toggle the battery charging on and off. I believe that this works fine and even updates the battery driver appropriately - we probably just need to update dell-wmi not to emit a warning in that case. > > when pressing Fn+F2 and no reaction when pressing Fn+F3. > > Fn+F3 should end up sending KEY_BATTERY, and your userspace should use that to display battery information. So other than the warning generated by dell-wmi, I think this all works as expected? -- Matthew Garrett | mjg59@srcf.ucam.org