Openmoko Bug #2008: Suspend exceptions: Do not suspend when certain apps are running

Openmoko Public Trac bugs at docs.openmoko.org
Tue Sep 16 10:36:15 CEST 2008


#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 Benih):

 That are good pints.
 But it would be cool if that will be configurable via some central file so
 everything is in the users hands and doesn't need to be implemented in
 software. Instead the software should only follow some configuration.

 So, what if /etc/suspend.deny provides some rule-scheme that allows the
 user to specifiy the things you mentioned:

 -----example suspend.deny-----
 {{{
 # rule    parameter
 proc    /tangogps/i     # dont suspend if this regex matches the process
 table
 lsof    /ttySAC1/       # dont suspend if this regex matches the "lsof"
 output
 cat/x   /foo/           # dont suspend if "cat /f" matches the regex
 }}}

 This way, other "rules" could easily be added as neccessary. New rules
 could easily be implemented. And packages could easily add lines that
 adjust suspension mode, as well as the user is able to add his needs.
 The more generic rules are available, the better the user can tune his
 phone. Just think of special apps he compiled himself!

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


More information about the buglog mailing list