From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Arve_Hj=F8nnev=E5g?= Subject: Re: [PATCH 8/9] Input: Block suspend while event queue is not empty. Date: Fri, 23 Apr 2010 22:02:50 -0700 Message-ID: References: <1271984938-13920-1-git-send-email-arve@android.com> <1271984938-13920-9-git-send-email-arve@android.com> <20100423135625.1e12d005.randy.dunlap@oracle.com> <201004231408.15885.dmitry.torokhov@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mail-yw0-f194.google.com ([209.85.211.194]:62782 "EHLO mail-yw0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751048Ab0DXFCw convert rfc822-to-8bit (ORCPT ); Sat, 24 Apr 2010 01:02:52 -0400 In-Reply-To: <201004231408.15885.dmitry.torokhov@gmail.com> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Dmitry Torokhov Cc: Randy Dunlap , linux-pm@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Thadeu Lima de Souza Cascardo , =?ISO-8859-1?Q?M=E1rton_N=E9meth?= , Sven Neumann , Tero Saarni , Henrik Rydberg , Matthew Garrett , Jiri Kosina , linux-input@vger.kernel.org On Fri, Apr 23, 2010 at 2:08 PM, Dmitry Torokhov wrote: > On Friday 23 April 2010 01:56:25 pm Randy Dunlap wrote: >> On Thu, 22 Apr 2010 18:08:57 -0700 Arve Hj=F8nnev=E5g wrote: >> > Add an ioctl, EVIOCSSUSPENDBLOCK, to enable a suspend_blocker that= will >> > block suspend while the event queue is not empty. This allows user= space >> > code to process input events while the device appears to be asleep= =2E >> >> All new ioctls need to be added to Documentation/ioctl/ioctl-number.= txt, >> please. > > I do not see the reason for it to be in the kernel still. Have a proc= ess > that listens to all input devices (or subset of them), once events st= op > coming initiate suspend. > I think the document added by the first patch explains this. The solution you propose above will ignore a wakeup key pressed right after user space decides to initiate suspend. --=20 Arve Hj=F8nnev=E5g -- To unsubscribe from this list: send the line "unsubscribe linux-input" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html