#2008: Suspend exceptions: Do not suspend when certain apps are running
----------------------------------+-----------------------------------------
    Reporter:  Benih              |        Owner:  openmoko-kernel
        Type:  enhancement        |       Status:  new            
    Priority:  normal             |    Milestone:                 
   Component:  System Software    |      Version:  Om2008.8       
    Severity:  minor              |   Resolution:                 
    Keywords:  suspend exception  |    Blockedby:                 
Reproducible:                     |     Blocking:                 
----------------------------------+-----------------------------------------

Comment(by andy):

 This has been discussed a bit before, something that came up then was
 detection by what device nodes have file handles open on them.  So instead
 of having a whitelist of GPS apps as you suggest, you effectively grep
 lsof looking for ttySAC1 or whatever.

 One can also look down proc and find out what ALSA is doing, although
 pulseaudio probably messes that up.

 For USB power detection you can look down /sys and find it out, so it will
 fit your scheme OK.

-- 
Ticket URL: <https://docs.openmoko.org/trac/ticket/2008#comment:1>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac

Reply via email to