From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752397AbbIIN5U (ORCPT ); Wed, 9 Sep 2015 09:57:20 -0400 Received: from mx2.suse.de ([195.135.220.15]:34896 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751650AbbIIN5L (ORCPT ); Wed, 9 Sep 2015 09:57:11 -0400 Message-ID: <1441806946.19223.5.camel@suse.com> Subject: Re: [RFC PATCH] PM / Runtime: runtime: Add sysfs option for forcing runtime suspend From: Oliver Neukum To: "Rafael J. Wysocki" Cc: Octavian Purdila , Ulf Hansson , "Tirdea, Irina" , "Rafael J. Wysocki" , Alan Stern , "linux-pm@vger.kernel.org" , "linux-input@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Brown, Len" , Pavel Machek , Dmitry Torokhov Date: Wed, 09 Sep 2015 15:55:46 +0200 In-Reply-To: References: <1441658561-26190-1-git-send-email-irina.tirdea@intel.com> <8981266.1iKleIVcUj@vostro.rjw.lan> <1F3AC3675D538145B1661F571FE1805F2F0C5CBE@irsmsx105.ger.corp.intel.com> <1441697744.26994.21.camel@suse.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.11 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2015-09-09 at 14:22 +0200, Rafael J. Wysocki wrote: > > Note that when the screen is turned-on again, we want to resume the > > touchscreen so that it can send events again. Why is it impractical to close the fd for the touchscreen? > > In fact, then, what you need seems to be the feature discussed by Alan > and me some time ago allowing remote wakeup do be disabled for runtime > PM from user space as that in combination with autosuspend should > address your use case. I'd doubt that. Suppose you put the phone into your pocket while the device isn't suspended. The continuous stream of spurious events will keep it awake. The ability to disable remote wakeup is necessary but not sufficient. Regards Oliver