Re: [RFC PATCH] PM / Runtime: runtime: Add sysfs option for forcing runtime suspend
From: Oliver Neukum <oneukum@suse.com>
Date: 2015-09-10 09:40:13
Also in:
linux-pm, lkml
From: Oliver Neukum <oneukum@suse.com>
Date: 2015-09-10 09:40:13
Also in:
linux-pm, lkml
On Wed, 2015-09-09 at 22:25 +0200, Rafael J. Wysocki wrote:
quoted
quoted
I'd doubt that. Suppose you put the phone into your pocket while the device isn't suspended. The continuous stream of spuriouseventsquoted
quoted
will keep it awake.Why would they be regarded as spurious then? They are just regular touch panel events in that case, aren't they?
These events are not expected to be caused by the user's hand. But it raises a design question; whose job it is to handle such information? It makes no sense to gather events from a touchscreen if you suspect the phone is randomly rubbing at things or to take video from a camera if you know that the lid is closed covering the lens. I think we can agree to that. The thing is that we handle all other availability in kernel space. You can argue that user space has an agreed interface (evdev, V4L or whatever) and it is the kernel's job to react if it learns that a device becomes temporarily unavailable and this is merely a question of adding an interface to the kernel by which user space can feed such information to the kernel. Regards Oliver